mldsa_gh 0.1.0
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 +7 -0
- data/LICENSE +21 -0
- data/README.md +88 -0
- data/ext/mldsa_gh_native/extconf.rb +14 -0
- data/ext/mldsa_gh_native/mldsa_gh_native.c +222 -0
- data/ext/mldsa_gh_native/mldsa_gh_native_all.c +24 -0
- data/ext/mldsa_gh_native/mldsa_gh_native_all.h +26 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/BUILDING.md +108 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/LICENSE +305 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/README.md +247 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/README.md +23 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/mldsa_native.c +803 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/mldsa_native.h +956 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/mldsa_native_asm.S +830 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/mldsa_native_config.h +855 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/cbmc.h +233 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/common.h +301 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/context.h +152 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/ct.c +21 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/ct.h +373 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/debug.c +75 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/debug.h +125 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/fips202.c +270 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/fips202.h +224 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/fips202x4.c +187 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/fips202x4.h +125 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/keccakf1600.c +510 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/keccakf1600.h +110 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/auto.h +85 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/fips202_native_aarch64.h +69 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/keccak_f1600_x1_scalar_aarch64_asm.S +378 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/keccak_f1600_x1_v84a_aarch64_asm.S +207 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/keccak_f1600_x2_v84a_aarch64_asm.S +262 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/keccak_f1600_x4_v8a_scalar_hybrid_aarch64_asm.S +1080 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/keccak_f1600_x4_v8a_v84a_scalar_hybrid_aarch64_asm.S +990 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/keccakf1600_round_constants.c +47 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/x1_scalar.h +27 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/x1_v84a.h +36 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/x2_v84a.h +40 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/x4_v8a_scalar.h +32 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/x4_v8a_v84a_scalar.h +37 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/api.h +129 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/armv81m/README.md +10 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/armv81m/mve.h +67 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/armv81m/src/fips202_native_armv81m.h +37 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/armv81m/src/keccak_f1600_x4_mve.S +717 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/armv81m/src/keccak_f1600_x4_mve.c +42 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/armv81m/src/keccak_f1600_x4_state_extract_bytes_mve.S +334 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/armv81m/src/keccak_f1600_x4_state_xor_bytes_mve.S +355 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/armv81m/src/keccakf1600_round_constants.c +53 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/auto.h +35 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/x86_64/keccak_f1600_x4_avx2.h +34 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/x86_64/src/fips202_native_x86_64.h +45 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/x86_64/src/keccak_f1600_x4_avx2_asm.S +488 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/fips202/native/x86_64/src/keccakf1600_constants.c +52 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/meta.h +314 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/src/aarch64_zetas.c +248 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/src/arith_native_aarch64.h +367 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/src/mldsa_intt_aarch64_asm.S +786 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/src/mldsa_ntt_aarch64_asm.S +686 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/src/mldsa_pointwise_montgomery_aarch64_asm.S +106 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/src/mldsa_poly_caddq_aarch64_asm.S +69 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/src/mldsa_poly_chknorm_aarch64_asm.S +76 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/src/mldsa_poly_decompose_32_aarch64_asm.S +108 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/src/mldsa_poly_decompose_88_aarch64_asm.S +108 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/src/mldsa_poly_use_hint_32_aarch64_asm.S +125 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/src/mldsa_poly_use_hint_88_aarch64_asm.S +133 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/src/mldsa_polyvecl_pointwise_acc_montgomery_l4_aarch64_asm.S +157 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/src/mldsa_polyvecl_pointwise_acc_montgomery_l5_aarch64_asm.S +173 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/src/mldsa_polyvecl_pointwise_acc_montgomery_l7_aarch64_asm.S +205 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/src/mldsa_polyz_unpack_17_aarch64_asm.S +103 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/src/mldsa_polyz_unpack_19_aarch64_asm.S +100 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/src/mldsa_rej_uniform_aarch64_asm.S +222 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/src/mldsa_rej_uniform_eta2_aarch64_asm.S +170 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/src/mldsa_rej_uniform_eta4_aarch64_asm.S +163 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/src/polyz_unpack_table.c +52 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/src/rej_uniform_eta_table.c +547 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/aarch64/src/rej_uniform_table.c +63 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/api.h +617 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/meta.h +24 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/meta.h +323 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/src/arith_native_x86_64.h +330 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/src/consts.c +157 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/src/consts.h +27 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_intt_avx2_asm.S +2333 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_ntt_avx2_asm.S +2405 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_nttunpack_avx2_asm.S +254 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_pointwise_acc_l4_avx2_asm.S +173 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_pointwise_acc_l5_avx2_asm.S +189 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_pointwise_acc_l7_avx2_asm.S +221 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_pointwise_avx2_asm.S +158 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_poly_caddq_avx2_asm.S +199 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_poly_chknorm_avx2_asm.S +176 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_poly_decompose_32_avx2_asm.S +490 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_poly_decompose_88_avx2_asm.S +489 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_poly_use_hint_32_avx2_asm.S +123 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_poly_use_hint_88_avx2_asm.S +125 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_polyz_unpack_17_avx2_asm.S +355 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_polyz_unpack_19_avx2_asm.S +355 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_rej_uniform_avx2_asm.S +132 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_rej_uniform_eta2_avx2_asm.S +205 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/src/mldsa_rej_uniform_eta4_avx2_asm.S +176 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/native/x86_64/src/rej_uniform_table.c +161 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/packing.c +213 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/packing.h +277 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/params.h +153 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/poly.c +1066 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/poly.h +464 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/poly_kl.c +910 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/poly_kl.h +367 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/polyvec.c +509 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/polyvec.h +435 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/polyvec_lazy.c +311 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/polyvec_lazy.h +652 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/randombytes.h +26 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/reduce.h +144 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/rounding.h +265 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/sign.c +1720 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/sign.h +850 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/symmetric.h +68 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/sys.h +327 -0
- data/ext/mldsa_gh_native/vendor/mldsa-native/mldsa/src/zetas.inc +55 -0
- data/lib/mldsa/parameter_set.rb +82 -0
- data/lib/mldsa/signing_key.rb +147 -0
- data/lib/mldsa/verify_key.rb +72 -0
- data/lib/mldsa/version.rb +7 -0
- data/lib/mldsa_gh.rb +93 -0
- metadata +225 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) The mldsa-native project authors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* WARNING: This file is auto-generated from scripts/autogen
|
|
8
|
+
* in the mldsa-native repository.
|
|
9
|
+
* Do not modify it directly.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
#include "../../../common.h"
|
|
13
|
+
|
|
14
|
+
#if defined(MLD_ARITH_BACKEND_X86_64_DEFAULT) && \
|
|
15
|
+
!defined(MLD_CONFIG_MULTILEVEL_NO_SHARED)
|
|
16
|
+
|
|
17
|
+
#include "consts.h"
|
|
18
|
+
|
|
19
|
+
/*
|
|
20
|
+
* Table of zeta values used in the AVX2 forward and inverse NTT
|
|
21
|
+
* See autogen for details.
|
|
22
|
+
*/
|
|
23
|
+
MLD_ALIGN MLD_INTERNAL_DATA_DEFINITION const int32_t mld_qdata[624] = {
|
|
24
|
+
8380417, 8380417, 8380417, 8380417, 8380417,
|
|
25
|
+
8380417, 8380417, 8380417, 58728449, 58728449,
|
|
26
|
+
58728449, 58728449, 58728449, 58728449, 58728449,
|
|
27
|
+
58728449, -8395782, -8395782, -8395782, -8395782,
|
|
28
|
+
-8395782, -8395782, -8395782, -8395782, 41978,
|
|
29
|
+
41978, 41978, 41978, 41978, 41978,
|
|
30
|
+
41978, 41978, -151046689, 1830765815, -1929875198,
|
|
31
|
+
-1927777021, 1640767044, 1477910808, 1612161320, 1640734244,
|
|
32
|
+
308362795, 308362795, 308362795, 308362795, -1815525077,
|
|
33
|
+
-1815525077, -1815525077, -1815525077, -1374673747, -1374673747,
|
|
34
|
+
-1374673747, -1374673747, -1091570561, -1091570561, -1091570561,
|
|
35
|
+
-1091570561, -1929495947, -1929495947, -1929495947, -1929495947,
|
|
36
|
+
515185417, 515185417, 515185417, 515185417, -285697463,
|
|
37
|
+
-285697463, -285697463, -285697463, 625853735, 625853735,
|
|
38
|
+
625853735, 625853735, 1727305304, 1727305304, 2082316400,
|
|
39
|
+
2082316400, -1364982364, -1364982364, 858240904, 858240904,
|
|
40
|
+
1806278032, 1806278032, 222489248, 222489248, -346752664,
|
|
41
|
+
-346752664, 684667771, 684667771, 1654287830, 1654287830,
|
|
42
|
+
-878576921, -878576921, -1257667337, -1257667337, -748618600,
|
|
43
|
+
-748618600, 329347125, 329347125, 1837364258, 1837364258,
|
|
44
|
+
-1443016191, -1443016191, -1170414139, -1170414139, -1846138265,
|
|
45
|
+
-1631226336, -1404529459, 1838055109, 1594295555, -1076973524,
|
|
46
|
+
-1898723372, -594436433, -202001019, -475984260, -561427818,
|
|
47
|
+
1797021249, -1061813248, 2059733581, -1661512036, -1104976547,
|
|
48
|
+
-1750224323, -901666090, 418987550, 1831915353, -1925356481,
|
|
49
|
+
992097815, 879957084, 2024403852, 1484874664, -1636082790,
|
|
50
|
+
-285388938, -1983539117, -1495136972, -950076368, -1714807468,
|
|
51
|
+
-952438995, -1574918427, 1350681039, -2143979939, 1599739335,
|
|
52
|
+
-1285853323, -993005454, -1440787840, 568627424, -783134478,
|
|
53
|
+
-588790216, 289871779, -1262003603, 2135294594, -1018755525,
|
|
54
|
+
-889861155, 1665705315, 1321868265, 1225434135, -1784632064,
|
|
55
|
+
666258756, 675310538, -1555941048, -1999506068, -1499481951,
|
|
56
|
+
-695180180, -1375177022, 1777179795, 334803717, -178766299,
|
|
57
|
+
-518252220, 1957047970, 1146323031, -654783359, -1974159335,
|
|
58
|
+
1651689966, 140455867, -1039411342, 1955560694, 1529189038,
|
|
59
|
+
-2131021878, -247357819, 1518161567, -86965173, 1708872713,
|
|
60
|
+
1787797779, 1638590967, -120646188, -1669960606, -916321552,
|
|
61
|
+
1155548552, 2143745726, 1210558298, -1261461890, -318346816,
|
|
62
|
+
628664287, -1729304568, 1422575624, 1424130038, -1185330464,
|
|
63
|
+
235321234, 168022240, 1206536194, 985155484, -894060583,
|
|
64
|
+
-898413, -1363460238, -605900043, 2027833504, 14253662,
|
|
65
|
+
1014493059, 863641633, 1819892093, 2124962073, -1223601433,
|
|
66
|
+
-1920467227, -1637785316, -1536588520, 694382729, 235104446,
|
|
67
|
+
-1045062172, 831969619, -300448763, 756955444, -260312805,
|
|
68
|
+
1554794072, 1339088280, -2040058690, -853476187, -2047270596,
|
|
69
|
+
-1723816713, -1591599803, -440824168, 1119856484, 1544891539,
|
|
70
|
+
155290192, -973777462, 991903578, 912367099, -44694137,
|
|
71
|
+
1176904444, -421552614, -818371958, 1747917558, -325927722,
|
|
72
|
+
908452108, 1851023419, -1176751719, -1354528380, -72690498,
|
|
73
|
+
-314284737, 985022747, 963438279, -1078959975, 604552167,
|
|
74
|
+
-1021949428, 608791570, 173440395, -2126092136, -1316619236,
|
|
75
|
+
-1039370342, 6087993, -110126092, 565464272, -1758099917,
|
|
76
|
+
-1600929361, 879867909, -1809756372, 400711272, 1363007700,
|
|
77
|
+
30313375, -326425360, 1683520342, -517299994, 2027935492,
|
|
78
|
+
-1372618620, 128353682, -1123881663, 137583815, -635454918,
|
|
79
|
+
-642772911, 45766801, 671509323, -2070602178, 419615363,
|
|
80
|
+
1216882040, -270590488, -1276805128, 371462360, -1357098057,
|
|
81
|
+
-384158533, 827959816, -596344473, 702390549, -279505433,
|
|
82
|
+
-260424530, -71875110, -1208667171, -1499603926, 2036925262,
|
|
83
|
+
-540420426, 746144248, -1420958686, 2032221021, 1904936414,
|
|
84
|
+
1257750362, 1926727420, 1931587462, 1258381762, 885133339,
|
|
85
|
+
1629985060, 1967222129, 6363718, -1287922800, 1136965286,
|
|
86
|
+
1779436847, 1116720494, 1042326957, 1405999311, 713994583,
|
|
87
|
+
940195359, -1542497137, 2061661095, -883155599, 1726753853,
|
|
88
|
+
-1547952704, 394851342, 283780712, 776003547, 1123958025,
|
|
89
|
+
201262505, 1934038751, 374860238, -3975713, 25847,
|
|
90
|
+
-2608894, -518909, 237124, -777960, -876248,
|
|
91
|
+
466468, 1826347, 1826347, 1826347, 1826347,
|
|
92
|
+
2353451, 2353451, 2353451, 2353451, -359251,
|
|
93
|
+
-359251, -359251, -359251, -2091905, -2091905,
|
|
94
|
+
-2091905, -2091905, 3119733, 3119733, 3119733,
|
|
95
|
+
3119733, -2884855, -2884855, -2884855, -2884855,
|
|
96
|
+
3111497, 3111497, 3111497, 3111497, 2680103,
|
|
97
|
+
2680103, 2680103, 2680103, 2725464, 2725464,
|
|
98
|
+
1024112, 1024112, -1079900, -1079900, 3585928,
|
|
99
|
+
3585928, -549488, -549488, -1119584, -1119584,
|
|
100
|
+
2619752, 2619752, -2108549, -2108549, -2118186,
|
|
101
|
+
-2118186, -3859737, -3859737, -1399561, -1399561,
|
|
102
|
+
-3277672, -3277672, 1757237, 1757237, -19422,
|
|
103
|
+
-19422, 4010497, 4010497, 280005, 280005,
|
|
104
|
+
2706023, 95776, 3077325, 3530437, -1661693,
|
|
105
|
+
-3592148, -2537516, 3915439, -3861115, -3043716,
|
|
106
|
+
3574422, -2867647, 3539968, -300467, 2348700,
|
|
107
|
+
-539299, -1699267, -1643818, 3505694, -3821735,
|
|
108
|
+
3507263, -2140649, -1600420, 3699596, 811944,
|
|
109
|
+
531354, 954230, 3881043, 3900724, -2556880,
|
|
110
|
+
2071892, -2797779, -3930395, -3677745, -1452451,
|
|
111
|
+
2176455, -1257611, -4083598, -3190144, -3632928,
|
|
112
|
+
3412210, 2147896, -2967645, -411027, -671102,
|
|
113
|
+
-22981, -381987, 1852771, -3343383, 508951,
|
|
114
|
+
44288, 904516, -3724342, 1653064, 2389356,
|
|
115
|
+
759969, 189548, 3159746, -2409325, 1315589,
|
|
116
|
+
1285669, -812732, -3019102, -3628969, -1528703,
|
|
117
|
+
-3041255, 3475950, -1585221, 1939314, -1000202,
|
|
118
|
+
-3157330, 126922, -983419, 2715295, -3693493,
|
|
119
|
+
-2477047, -1228525, -1308169, 1349076, -1430430,
|
|
120
|
+
264944, 3097992, -1100098, 3958618, -8578,
|
|
121
|
+
-3249728, -210977, -1316856, -3553272, -1851402,
|
|
122
|
+
-177440, 1341330, -1584928, -1439742, -3881060,
|
|
123
|
+
3839961, 2091667, -3342478, 266997, -3520352,
|
|
124
|
+
900702, 495491, -655327, -3556995, 342297,
|
|
125
|
+
3437287, 2842341, 4055324, -3767016, -2994039,
|
|
126
|
+
-1333058, -451100, -1279661, 1500165, -542412,
|
|
127
|
+
-2584293, -2013608, 1957272, -3183426, 810149,
|
|
128
|
+
-3038916, 2213111, -426683, -1667432, -2939036,
|
|
129
|
+
183443, -554416, 3937738, 3407706, 2244091,
|
|
130
|
+
2434439, -3759364, 1859098, -1613174, -3122442,
|
|
131
|
+
-525098, 286988, -3342277, 2691481, 1247620,
|
|
132
|
+
1250494, 1869119, 1237275, 1312455, 1917081,
|
|
133
|
+
777191, -2831860, -3724270, 2432395, 3369112,
|
|
134
|
+
162844, 1652634, 3523897, -975884, 1723600,
|
|
135
|
+
-1104333, -2235985, -976891, 3919660, 1400424,
|
|
136
|
+
2316500, -2446433, -1235728, -1197226, 909542,
|
|
137
|
+
-43260, 2031748, -768622, -2437823, 1735879,
|
|
138
|
+
-2590150, 2486353, 2635921, 1903435, -3318210,
|
|
139
|
+
3306115, -2546312, 2235880, -1671176, 594136,
|
|
140
|
+
2454455, 185531, 1616392, -3694233, 3866901,
|
|
141
|
+
1717735, -1803090, -260646, -420899, 1612842,
|
|
142
|
+
-48306, -846154, 3817976, -3562462, 3513181,
|
|
143
|
+
-3193378, 819034, -522500, 3207046, -3595838,
|
|
144
|
+
4108315, 203044, 1265009, 1595974, -3548272,
|
|
145
|
+
-1050970, -1430225, -1962642, -1374803, 3406031,
|
|
146
|
+
-1846953, -3776993, -164721, -1207385, 3014001,
|
|
147
|
+
-1799107, 269760, 472078, 1910376, -3833893,
|
|
148
|
+
-2286327, -3545687, -1362209, 1976782,
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
#else /* MLD_ARITH_BACKEND_X86_64_DEFAULT && !MLD_CONFIG_MULTILEVEL_NO_SHARED \
|
|
152
|
+
*/
|
|
153
|
+
|
|
154
|
+
MLD_EMPTY_CU(avx2_consts)
|
|
155
|
+
|
|
156
|
+
#endif /* !(MLD_ARITH_BACKEND_X86_64_DEFAULT && \
|
|
157
|
+
!MLD_CONFIG_MULTILEVEL_NO_SHARED) */
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) The mldsa-native project authors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* WARNING: This file is auto-generated from scripts/autogen
|
|
8
|
+
* in the mldsa-native repository.
|
|
9
|
+
* Do not modify it directly.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
#ifndef MLD_NATIVE_X86_64_SRC_CONSTS_H
|
|
13
|
+
#define MLD_NATIVE_X86_64_SRC_CONSTS_H
|
|
14
|
+
#include "../../../common.h"
|
|
15
|
+
#define MLD_AVX2_BACKEND_DATA_OFFSET_8XQ 0
|
|
16
|
+
#define MLD_AVX2_BACKEND_DATA_OFFSET_8XQINV 8
|
|
17
|
+
#define MLD_AVX2_BACKEND_DATA_OFFSET_8XDIV_QINV 16
|
|
18
|
+
#define MLD_AVX2_BACKEND_DATA_OFFSET_8XDIV 24
|
|
19
|
+
#define MLD_AVX2_BACKEND_DATA_OFFSET_ZETAS_QINV 32
|
|
20
|
+
#define MLD_AVX2_BACKEND_DATA_OFFSET_ZETAS 328
|
|
21
|
+
|
|
22
|
+
#ifndef __ASSEMBLER__
|
|
23
|
+
#define mld_qdata MLD_NAMESPACE(qdata)
|
|
24
|
+
MLD_INTERNAL_DATA_DECLARATION const int32_t mld_qdata[624];
|
|
25
|
+
#endif
|
|
26
|
+
|
|
27
|
+
#endif /* !MLD_NATIVE_X86_64_SRC_CONSTS_H */
|