Home GnuPG

cipher:dilithium: Functions of poly for different DILITHIUM_MODE.

Description

cipher:dilithium: Functions of poly for different DILITHIUM_MODE.

* cipher/dilithium-common.c (decompose): Make it into...
(decompose_88, decompose_32): ... these two functions.
(make_hint): Make it into...
(make_hint_88, make_hint_32): ... these two functions.
(use_hint): Make it into...
(use_hint_88, use_hint_32): ... these two functions.
(poly_decompose): Make it into...
(poly_decompose_88, poly_decompose_32): ... these two functions.
(poly_make_hint): Make it into...
(poly_make_hint_88, poly_make_hint_32): ... these two functions.
(poly_use_hint): Make it into...
(poly_use_hint_88, poly_use_hint_32): ... these two functions.
(rej_eta): Make it into...
(rej_eta_2, rej_eta_4): ... these two functions.
(poly_uniform_eta): Make it into...
(poly_uniform_eta_2, poly_uniform_eta_4): ... these two functions.
(POLY_UNIFORM_ETA_NBLOCKS): Make it into...
(POLY_UNIFORM_ETA_NBLOCKS_2, POLY_UNIFORM_ETA_NBLOCKS_4): ... these
two macros.
(poly_uniform_gamma1): Make it into...
(poly_uniform_gamma1_17, poly_uniform_gamma1_19): ... these two
functions.
(POLY_UNIFORM_GAMMA1_NBLOCKS): Make it into...
(POLY_UNIFORM_GAMMA1_NBLOCKS_17, POLY_UNIFORM_GAMMA1_NBLOCKS_19):
... these two macros.
(polyeta_pack): Make it into...
(polyeta_pack_2, polyeta_pack_4): ... these two functions.
(polyeta_unpack): Make it into...
(polyeta_unpack_2, polyeta_unpack_4): ... these two functions.
(polyz_pack): Make it into...
(polyz_pack_17, polyz_pack_19): ... these two functions.
(polyz_unpack): Make it into...
(polyz_unpack_17, polyz_unpack_19): ... these two functions.
(polyw1_pack): Make it into...
(polyw1_pack_88, polyw1_pack_32): ... these two functions.
  • GnuPG-bug-id: T7640
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Tue, Jul 1, 2:18 AM
Parents
rCa0bd76300f60: cipher:dilithium: Fix comment style.
Branches
Unknown
Tags
Unknown
Tasks
T7640: ML-DSA for libgcrypt