pq_crypto 0.6.4 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +180 -0
- data/README.md +7 -0
- data/ext/pqcrypto/extconf.rb +4 -1
- data/ext/pqcrypto/pq_externalmu.c +35 -0
- data/ext/pqcrypto/pqcrypto_native_api.h +85 -75
- data/ext/pqcrypto/pqcrypto_ruby_secure.c +16 -9
- data/ext/pqcrypto/pqcrypto_secure.c +43 -33
- data/ext/pqcrypto/pqcrypto_secure.h +52 -47
- data/ext/pqcrypto/pqcrypto_version.h +1 -1
- data/ext/pqcrypto/vendor/.vendored +7 -7
- data/ext/pqcrypto/vendor/mldsa-native/BUILDING.md +5 -2
- data/ext/pqcrypto/vendor/mldsa-native/LICENSE +21 -2
- data/ext/pqcrypto/vendor/mldsa-native/README.md +20 -7
- data/ext/pqcrypto/vendor/mldsa-native/RELEASE.md +160 -0
- data/ext/pqcrypto/vendor/mldsa-native/SECURITY.md +1 -1
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/README.md +2 -2
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/mldsa_native.c +85 -59
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/mldsa_native.h +292 -348
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/mldsa_native_asm.S +122 -76
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/mldsa_native_config.h +184 -86
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/cbmc.h +49 -4
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/common.h +49 -81
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/context.h +152 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/ct.h +25 -12
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/debug.c +2 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/debug.h +2 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/fips202x4.c +2 -2
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/keccakf1600.c +9 -11
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/auto.h +19 -11
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/keccak_f1600_x1_scalar_aarch64_asm.S +6 -4
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/keccak_f1600_x1_v84a_aarch64_asm.S +7 -4
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/keccak_f1600_x2_v84a_aarch64_asm.S +7 -4
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/keccak_f1600_x4_v8a_scalar_hybrid_aarch64_asm.S +12 -9
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/keccak_f1600_x4_v8a_v84a_scalar_hybrid_aarch64_asm.S +12 -9
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/x1_scalar.h +1 -1
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/x1_v84a.h +3 -2
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/x2_v84a.h +3 -2
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/x4_v8a_scalar.h +6 -1
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/x4_v8a_v84a_scalar.h +3 -2
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/api.h +11 -11
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/armv81m/mve.h +9 -22
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/armv81m/src/keccak_f1600_x4_mve.S +8 -5
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/armv81m/src/keccak_f1600_x4_mve.c +1 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/armv81m/src/{state_extract_bytes_x4_mve.S → keccak_f1600_x4_state_extract_bytes_mve.S} +14 -14
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/armv81m/src/{state_xor_bytes_x4_mve.S → keccak_f1600_x4_state_xor_bytes_mve.S} +12 -12
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/auto.h +5 -4
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/x86_64/keccak_f1600_x4_avx2.h +2 -2
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/x86_64/src/fips202_native_x86_64.h +1 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/x86_64/src/keccak_f1600_x4_avx2_asm.S +36 -2
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/meta.h +62 -4
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/arith_native_aarch64.h +87 -54
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/{intt_aarch64_asm.S → mldsa_intt_aarch64_asm.S} +39 -6
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/{ntt_aarch64_asm.S → mldsa_ntt_aarch64_asm.S} +39 -6
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/{pointwise_montgomery_aarch64_asm.S → mldsa_pointwise_montgomery_aarch64_asm.S} +25 -3
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/{poly_caddq_aarch64_asm.S → mldsa_poly_caddq_aarch64_asm.S} +19 -3
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/{poly_chknorm_aarch64_asm.S → mldsa_poly_chknorm_aarch64_asm.S} +24 -3
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/{poly_decompose_32_aarch64_asm.S → mldsa_poly_decompose_32_aarch64_asm.S} +25 -3
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/{poly_decompose_88_aarch64_asm.S → mldsa_poly_decompose_88_aarch64_asm.S} +25 -3
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/{poly_use_hint_32_aarch64_asm.S → mldsa_poly_use_hint_32_aarch64_asm.S} +25 -3
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/{poly_use_hint_88_aarch64_asm.S → mldsa_poly_use_hint_88_aarch64_asm.S} +25 -3
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/{mld_polyvecl_pointwise_acc_montgomery_l4_aarch64_asm.S → mldsa_polyvecl_pointwise_acc_montgomery_l4_aarch64_asm.S} +31 -3
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/{mld_polyvecl_pointwise_acc_montgomery_l5_aarch64_asm.S → mldsa_polyvecl_pointwise_acc_montgomery_l5_aarch64_asm.S} +31 -3
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/{mld_polyvecl_pointwise_acc_montgomery_l7_aarch64_asm.S → mldsa_polyvecl_pointwise_acc_montgomery_l7_aarch64_asm.S} +31 -3
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/{polyz_unpack_17_aarch64_asm.S → mldsa_polyz_unpack_17_aarch64_asm.S} +31 -3
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/{polyz_unpack_19_aarch64_asm.S → mldsa_polyz_unpack_19_aarch64_asm.S} +31 -3
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/{rej_uniform_aarch64_asm.S → mldsa_rej_uniform_aarch64_asm.S} +48 -15
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/{rej_uniform_eta2_aarch64_asm.S → mldsa_rej_uniform_eta2_aarch64_asm.S} +42 -9
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/{rej_uniform_eta4_aarch64_asm.S → mldsa_rej_uniform_eta4_aarch64_asm.S} +42 -9
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/api.h +11 -3
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/meta.h +3 -2
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/meta.h +28 -28
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/arith_native_x86_64.h +171 -49
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/{intt_avx2_asm.S → mldsa_intt_avx2_asm.S} +23 -1
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/{ntt_avx2_asm.S → mldsa_ntt_avx2_asm.S} +23 -1
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/{nttunpack_avx2_asm.S → mldsa_nttunpack_avx2_asm.S} +17 -1
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/{pointwise_acc_l4_avx2_asm.S → mldsa_pointwise_acc_l4_avx2_asm.S} +37 -3
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/{pointwise_acc_l5_avx2_asm.S → mldsa_pointwise_acc_l5_avx2_asm.S} +37 -3
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/{pointwise_acc_l7_avx2_asm.S → mldsa_pointwise_acc_l7_avx2_asm.S} +37 -3
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/{pointwise_avx2_asm.S → mldsa_pointwise_avx2_asm.S} +31 -3
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/{poly_caddq_avx2_asm.S → mldsa_poly_caddq_avx2_asm.S} +18 -9
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_poly_chknorm_avx2_asm.S +176 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_poly_decompose_32_avx2_asm.S +490 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_poly_decompose_88_avx2_asm.S +489 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_poly_use_hint_32_avx2_asm.S +123 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_poly_use_hint_88_avx2_asm.S +125 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_polyz_unpack_17_avx2_asm.S +355 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_polyz_unpack_19_avx2_asm.S +355 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_rej_uniform_avx2_asm.S +132 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_rej_uniform_eta2_avx2_asm.S +205 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_rej_uniform_eta4_avx2_asm.S +176 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/packing.c +27 -36
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/packing.h +42 -8
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/params.h +93 -17
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/poly.c +74 -15
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/poly.h +97 -11
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/poly_kl.c +7 -38
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/poly_kl.h +49 -7
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/polyvec.c +16 -17
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/polyvec.h +26 -9
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/polyvec_lazy.c +3 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/polyvec_lazy.h +18 -19
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/reduce.h +15 -3
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/rounding.h +28 -6
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/sign.c +311 -246
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/sign.h +245 -240
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/sys.h +64 -5
- data/ext/pqcrypto/vendor/mlkem-native/BUILDING.md +5 -2
- data/ext/pqcrypto/vendor/mlkem-native/LICENSE +21 -3
- data/ext/pqcrypto/vendor/mlkem-native/README.md +4 -6
- data/ext/pqcrypto/vendor/mlkem-native/RELEASE.md +211 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/README.md +2 -2
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/mlkem_native.c +25 -34
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/mlkem_native.h +79 -142
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/mlkem_native_asm.S +62 -71
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/mlkem_native_config.h +77 -39
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/cbmc.h +25 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/common.h +48 -34
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/compress.c +25 -5
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/compress.h +14 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/context.h +51 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/fips202.h +2 -2
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/keccakf1600.c +8 -8
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/auto.h +20 -12
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/src/keccak_f1600_x1_scalar_aarch64_asm.S +5 -3
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/src/keccak_f1600_x1_v84a_aarch64_asm.S +5 -2
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/src/keccak_f1600_x2_v84a_aarch64_asm.S +5 -2
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/src/keccak_f1600_x4_v8a_scalar_hybrid_aarch64_asm.S +10 -7
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/src/keccak_f1600_x4_v8a_v84a_scalar_hybrid_aarch64_asm.S +10 -7
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/x1_scalar.h +1 -1
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/x1_v84a.h +3 -2
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/x2_v84a.h +3 -2
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/x4_v8a_scalar.h +6 -1
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/x4_v8a_v84a_scalar.h +3 -2
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/api.h +11 -11
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/armv81m/mve.h +8 -22
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/armv81m/src/keccak_f1600_x4_mve.S +8 -5
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/armv81m/src/{state_extract_bytes_x4_mve.S → keccak_f1600_x4_state_extract_bytes_mve.S} +14 -14
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/armv81m/src/{state_xor_bytes_x4_mve.S → keccak_f1600_x4_state_xor_bytes_mve.S} +12 -12
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/x86_64/keccak_f1600_x4_avx2.h +2 -2
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/x86_64/src/keccak_f1600_x4_avx2_asm.S +36 -2
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/indcpa.c +22 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/indcpa.h +20 -11
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/kem.c +39 -11
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/kem.h +64 -15
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/meta.h +44 -2
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/aarch64_zetas.c +2 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/arith_native_aarch64.h +11 -10
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/{intt_aarch64_asm.S → mlkem_intt_aarch64_asm.S} +16 -9
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/{ntt_aarch64_asm.S → mlkem_ntt_aarch64_asm.S} +10 -7
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/{poly_mulcache_compute_aarch64_asm.S → mlkem_poly_mulcache_compute_aarch64_asm.S} +6 -3
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/{poly_reduce_aarch64_asm.S → mlkem_poly_reduce_aarch64_asm.S} +6 -3
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/{poly_tobytes_aarch64_asm.S → mlkem_poly_tobytes_aarch64_asm.S} +12 -5
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/{poly_tomont_aarch64_asm.S → mlkem_poly_tomont_aarch64_asm.S} +11 -5
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/{polyvec_basemul_acc_montgomery_cached_k2_aarch64_asm.S → mlkem_polyvec_basemul_acc_montgomery_cached_k2_aarch64_asm.S} +6 -3
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/{polyvec_basemul_acc_montgomery_cached_k3_aarch64_asm.S → mlkem_polyvec_basemul_acc_montgomery_cached_k3_aarch64_asm.S} +6 -3
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/{polyvec_basemul_acc_montgomery_cached_k4_aarch64_asm.S → mlkem_polyvec_basemul_acc_montgomery_cached_k4_aarch64_asm.S} +6 -3
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/{rej_uniform_aarch64_asm.S → mlkem_rej_uniform_aarch64_asm.S} +17 -17
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/api.h +21 -8
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/meta.h +1 -1
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/ppc64le/meta.h +4 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/ppc64le/src/{intt_ppc_asm.S → mlkem_intt_ppc_asm.S} +29 -5
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/ppc64le/src/{ntt_ppc_asm.S → mlkem_ntt_ppc_asm.S} +22 -1
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/ppc64le/src/{poly_tomont_ppc_asm.S → mlkem_poly_tomont_ppc_asm.S} +25 -3
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/ppc64le/src/{reduce_ppc_asm.S → mlkem_reduce_ppc_asm.S} +22 -1
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/riscv64/meta.h +4 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/riscv64/src/arith_native_riscv64.h +4 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/riscv64/src/rv64v_poly.c +6 -2
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/meta.h +45 -25
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/arith_native_x86_64.h +20 -20
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/compress_consts.c +14 -3
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/compress_consts.h +8 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{intt_avx2_asm.S → mlkem_intt_avx2_asm.S} +27 -3
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{ntt_avx2_asm.S → mlkem_ntt_avx2_asm.S} +23 -1
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{nttfrombytes_avx2_asm.S → mlkem_nttfrombytes_avx2_asm.S} +27 -3
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{ntttobytes_avx2_asm.S → mlkem_ntttobytes_avx2_asm.S} +27 -3
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{nttunpack_avx2_asm.S → mlkem_nttunpack_avx2_asm.S} +17 -1
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{poly_compress_d10_avx2_asm.S → mlkem_poly_compress_d10_avx2_asm.S} +34 -3
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{poly_compress_d11_avx2_asm.S → mlkem_poly_compress_d11_avx2_asm.S} +33 -2
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{poly_compress_d4_avx2_asm.S → mlkem_poly_compress_d4_avx2_asm.S} +34 -3
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{poly_compress_d5_avx2_asm.S → mlkem_poly_compress_d5_avx2_asm.S} +33 -2
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{poly_decompress_d10_avx2_asm.S → mlkem_poly_decompress_d10_avx2_asm.S} +32 -3
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{poly_decompress_d11_avx2_asm.S → mlkem_poly_decompress_d11_avx2_asm.S} +32 -2
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{poly_decompress_d4_avx2_asm.S → mlkem_poly_decompress_d4_avx2_asm.S} +32 -3
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{poly_decompress_d5_avx2_asm.S → mlkem_poly_decompress_d5_avx2_asm.S} +32 -2
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{poly_mulcache_compute_avx2_asm.S → mlkem_poly_mulcache_compute_avx2_asm.S} +29 -1
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{polyvec_basemul_acc_montgomery_cached_k2_avx2_asm.S → mlkem_polyvec_basemul_acc_montgomery_cached_k2_avx2_asm.S} +35 -1
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{polyvec_basemul_acc_montgomery_cached_k3_avx2_asm.S → mlkem_polyvec_basemul_acc_montgomery_cached_k3_avx2_asm.S} +35 -1
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{polyvec_basemul_acc_montgomery_cached_k4_avx2_asm.S → mlkem_polyvec_basemul_acc_montgomery_cached_k4_avx2_asm.S} +35 -1
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{reduce_avx2_asm.S → mlkem_reduce_avx2_asm.S} +17 -1
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{rej_uniform_avx2_asm.S → mlkem_rej_uniform_avx2_asm.S} +40 -7
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{tomont_avx2_asm.S → mlkem_tomont_avx2_asm.S} +20 -3
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/poly.c +7 -2
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/poly.h +6 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/poly_k.c +25 -4
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/poly_k.h +33 -4
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/sampling.c +4 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/sampling.h +4 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/sys.h +21 -3
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/verify.h +11 -10
- data/lib/pq_crypto/version.rb +1 -1
- data/script/vendor_libs.rb +6 -6
- metadata +79 -79
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/poly_chknorm_avx2.c +0 -52
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/poly_decompose_32_avx2.c +0 -157
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/poly_decompose_88_avx2.c +0 -157
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/poly_use_hint_32_avx2.c +0 -103
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/poly_use_hint_88_avx2.c +0 -105
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/polyz_unpack_17_avx2.c +0 -94
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/polyz_unpack_19_avx2.c +0 -96
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/rej_uniform_avx2.c +0 -126
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/rej_uniform_eta2_avx2.c +0 -157
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/rej_uniform_eta4_avx2.c +0 -141
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* levels, you should include this file once with
|
|
23
23
|
* MLD_CONFIG_MULTILEVEL_WITH_SHARED set.
|
|
24
24
|
*
|
|
25
|
-
* (You could also follow the same pattern as for
|
|
25
|
+
* (You could also follow the same pattern as for mldsa_native.c
|
|
26
26
|
* and include it for every level, setting MLD_CONFIG_MULTILEVEL_NO_SHARED
|
|
27
27
|
* for all but one. For builds with MLD_CONFIG_MULTILEVEL_NO_SHARED, this
|
|
28
28
|
* file will then be ignored.)
|
|
@@ -60,33 +60,43 @@
|
|
|
60
60
|
|
|
61
61
|
#if defined(MLD_CONFIG_USE_NATIVE_BACKEND_ARITH)
|
|
62
62
|
#if defined(MLD_SYS_AARCH64)
|
|
63
|
-
#include "src/native/aarch64/src/
|
|
64
|
-
#include "src/native/aarch64/src/
|
|
65
|
-
#include "src/native/aarch64/src/
|
|
66
|
-
#include "src/native/aarch64/src/
|
|
67
|
-
#include "src/native/aarch64/src/
|
|
68
|
-
#include "src/native/aarch64/src/
|
|
69
|
-
#include "src/native/aarch64/src/
|
|
70
|
-
#include "src/native/aarch64/src/
|
|
71
|
-
#include "src/native/aarch64/src/
|
|
72
|
-
#include "src/native/aarch64/src/
|
|
73
|
-
#include "src/native/aarch64/src/
|
|
74
|
-
#include "src/native/aarch64/src/
|
|
75
|
-
#include "src/native/aarch64/src/
|
|
76
|
-
#include "src/native/aarch64/src/
|
|
77
|
-
#include "src/native/aarch64/src/
|
|
78
|
-
#include "src/native/aarch64/src/
|
|
79
|
-
#include "src/native/aarch64/src/
|
|
63
|
+
#include "src/native/aarch64/src/mldsa_intt_aarch64_asm.S"
|
|
64
|
+
#include "src/native/aarch64/src/mldsa_ntt_aarch64_asm.S"
|
|
65
|
+
#include "src/native/aarch64/src/mldsa_pointwise_montgomery_aarch64_asm.S"
|
|
66
|
+
#include "src/native/aarch64/src/mldsa_poly_caddq_aarch64_asm.S"
|
|
67
|
+
#include "src/native/aarch64/src/mldsa_poly_chknorm_aarch64_asm.S"
|
|
68
|
+
#include "src/native/aarch64/src/mldsa_poly_decompose_32_aarch64_asm.S"
|
|
69
|
+
#include "src/native/aarch64/src/mldsa_poly_decompose_88_aarch64_asm.S"
|
|
70
|
+
#include "src/native/aarch64/src/mldsa_poly_use_hint_32_aarch64_asm.S"
|
|
71
|
+
#include "src/native/aarch64/src/mldsa_poly_use_hint_88_aarch64_asm.S"
|
|
72
|
+
#include "src/native/aarch64/src/mldsa_polyvecl_pointwise_acc_montgomery_l4_aarch64_asm.S"
|
|
73
|
+
#include "src/native/aarch64/src/mldsa_polyvecl_pointwise_acc_montgomery_l5_aarch64_asm.S"
|
|
74
|
+
#include "src/native/aarch64/src/mldsa_polyvecl_pointwise_acc_montgomery_l7_aarch64_asm.S"
|
|
75
|
+
#include "src/native/aarch64/src/mldsa_polyz_unpack_17_aarch64_asm.S"
|
|
76
|
+
#include "src/native/aarch64/src/mldsa_polyz_unpack_19_aarch64_asm.S"
|
|
77
|
+
#include "src/native/aarch64/src/mldsa_rej_uniform_aarch64_asm.S"
|
|
78
|
+
#include "src/native/aarch64/src/mldsa_rej_uniform_eta2_aarch64_asm.S"
|
|
79
|
+
#include "src/native/aarch64/src/mldsa_rej_uniform_eta4_aarch64_asm.S"
|
|
80
80
|
#endif /* MLD_SYS_AARCH64 */
|
|
81
81
|
#if defined(MLD_SYS_X86_64)
|
|
82
|
-
#include "src/native/x86_64/src/
|
|
83
|
-
#include "src/native/x86_64/src/
|
|
84
|
-
#include "src/native/x86_64/src/
|
|
85
|
-
#include "src/native/x86_64/src/
|
|
86
|
-
#include "src/native/x86_64/src/
|
|
87
|
-
#include "src/native/x86_64/src/
|
|
88
|
-
#include "src/native/x86_64/src/
|
|
89
|
-
#include "src/native/x86_64/src/
|
|
82
|
+
#include "src/native/x86_64/src/mldsa_intt_avx2_asm.S"
|
|
83
|
+
#include "src/native/x86_64/src/mldsa_ntt_avx2_asm.S"
|
|
84
|
+
#include "src/native/x86_64/src/mldsa_nttunpack_avx2_asm.S"
|
|
85
|
+
#include "src/native/x86_64/src/mldsa_pointwise_acc_l4_avx2_asm.S"
|
|
86
|
+
#include "src/native/x86_64/src/mldsa_pointwise_acc_l5_avx2_asm.S"
|
|
87
|
+
#include "src/native/x86_64/src/mldsa_pointwise_acc_l7_avx2_asm.S"
|
|
88
|
+
#include "src/native/x86_64/src/mldsa_pointwise_avx2_asm.S"
|
|
89
|
+
#include "src/native/x86_64/src/mldsa_poly_caddq_avx2_asm.S"
|
|
90
|
+
#include "src/native/x86_64/src/mldsa_poly_chknorm_avx2_asm.S"
|
|
91
|
+
#include "src/native/x86_64/src/mldsa_poly_decompose_32_avx2_asm.S"
|
|
92
|
+
#include "src/native/x86_64/src/mldsa_poly_decompose_88_avx2_asm.S"
|
|
93
|
+
#include "src/native/x86_64/src/mldsa_poly_use_hint_32_avx2_asm.S"
|
|
94
|
+
#include "src/native/x86_64/src/mldsa_poly_use_hint_88_avx2_asm.S"
|
|
95
|
+
#include "src/native/x86_64/src/mldsa_polyz_unpack_17_avx2_asm.S"
|
|
96
|
+
#include "src/native/x86_64/src/mldsa_polyz_unpack_19_avx2_asm.S"
|
|
97
|
+
#include "src/native/x86_64/src/mldsa_rej_uniform_avx2_asm.S"
|
|
98
|
+
#include "src/native/x86_64/src/mldsa_rej_uniform_eta2_avx2_asm.S"
|
|
99
|
+
#include "src/native/x86_64/src/mldsa_rej_uniform_eta4_avx2_asm.S"
|
|
90
100
|
#endif /* MLD_SYS_X86_64 */
|
|
91
101
|
#endif /* MLD_CONFIG_USE_NATIVE_BACKEND_ARITH */
|
|
92
102
|
|
|
@@ -103,8 +113,8 @@
|
|
|
103
113
|
#endif
|
|
104
114
|
#if defined(MLD_SYS_ARMV81M_MVE)
|
|
105
115
|
#include "src/fips202/native/armv81m/src/keccak_f1600_x4_mve.S"
|
|
106
|
-
#include "src/fips202/native/armv81m/src/
|
|
107
|
-
#include "src/fips202/native/armv81m/src/
|
|
116
|
+
#include "src/fips202/native/armv81m/src/keccak_f1600_x4_state_extract_bytes_mve.S"
|
|
117
|
+
#include "src/fips202/native/armv81m/src/keccak_f1600_x4_state_xor_bytes_mve.S"
|
|
108
118
|
#endif
|
|
109
119
|
#endif /* MLD_CONFIG_USE_NATIVE_BACKEND_FIPS202 */
|
|
110
120
|
|
|
@@ -132,9 +142,6 @@
|
|
|
132
142
|
* Undefine macros from MLD_CONFIG_PARAMETER_SET-specific files
|
|
133
143
|
*/
|
|
134
144
|
/* mldsa/mldsa_native.h */
|
|
135
|
-
#undef CRYPTO_BYTES
|
|
136
|
-
#undef CRYPTO_PUBLICKEYBYTES
|
|
137
|
-
#undef CRYPTO_SECRETKEYBYTES
|
|
138
145
|
#undef MLDSA44_BYTES
|
|
139
146
|
#undef MLDSA44_CRHBYTES
|
|
140
147
|
#undef MLDSA44_PUBLICKEYBYTES
|
|
@@ -169,19 +176,19 @@
|
|
|
169
176
|
#undef MLD_API_CONCAT
|
|
170
177
|
#undef MLD_API_CONCAT_
|
|
171
178
|
#undef MLD_API_CONCAT_UNDERSCORE
|
|
172
|
-
#undef MLD_API_LEGACY_CONFIG
|
|
173
179
|
#undef MLD_API_MUST_CHECK_RETURN_VALUE
|
|
174
180
|
#undef MLD_API_NAMESPACE
|
|
181
|
+
#undef MLD_API_NAMESPACE_PREFIX
|
|
175
182
|
#undef MLD_API_QUALIFIER
|
|
176
|
-
#undef MLD_CONFIG_API_CONSTANTS_ONLY
|
|
177
|
-
#undef MLD_CONFIG_API_NAMESPACE_PREFIX
|
|
178
|
-
#undef MLD_CONFIG_API_NO_SUPERCOP
|
|
179
|
-
#undef MLD_CONFIG_API_PARAMETER_SET
|
|
180
|
-
#undef MLD_CONFIG_API_QUALIFIER
|
|
181
183
|
#undef MLD_DOMAIN_SEPARATION_MAX_BYTES
|
|
182
184
|
#undef MLD_ERR_FAIL
|
|
185
|
+
#undef MLD_ERR_INVALID_ARG
|
|
186
|
+
#undef MLD_ERR_INVALID_KEY
|
|
187
|
+
#undef MLD_ERR_INVALID_SIGNATURE
|
|
183
188
|
#undef MLD_ERR_OUT_OF_MEMORY
|
|
189
|
+
#undef MLD_ERR_PCT_FAIL
|
|
184
190
|
#undef MLD_ERR_RNG_FAIL
|
|
191
|
+
#undef MLD_ERR_SIGNING_PAUSED
|
|
185
192
|
#undef MLD_ERR_SIGN_ATTEMPTS_EXHAUSTED
|
|
186
193
|
#undef MLD_H
|
|
187
194
|
#undef MLD_MAX3_
|
|
@@ -220,15 +227,9 @@
|
|
|
220
227
|
#undef MLD_TOTAL_ALLOC_87_PK_FROM_SK
|
|
221
228
|
#undef MLD_TOTAL_ALLOC_87_SIGN
|
|
222
229
|
#undef MLD_TOTAL_ALLOC_87_VERIFY
|
|
223
|
-
#undef crypto_sign
|
|
224
|
-
#undef crypto_sign_keypair
|
|
225
|
-
#undef crypto_sign_open
|
|
226
|
-
#undef crypto_sign_signature
|
|
227
|
-
#undef crypto_sign_verify
|
|
228
230
|
/* mldsa/src/common.h */
|
|
229
231
|
#undef MLD_ADD_PARAM_SET
|
|
230
232
|
#undef MLD_ALLOC
|
|
231
|
-
#undef MLD_ANY_ERROR
|
|
232
233
|
#undef MLD_APPLY
|
|
233
234
|
#undef MLD_ASM_FN_SIZE
|
|
234
235
|
#undef MLD_ASM_FN_SYMBOL
|
|
@@ -237,20 +238,15 @@
|
|
|
237
238
|
#undef MLD_COMMON_H
|
|
238
239
|
#undef MLD_CONCAT
|
|
239
240
|
#undef MLD_CONCAT_
|
|
240
|
-
#undef MLD_CONTEXT_PARAMETERS_0
|
|
241
|
-
#undef MLD_CONTEXT_PARAMETERS_1
|
|
242
|
-
#undef MLD_CONTEXT_PARAMETERS_2
|
|
243
|
-
#undef MLD_CONTEXT_PARAMETERS_3
|
|
244
|
-
#undef MLD_CONTEXT_PARAMETERS_4
|
|
245
|
-
#undef MLD_CONTEXT_PARAMETERS_5
|
|
246
|
-
#undef MLD_CONTEXT_PARAMETERS_6
|
|
247
|
-
#undef MLD_CONTEXT_PARAMETERS_7
|
|
248
|
-
#undef MLD_CONTEXT_PARAMETERS_8
|
|
249
|
-
#undef MLD_CONTEXT_PARAMETERS_9
|
|
250
241
|
#undef MLD_EMPTY_CU
|
|
251
242
|
#undef MLD_ERR_FAIL
|
|
243
|
+
#undef MLD_ERR_INVALID_ARG
|
|
244
|
+
#undef MLD_ERR_INVALID_KEY
|
|
245
|
+
#undef MLD_ERR_INVALID_SIGNATURE
|
|
252
246
|
#undef MLD_ERR_OUT_OF_MEMORY
|
|
247
|
+
#undef MLD_ERR_PCT_FAIL
|
|
253
248
|
#undef MLD_ERR_RNG_FAIL
|
|
249
|
+
#undef MLD_ERR_SIGNING_PAUSED
|
|
254
250
|
#undef MLD_ERR_SIGN_ATTEMPTS_EXHAUSTED
|
|
255
251
|
#undef MLD_EXTERNAL_API
|
|
256
252
|
#undef MLD_FIPS202X4_HEADER_FILE
|
|
@@ -287,22 +283,52 @@
|
|
|
287
283
|
#undef MLDSA_ETA
|
|
288
284
|
#undef MLDSA_GAMMA1
|
|
289
285
|
#undef MLDSA_GAMMA2
|
|
286
|
+
#undef MLDSA_GAMMA2_32
|
|
287
|
+
#undef MLDSA_GAMMA2_88
|
|
290
288
|
#undef MLDSA_K
|
|
291
289
|
#undef MLDSA_L
|
|
292
290
|
#undef MLDSA_N
|
|
293
291
|
#undef MLDSA_OMEGA
|
|
292
|
+
#undef MLDSA_PK_END
|
|
293
|
+
#undef MLDSA_PK_RHO_BYTES
|
|
294
|
+
#undef MLDSA_PK_RHO_OFFSET
|
|
295
|
+
#undef MLDSA_PK_T1_BYTES
|
|
296
|
+
#undef MLDSA_PK_T1_OFFSET
|
|
294
297
|
#undef MLDSA_POLYETA_PACKEDBYTES
|
|
295
298
|
#undef MLDSA_POLYT0_PACKEDBYTES
|
|
296
299
|
#undef MLDSA_POLYT1_PACKEDBYTES
|
|
297
300
|
#undef MLDSA_POLYVECH_PACKEDBYTES
|
|
298
301
|
#undef MLDSA_POLYW1_PACKEDBYTES
|
|
302
|
+
#undef MLDSA_POLYW1_PACKEDBYTES_32
|
|
303
|
+
#undef MLDSA_POLYW1_PACKEDBYTES_88
|
|
299
304
|
#undef MLDSA_POLYZ_PACKEDBYTES
|
|
300
305
|
#undef MLDSA_Q
|
|
301
306
|
#undef MLDSA_Q_HALF
|
|
302
307
|
#undef MLDSA_RNDBYTES
|
|
303
308
|
#undef MLDSA_SEEDBYTES
|
|
309
|
+
#undef MLDSA_SIG_C_BYTES
|
|
310
|
+
#undef MLDSA_SIG_C_OFFSET
|
|
311
|
+
#undef MLDSA_SIG_END
|
|
312
|
+
#undef MLDSA_SIG_H_BYTES
|
|
313
|
+
#undef MLDSA_SIG_H_OFFSET
|
|
314
|
+
#undef MLDSA_SIG_Z_BYTES
|
|
315
|
+
#undef MLDSA_SIG_Z_OFFSET
|
|
316
|
+
#undef MLDSA_SK_END
|
|
317
|
+
#undef MLDSA_SK_KEY_BYTES
|
|
318
|
+
#undef MLDSA_SK_KEY_OFFSET
|
|
319
|
+
#undef MLDSA_SK_RHO_BYTES
|
|
320
|
+
#undef MLDSA_SK_RHO_OFFSET
|
|
321
|
+
#undef MLDSA_SK_S1_BYTES
|
|
322
|
+
#undef MLDSA_SK_S1_OFFSET
|
|
323
|
+
#undef MLDSA_SK_S2_BYTES
|
|
324
|
+
#undef MLDSA_SK_S2_OFFSET
|
|
325
|
+
#undef MLDSA_SK_T0_BYTES
|
|
326
|
+
#undef MLDSA_SK_T0_OFFSET
|
|
327
|
+
#undef MLDSA_SK_TR_BYTES
|
|
328
|
+
#undef MLDSA_SK_TR_OFFSET
|
|
304
329
|
#undef MLDSA_TAU
|
|
305
330
|
#undef MLDSA_TRBYTES
|
|
331
|
+
#undef MLD_MAX_KAPPA
|
|
306
332
|
#undef MLD_PARAMS_H
|
|
307
333
|
/* mldsa/src/poly_kl.h */
|
|
308
334
|
#undef MLD_POLYETA_UNPACK_LOWER_BOUND
|
|
@@ -415,10 +441,8 @@
|
|
|
415
441
|
#undef MLD_PREHASH_SHAKE_256
|
|
416
442
|
#undef MLD_SIGN_H
|
|
417
443
|
#undef mld_prepare_domain_separation_prefix
|
|
418
|
-
#undef mld_sign
|
|
419
444
|
#undef mld_sign_keypair
|
|
420
445
|
#undef mld_sign_keypair_internal
|
|
421
|
-
#undef mld_sign_open
|
|
422
446
|
#undef mld_sign_pk_from_sk
|
|
423
447
|
#undef mld_sign_signature
|
|
424
448
|
#undef mld_sign_signature_extmu
|
|
@@ -435,6 +459,22 @@
|
|
|
435
459
|
/*
|
|
436
460
|
* Undefine macros from MLD_CONFIG_PARAMETER_SET-generic files
|
|
437
461
|
*/
|
|
462
|
+
/* mldsa/src/context.h */
|
|
463
|
+
#undef MLD_CONTEXT_H
|
|
464
|
+
#undef MLD_CONTEXT_PARAMETERS_0
|
|
465
|
+
#undef MLD_CONTEXT_PARAMETERS_1
|
|
466
|
+
#undef MLD_CONTEXT_PARAMETERS_2
|
|
467
|
+
#undef MLD_CONTEXT_PARAMETERS_3
|
|
468
|
+
#undef MLD_CONTEXT_PARAMETERS_4
|
|
469
|
+
#undef MLD_CONTEXT_PARAMETERS_5
|
|
470
|
+
#undef MLD_CONTEXT_PARAMETERS_6
|
|
471
|
+
#undef MLD_CONTEXT_PARAMETERS_7
|
|
472
|
+
#undef MLD_CONTEXT_PARAMETERS_8
|
|
473
|
+
#undef MLD_CONTEXT_PARAMETERS_9
|
|
474
|
+
#undef MLD_CONTEXT_UNUSED
|
|
475
|
+
#undef mld_sign_attempt
|
|
476
|
+
#undef mld_sign_finish
|
|
477
|
+
#undef mld_sign_resume
|
|
438
478
|
/* mldsa/src/ct.h */
|
|
439
479
|
#undef MLD_CT_H
|
|
440
480
|
#undef MLD_USE_ASM_VALUE_BARRIER
|
|
@@ -449,6 +489,7 @@
|
|
|
449
489
|
#undef mld_debug_check_assert
|
|
450
490
|
#undef mld_debug_check_bounds
|
|
451
491
|
/* mldsa/src/poly.h */
|
|
492
|
+
#undef MLD_FQMUL_BOUND
|
|
452
493
|
#undef MLD_INTT_BOUND
|
|
453
494
|
#undef MLD_NTT_BOUND
|
|
454
495
|
#undef MLD_POLY_H
|
|
@@ -468,6 +509,8 @@
|
|
|
468
509
|
#undef mld_polyt0_unpack
|
|
469
510
|
#undef mld_polyt1_pack
|
|
470
511
|
#undef mld_polyt1_unpack
|
|
512
|
+
#undef mld_polyw1_pack_32
|
|
513
|
+
#undef mld_polyw1_pack_88
|
|
471
514
|
/* mldsa/src/randombytes.h */
|
|
472
515
|
#undef MLD_RANDOMBYTES_H
|
|
473
516
|
/* mldsa/src/reduce.h */
|
|
@@ -510,10 +553,14 @@
|
|
|
510
553
|
#undef MLD_HAVE_INLINE_ASM
|
|
511
554
|
#undef MLD_INLINE
|
|
512
555
|
#undef MLD_MUST_CHECK_RETURN_VALUE
|
|
556
|
+
#undef MLD_NOINLINE
|
|
513
557
|
#undef MLD_RESTRICT
|
|
514
558
|
#undef MLD_STATIC_TESTABLE
|
|
559
|
+
#undef MLD_SYSV_ABI
|
|
560
|
+
#undef MLD_SYSV_ABI_SUPPORTED
|
|
515
561
|
#undef MLD_SYS_AARCH64
|
|
516
562
|
#undef MLD_SYS_AARCH64_EB
|
|
563
|
+
#undef MLD_SYS_AARCH64_NEON
|
|
517
564
|
#undef MLD_SYS_APPLE
|
|
518
565
|
#undef MLD_SYS_ARMV81M_MVE
|
|
519
566
|
#undef MLD_SYS_BIG_ENDIAN
|
|
@@ -602,23 +649,23 @@
|
|
|
602
649
|
/* mldsa/src/fips202/native/aarch64/x1_scalar.h */
|
|
603
650
|
#undef MLD_FIPS202_AARCH64_NEED_X1_SCALAR
|
|
604
651
|
#undef MLD_FIPS202_NATIVE_AARCH64_X1_SCALAR_H
|
|
605
|
-
#undef
|
|
652
|
+
#undef MLD_USE_NATIVE_FIPS202_X1
|
|
606
653
|
/* mldsa/src/fips202/native/aarch64/x1_v84a.h */
|
|
607
654
|
#undef MLD_FIPS202_AARCH64_NEED_X1_V84A
|
|
608
655
|
#undef MLD_FIPS202_NATIVE_AARCH64_X1_V84A_H
|
|
609
|
-
#undef
|
|
656
|
+
#undef MLD_USE_NATIVE_FIPS202_X1
|
|
610
657
|
/* mldsa/src/fips202/native/aarch64/x2_v84a.h */
|
|
611
658
|
#undef MLD_FIPS202_AARCH64_NEED_X2_V84A
|
|
612
659
|
#undef MLD_FIPS202_NATIVE_AARCH64_X2_V84A_H
|
|
613
|
-
#undef
|
|
660
|
+
#undef MLD_USE_NATIVE_FIPS202_X4
|
|
614
661
|
/* mldsa/src/fips202/native/aarch64/x4_v8a_scalar.h */
|
|
615
662
|
#undef MLD_FIPS202_AARCH64_NEED_X4_V8A_SCALAR_HYBRID
|
|
616
663
|
#undef MLD_FIPS202_NATIVE_AARCH64_X4_V8A_SCALAR_H
|
|
617
|
-
#undef
|
|
664
|
+
#undef MLD_USE_NATIVE_FIPS202_X4
|
|
618
665
|
/* mldsa/src/fips202/native/aarch64/x4_v8a_v84a_scalar.h */
|
|
619
666
|
#undef MLD_FIPS202_AARCH64_NEED_X4_V8A_V84A_SCALAR_HYBRID
|
|
620
667
|
#undef MLD_FIPS202_NATIVE_AARCH64_X4_V8A_V84A_SCALAR_H
|
|
621
|
-
#undef
|
|
668
|
+
#undef MLD_USE_NATIVE_FIPS202_X4
|
|
622
669
|
#endif /* MLD_SYS_AARCH64 */
|
|
623
670
|
#if defined(MLD_SYS_X86_64)
|
|
624
671
|
/*
|
|
@@ -627,7 +674,7 @@
|
|
|
627
674
|
/* mldsa/src/fips202/native/x86_64/keccak_f1600_x4_avx2.h */
|
|
628
675
|
#undef MLD_FIPS202_NATIVE_X86_64_KECCAK_F1600_X4_AVX2_H
|
|
629
676
|
#undef MLD_FIPS202_X86_64_NEED_X4_AVX2
|
|
630
|
-
#undef
|
|
677
|
+
#undef MLD_USE_NATIVE_FIPS202_X4
|
|
631
678
|
/* mldsa/src/fips202/native/x86_64/src/fips202_native_x86_64.h */
|
|
632
679
|
#undef MLD_FIPS202_NATIVE_X86_64_SRC_FIPS202_NATIVE_X86_64_H
|
|
633
680
|
#undef mld_keccak_f1600_x4_avx2_asm
|
|
@@ -643,12 +690,10 @@
|
|
|
643
690
|
#undef MLD_FIPS202_ARMV81M_NEED_X4
|
|
644
691
|
#undef MLD_FIPS202_NATIVE_ARMV81M
|
|
645
692
|
#undef MLD_FIPS202_NATIVE_ARMV81M_MVE_H
|
|
646
|
-
#undef
|
|
647
|
-
#undef
|
|
648
|
-
#undef
|
|
693
|
+
#undef MLD_USE_NATIVE_FIPS202_X4
|
|
694
|
+
#undef MLD_USE_NATIVE_FIPS202_X4_EXTRACT_BYTES
|
|
695
|
+
#undef MLD_USE_NATIVE_FIPS202_X4_XOR_BYTES
|
|
649
696
|
#undef mld_keccak_f1600_x4_native_impl
|
|
650
|
-
#undef mld_keccak_f1600_x4_state_extract_bytes
|
|
651
|
-
#undef mld_keccak_f1600_x4_state_xor_bytes
|
|
652
697
|
/* mldsa/src/fips202/native/armv81m/src/fips202_native_armv81m.h */
|
|
653
698
|
#undef MLD_FIPS202_NATIVE_ARMV81M_SRC_FIPS202_NATIVE_ARMV81M_H
|
|
654
699
|
#undef mld_keccak_f1600_x4_mve_asm
|
|
@@ -659,6 +704,7 @@
|
|
|
659
704
|
#endif /* MLD_CONFIG_USE_NATIVE_BACKEND_FIPS202 */
|
|
660
705
|
#if defined(MLD_CONFIG_USE_NATIVE_BACKEND_ARITH)
|
|
661
706
|
/* mldsa/src/native/api.h */
|
|
707
|
+
#undef MLD_FQMUL_BOUND
|
|
662
708
|
#undef MLD_INTT_BOUND
|
|
663
709
|
#undef MLD_NATIVE_API_H
|
|
664
710
|
#undef MLD_NATIVE_FUNC_FALLBACK
|
|
@@ -759,16 +805,16 @@
|
|
|
759
805
|
#undef mld_pointwise_acc_l7_avx2_asm
|
|
760
806
|
#undef mld_pointwise_avx2_asm
|
|
761
807
|
#undef mld_poly_caddq_avx2_asm
|
|
762
|
-
#undef
|
|
763
|
-
#undef
|
|
764
|
-
#undef
|
|
765
|
-
#undef
|
|
766
|
-
#undef
|
|
767
|
-
#undef
|
|
768
|
-
#undef
|
|
769
|
-
#undef
|
|
770
|
-
#undef
|
|
771
|
-
#undef
|
|
808
|
+
#undef mld_poly_chknorm_avx2_asm
|
|
809
|
+
#undef mld_poly_decompose_32_avx2_asm
|
|
810
|
+
#undef mld_poly_decompose_88_avx2_asm
|
|
811
|
+
#undef mld_poly_use_hint_32_avx2_asm
|
|
812
|
+
#undef mld_poly_use_hint_88_avx2_asm
|
|
813
|
+
#undef mld_polyz_unpack_17_avx2_asm
|
|
814
|
+
#undef mld_polyz_unpack_19_avx2_asm
|
|
815
|
+
#undef mld_rej_uniform_avx2_asm
|
|
816
|
+
#undef mld_rej_uniform_eta2_avx2_asm
|
|
817
|
+
#undef mld_rej_uniform_eta4_avx2_asm
|
|
772
818
|
#undef mld_rej_uniform_table
|
|
773
819
|
/* mldsa/src/native/x86_64/src/consts.h */
|
|
774
820
|
#undef MLD_AVX2_BACKEND_DATA_OFFSET_8XDIV
|