pq_crypto 0.6.1 → 0.6.3
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 +10 -0
- data/SECURITY.md +7 -0
- data/ext/pqcrypto/pqcrypto_version.h +1 -1
- data/ext/pqcrypto/vendor/.vendored +7 -7
- data/ext/pqcrypto/vendor/mldsa-native/README.md +23 -10
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/README.md +23 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/mldsa_native.c +114 -58
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/mldsa_native.h +498 -461
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/mldsa_native_asm.S +145 -85
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/mldsa_native_config.h +456 -422
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/cbmc.h +47 -25
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/common.h +26 -14
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/ct.h +56 -81
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/debug.h +17 -24
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/fips202.c +33 -40
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/fips202.h +67 -87
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/fips202x4.c +19 -14
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/fips202x4.h +13 -5
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/keccakf1600.c +84 -10
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/keccakf1600.h +10 -5
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/auto.h +6 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/fips202_native_aarch64.h +22 -15
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/keccak_f1600_x1_scalar_aarch64_asm.S +376 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/keccak_f1600_x1_v84a_aarch64_asm.S +204 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/keccak_f1600_x2_v84a_aarch64_asm.S +259 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/keccak_f1600_x4_v8a_scalar_hybrid_aarch64_asm.S +1077 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/keccak_f1600_x4_v8a_v84a_scalar_hybrid_aarch64_asm.S +987 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/keccakf1600_round_constants.c +16 -10
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/x1_scalar.h +2 -1
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/x1_v84a.h +1 -1
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/x2_v84a.h +4 -2
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/x4_v8a_scalar.h +2 -2
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/x4_v8a_v84a_scalar.h +1 -1
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/api.h +60 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/armv81m/mve.h +48 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/armv81m/src/fips202_native_armv81m.h +18 -1
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/armv81m/src/keccak_f1600_x4_mve.S +658 -582
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/armv81m/src/keccak_f1600_x4_mve.c +5 -100
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/armv81m/src/keccakf1600_round_constants.c +26 -25
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/armv81m/src/state_extract_bytes_x4_mve.S +334 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/armv81m/src/state_xor_bytes_x4_mve.S +355 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/auto.h +8 -3
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/x86_64/{xkcp.h → keccak_f1600_x4_avx2.h} +11 -8
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/x86_64/src/fips202_native_x86_64.h +44 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/x86_64/src/keccak_f1600_x4_avx2_asm.S +454 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/x86_64/src/keccakf1600_constants.c +52 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/meta.h +37 -28
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/aarch64_zetas.c +213 -196
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/arith_native_aarch64.h +248 -64
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/intt_aarch64_asm.S +753 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/mld_polyvecl_pointwise_acc_montgomery_l4_aarch64_asm.S +129 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/mld_polyvecl_pointwise_acc_montgomery_l5_aarch64_asm.S +145 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/mld_polyvecl_pointwise_acc_montgomery_l7_aarch64_asm.S +177 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/ntt_aarch64_asm.S +653 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/pointwise_montgomery_aarch64_asm.S +84 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/poly_caddq_aarch64_asm.S +53 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/poly_chknorm_aarch64_asm.S +55 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/poly_decompose_32_aarch64_asm.S +86 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/poly_decompose_88_aarch64_asm.S +86 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/poly_use_hint_32_aarch64_asm.S +103 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/poly_use_hint_88_aarch64_asm.S +111 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/polyz_unpack_17_aarch64_asm.S +75 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/polyz_unpack_19_aarch64_asm.S +72 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/polyz_unpack_table.c +23 -11
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/rej_uniform_aarch64_asm.S +189 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/rej_uniform_eta2_aarch64_asm.S +137 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/rej_uniform_eta4_aarch64_asm.S +130 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/rej_uniform_eta_table.c +520 -516
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/rej_uniform_table.c +34 -33
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/api.h +202 -242
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/meta.h +25 -17
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/arith_native_x86_64.h +112 -28
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/consts.c +1 -1
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/consts.h +1 -1
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/intt_avx2_asm.S +2311 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/ntt_avx2_asm.S +2383 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/nttunpack_avx2_asm.S +238 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/pointwise_acc_l4_avx2_asm.S +139 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/pointwise_acc_l5_avx2_asm.S +155 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/pointwise_acc_l7_avx2_asm.S +187 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/pointwise_avx2_asm.S +130 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/poly_caddq_avx2_asm.S +190 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/poly_decompose_32_avx2.c +6 -4
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/poly_decompose_88_avx2.c +6 -4
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/poly_use_hint_32_avx2.c +9 -8
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/poly_use_hint_88_avx2.c +10 -9
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/polyz_unpack_17_avx2.c +8 -5
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/polyz_unpack_19_avx2.c +8 -5
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/rej_uniform_eta2_avx2.c +6 -4
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/rej_uniform_eta4_avx2.c +6 -4
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/rej_uniform_table.c +130 -129
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/packing.c +109 -180
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/packing.h +169 -150
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/poly.c +56 -40
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/poly.h +149 -164
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/poly_kl.c +52 -57
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/poly_kl.h +132 -167
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/polyvec.c +57 -424
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/polyvec.h +167 -474
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/polyvec_lazy.c +308 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/polyvec_lazy.h +653 -0
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/reduce.h +22 -29
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/rounding.h +37 -43
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/sign.c +511 -367
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/sign.h +456 -417
- data/ext/pqcrypto/vendor/mlkem-native/README.md +6 -3
- data/ext/pqcrypto/vendor/mlkem-native/RELEASE.md +22 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/mlkem_native.c +77 -36
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/mlkem_native.h +135 -146
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/mlkem_native_asm.S +116 -72
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/mlkem_native_config.h +351 -415
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/cbmc.h +43 -20
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/common.h +16 -8
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/compress.c +57 -31
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/compress.h +260 -349
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/debug.h +17 -24
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/fips202.c +35 -37
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/fips202.h +43 -57
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/fips202x4.c +14 -15
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/fips202x4.h +5 -4
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/keccakf1600.c +42 -6
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/src/fips202_native_aarch64.h +31 -20
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/src/{keccak_f1600_x1_scalar_asm.S → keccak_f1600_x1_scalar_aarch64_asm.S} +10 -10
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/src/{keccak_f1600_x1_v84a_asm.S → keccak_f1600_x1_v84a_aarch64_asm.S} +10 -10
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/src/{keccak_f1600_x2_v84a_asm.S → keccak_f1600_x2_v84a_aarch64_asm.S} +10 -10
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/src/{keccak_f1600_x4_v8a_scalar_hybrid_asm.S → keccak_f1600_x4_v8a_scalar_hybrid_aarch64_asm.S} +10 -10
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/src/{keccak_f1600_x4_v8a_v84a_scalar_hybrid_asm.S → keccak_f1600_x4_v8a_v84a_scalar_hybrid_aarch64_asm.S} +10 -10
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/src/keccakf1600_round_constants.c +10 -9
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/x1_scalar.h +2 -1
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/x1_v84a.h +1 -1
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/x2_v84a.h +4 -2
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/x4_v8a_scalar.h +2 -2
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/aarch64/x4_v8a_v84a_scalar.h +1 -1
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/armv81m/src/fips202_native_armv81m.h +2 -1
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/armv81m/src/keccak_f1600_x4_mve.S +55 -9
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/armv81m/src/keccakf1600_round_constants.c +26 -25
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/armv81m/src/state_extract_bytes_x4_mve.S +58 -14
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/armv81m/src/state_xor_bytes_x4_mve.S +57 -16
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/auto.h +2 -1
- 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/fips202_native_x86_64.h +10 -7
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/x86_64/src/{keccak_f1600_x4_avx2.S → keccak_f1600_x4_avx2_asm.S} +13 -11
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/fips202/native/x86_64/src/keccakf1600_constants.c +12 -11
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/indcpa.c +167 -136
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/indcpa.h +75 -68
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/kem.h +135 -157
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/meta.h +15 -13
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/aarch64_zetas.c +143 -135
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/arith_native_aarch64.h +52 -46
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/{intt.S → intt_aarch64_asm.S} +10 -10
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/{ntt.S → ntt_aarch64_asm.S} +10 -10
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/{poly_mulcache_compute_asm.S → poly_mulcache_compute_aarch64_asm.S} +10 -10
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/{poly_reduce_asm.S → poly_reduce_aarch64_asm.S} +10 -10
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/{poly_tobytes_asm.S → poly_tobytes_aarch64_asm.S} +10 -10
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/{poly_tomont_asm.S → poly_tomont_aarch64_asm.S} +10 -12
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/{polyvec_basemul_acc_montgomery_cached_asm_k2.S → polyvec_basemul_acc_montgomery_cached_k2_aarch64_asm.S} +10 -10
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/{polyvec_basemul_acc_montgomery_cached_asm_k3.S → polyvec_basemul_acc_montgomery_cached_k3_aarch64_asm.S} +10 -10
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/{polyvec_basemul_acc_montgomery_cached_asm_k4.S → polyvec_basemul_acc_montgomery_cached_k4_aarch64_asm.S} +10 -10
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/{rej_uniform_asm.S → rej_uniform_aarch64_asm.S} +12 -12
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/aarch64/src/rej_uniform_table.c +514 -513
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/api.h +254 -253
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/meta.h +6 -1
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/ppc64le/README.md +6 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/ppc64le/meta.h +77 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/ppc64le/src/arith_native_ppc64le.h +24 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/ppc64le/src/consts.c +299 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/ppc64le/src/consts.h +34 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/ppc64le/src/intt_ppc_asm.S +3222 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/ppc64le/src/ntt_ppc_asm.S +1651 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/ppc64le/src/poly_tomont_ppc_asm.S +294 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/ppc64le/src/reduce_ppc_asm.S +710 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/riscv64/meta.h +5 -0
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/riscv64/src/rv64v_debug.c +18 -16
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/riscv64/src/rv64v_debug.h +19 -24
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/riscv64/src/rv64v_poly.c +53 -65
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/meta.h +20 -20
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/arith_native_x86_64.h +106 -88
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/compress_consts.c +45 -35
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/compress_consts.h +8 -8
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/consts.c +1 -1
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/consts.h +1 -1
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{intt.S → intt_avx2_asm.S} +8 -8
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{ntt.S → ntt_avx2_asm.S} +8 -8
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{nttfrombytes.S → nttfrombytes_avx2_asm.S} +8 -8
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{ntttobytes.S → ntttobytes_avx2_asm.S} +8 -8
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{nttunpack.S → nttunpack_avx2_asm.S} +8 -8
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{poly_compress_d10.S → poly_compress_d10_avx2_asm.S} +9 -9
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{poly_compress_d11.S → poly_compress_d11_avx2_asm.S} +9 -9
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{poly_compress_d4.S → poly_compress_d4_avx2_asm.S} +9 -9
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{poly_compress_d5.S → poly_compress_d5_avx2_asm.S} +9 -9
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{poly_decompress_d10.S → poly_decompress_d10_avx2_asm.S} +9 -9
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{poly_decompress_d11.S → poly_decompress_d11_avx2_asm.S} +9 -9
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{poly_decompress_d4.S → poly_decompress_d4_avx2_asm.S} +9 -9
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{poly_decompress_d5.S → poly_decompress_d5_avx2_asm.S} +9 -9
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{mulcache_compute.S → poly_mulcache_compute_avx2_asm.S} +8 -8
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{polyvec_basemul_acc_montgomery_cached_asm_k2.S → polyvec_basemul_acc_montgomery_cached_k2_avx2_asm.S} +8 -8
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{polyvec_basemul_acc_montgomery_cached_asm_k3.S → polyvec_basemul_acc_montgomery_cached_k3_avx2_asm.S} +8 -8
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{polyvec_basemul_acc_montgomery_cached_asm_k4.S → polyvec_basemul_acc_montgomery_cached_k4_avx2_asm.S} +8 -8
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{reduce.S → reduce_avx2_asm.S} +8 -8
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{rej_uniform_asm.S → rej_uniform_avx2_asm.S} +9 -9
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/rej_uniform_table.c +514 -513
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/native/x86_64/src/{tomont.S → tomont_avx2_asm.S} +8 -8
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/poly.c +61 -57
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/poly.h +89 -116
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/poly_k.c +31 -32
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/poly_k.h +226 -301
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/randombytes.h +21 -29
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/sampling.c +68 -63
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/sampling.h +37 -48
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/sys.h +44 -2
- data/ext/pqcrypto/vendor/mlkem-native/mlkem/src/verify.h +141 -159
- data/lib/pq_crypto/version.rb +1 -1
- data/script/vendor_libs.rb +6 -6
- metadata +86 -71
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/keccak_f1600_x1_scalar_asm.S +0 -376
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/keccak_f1600_x1_v84a_asm.S +0 -204
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/keccak_f1600_x2_v84a_asm.S +0 -259
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/keccak_f1600_x4_v8a_scalar_hybrid_asm.S +0 -1077
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/aarch64/src/keccak_f1600_x4_v8a_v84a_scalar_hybrid_asm.S +0 -987
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/x86_64/src/KeccakP_1600_times4_SIMD256.c +0 -488
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/fips202/native/x86_64/src/KeccakP_1600_times4_SIMD256.h +0 -16
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/intt.S +0 -753
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/mld_polyvecl_pointwise_acc_montgomery_l4.S +0 -129
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/mld_polyvecl_pointwise_acc_montgomery_l5.S +0 -145
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/mld_polyvecl_pointwise_acc_montgomery_l7.S +0 -177
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/ntt.S +0 -653
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/pointwise_montgomery.S +0 -79
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/poly_caddq_asm.S +0 -53
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/poly_chknorm_asm.S +0 -55
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/poly_decompose_32_asm.S +0 -85
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/poly_decompose_88_asm.S +0 -85
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/poly_use_hint_32_asm.S +0 -102
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/poly_use_hint_88_asm.S +0 -110
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/polyz_unpack_17_asm.S +0 -72
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/polyz_unpack_19_asm.S +0 -69
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/rej_uniform_asm.S +0 -189
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/rej_uniform_eta2_asm.S +0 -135
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/aarch64/src/rej_uniform_eta4_asm.S +0 -128
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/intt.S +0 -2311
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/ntt.S +0 -2383
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/nttunpack.S +0 -239
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/pointwise.S +0 -131
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/pointwise_acc_l4.S +0 -139
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/pointwise_acc_l5.S +0 -155
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/pointwise_acc_l7.S +0 -187
- data/ext/pqcrypto/vendor/mldsa-native/mldsa/src/native/x86_64/src/poly_caddq_avx2.c +0 -61
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
/* Copyright (c) The mldsa-native project authors
|
|
2
|
-
* SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
#include "../../../common.h"
|
|
6
|
-
#if defined(MLD_ARITH_BACKEND_AARCH64) && !defined(MLD_CONFIG_MULTILEVEL_NO_SHARED) && \
|
|
7
|
-
(defined(MLD_CONFIG_MULTILEVEL_WITH_SHARED) || MLDSA_L == 4)
|
|
8
|
-
|
|
9
|
-
/*
|
|
10
|
-
* WARNING: This file is auto-derived from the mldsa-native source file
|
|
11
|
-
* dev/aarch64_opt/src/mld_polyvecl_pointwise_acc_montgomery_l4.S using scripts/simpasm. Do not modify it directly.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
#if defined(__ELF__)
|
|
15
|
-
.section .note.GNU-stack,"",@progbits
|
|
16
|
-
#endif
|
|
17
|
-
|
|
18
|
-
.text
|
|
19
|
-
.balign 4
|
|
20
|
-
.global MLD_ASM_NAMESPACE(polyvecl_pointwise_acc_montgomery_l4_asm)
|
|
21
|
-
MLD_ASM_FN_SYMBOL(polyvecl_pointwise_acc_montgomery_l4_asm)
|
|
22
|
-
|
|
23
|
-
.cfi_startproc
|
|
24
|
-
mov w3, #0xe001 // =57345
|
|
25
|
-
movk w3, #0x7f, lsl #16
|
|
26
|
-
dup v0.4s, w3
|
|
27
|
-
mov w3, #0x2001 // =8193
|
|
28
|
-
movk w3, #0x380, lsl #16
|
|
29
|
-
dup v1.4s, w3
|
|
30
|
-
mov x3, #0x40 // =64
|
|
31
|
-
|
|
32
|
-
Lpolyvecl_pointwise_acc_montgomery_l4_loop_start:
|
|
33
|
-
ldr q17, [x1, #0x10]
|
|
34
|
-
ldr q18, [x1, #0x20]
|
|
35
|
-
ldr q19, [x1, #0x30]
|
|
36
|
-
ldr q16, [x1], #0x40
|
|
37
|
-
ldr q21, [x2, #0x10]
|
|
38
|
-
ldr q22, [x2, #0x20]
|
|
39
|
-
ldr q23, [x2, #0x30]
|
|
40
|
-
ldr q20, [x2], #0x40
|
|
41
|
-
smull v24.2d, v16.2s, v20.2s
|
|
42
|
-
smull2 v25.2d, v16.4s, v20.4s
|
|
43
|
-
smull v26.2d, v17.2s, v21.2s
|
|
44
|
-
smull2 v27.2d, v17.4s, v21.4s
|
|
45
|
-
smull v28.2d, v18.2s, v22.2s
|
|
46
|
-
smull2 v29.2d, v18.4s, v22.4s
|
|
47
|
-
smull v30.2d, v19.2s, v23.2s
|
|
48
|
-
smull2 v31.2d, v19.4s, v23.4s
|
|
49
|
-
ldr q16, [x1, #0x3c0]
|
|
50
|
-
ldr q17, [x1, #0x3d0]
|
|
51
|
-
ldr q18, [x1, #0x3e0]
|
|
52
|
-
ldr q19, [x1, #0x3f0]
|
|
53
|
-
ldr q20, [x2, #0x3c0]
|
|
54
|
-
ldr q21, [x2, #0x3d0]
|
|
55
|
-
ldr q22, [x2, #0x3e0]
|
|
56
|
-
ldr q23, [x2, #0x3f0]
|
|
57
|
-
smlal v24.2d, v16.2s, v20.2s
|
|
58
|
-
smlal2 v25.2d, v16.4s, v20.4s
|
|
59
|
-
smlal v26.2d, v17.2s, v21.2s
|
|
60
|
-
smlal2 v27.2d, v17.4s, v21.4s
|
|
61
|
-
smlal v28.2d, v18.2s, v22.2s
|
|
62
|
-
smlal2 v29.2d, v18.4s, v22.4s
|
|
63
|
-
smlal v30.2d, v19.2s, v23.2s
|
|
64
|
-
smlal2 v31.2d, v19.4s, v23.4s
|
|
65
|
-
ldr q16, [x1, #0x7c0]
|
|
66
|
-
ldr q17, [x1, #0x7d0]
|
|
67
|
-
ldr q18, [x1, #0x7e0]
|
|
68
|
-
ldr q19, [x1, #0x7f0]
|
|
69
|
-
ldr q20, [x2, #0x7c0]
|
|
70
|
-
ldr q21, [x2, #0x7d0]
|
|
71
|
-
ldr q22, [x2, #0x7e0]
|
|
72
|
-
ldr q23, [x2, #0x7f0]
|
|
73
|
-
smlal v24.2d, v16.2s, v20.2s
|
|
74
|
-
smlal2 v25.2d, v16.4s, v20.4s
|
|
75
|
-
smlal v26.2d, v17.2s, v21.2s
|
|
76
|
-
smlal2 v27.2d, v17.4s, v21.4s
|
|
77
|
-
smlal v28.2d, v18.2s, v22.2s
|
|
78
|
-
smlal2 v29.2d, v18.4s, v22.4s
|
|
79
|
-
smlal v30.2d, v19.2s, v23.2s
|
|
80
|
-
smlal2 v31.2d, v19.4s, v23.4s
|
|
81
|
-
ldr q16, [x1, #0xbc0]
|
|
82
|
-
ldr q17, [x1, #0xbd0]
|
|
83
|
-
ldr q18, [x1, #0xbe0]
|
|
84
|
-
ldr q19, [x1, #0xbf0]
|
|
85
|
-
ldr q20, [x2, #0xbc0]
|
|
86
|
-
ldr q21, [x2, #0xbd0]
|
|
87
|
-
ldr q22, [x2, #0xbe0]
|
|
88
|
-
ldr q23, [x2, #0xbf0]
|
|
89
|
-
smlal v24.2d, v16.2s, v20.2s
|
|
90
|
-
smlal2 v25.2d, v16.4s, v20.4s
|
|
91
|
-
smlal v26.2d, v17.2s, v21.2s
|
|
92
|
-
smlal2 v27.2d, v17.4s, v21.4s
|
|
93
|
-
smlal v28.2d, v18.2s, v22.2s
|
|
94
|
-
smlal2 v29.2d, v18.4s, v22.4s
|
|
95
|
-
smlal v30.2d, v19.2s, v23.2s
|
|
96
|
-
smlal2 v31.2d, v19.4s, v23.4s
|
|
97
|
-
uzp1 v16.4s, v24.4s, v25.4s
|
|
98
|
-
mul v16.4s, v16.4s, v1.4s
|
|
99
|
-
smlsl v24.2d, v16.2s, v0.2s
|
|
100
|
-
smlsl2 v25.2d, v16.4s, v0.4s
|
|
101
|
-
uzp2 v16.4s, v24.4s, v25.4s
|
|
102
|
-
uzp1 v17.4s, v26.4s, v27.4s
|
|
103
|
-
mul v17.4s, v17.4s, v1.4s
|
|
104
|
-
smlsl v26.2d, v17.2s, v0.2s
|
|
105
|
-
smlsl2 v27.2d, v17.4s, v0.4s
|
|
106
|
-
uzp2 v17.4s, v26.4s, v27.4s
|
|
107
|
-
uzp1 v18.4s, v28.4s, v29.4s
|
|
108
|
-
mul v18.4s, v18.4s, v1.4s
|
|
109
|
-
smlsl v28.2d, v18.2s, v0.2s
|
|
110
|
-
smlsl2 v29.2d, v18.4s, v0.4s
|
|
111
|
-
uzp2 v18.4s, v28.4s, v29.4s
|
|
112
|
-
uzp1 v19.4s, v30.4s, v31.4s
|
|
113
|
-
mul v19.4s, v19.4s, v1.4s
|
|
114
|
-
smlsl v30.2d, v19.2s, v0.2s
|
|
115
|
-
smlsl2 v31.2d, v19.4s, v0.4s
|
|
116
|
-
uzp2 v19.4s, v30.4s, v31.4s
|
|
117
|
-
str q17, [x0, #0x10]
|
|
118
|
-
str q18, [x0, #0x20]
|
|
119
|
-
str q19, [x0, #0x30]
|
|
120
|
-
str q16, [x0], #0x40
|
|
121
|
-
subs x3, x3, #0x4
|
|
122
|
-
cbnz x3, Lpolyvecl_pointwise_acc_montgomery_l4_loop_start
|
|
123
|
-
ret
|
|
124
|
-
.cfi_endproc
|
|
125
|
-
|
|
126
|
-
MLD_ASM_FN_SIZE(polyvecl_pointwise_acc_montgomery_l4_asm)
|
|
127
|
-
|
|
128
|
-
#endif /* MLD_ARITH_BACKEND_AARCH64 && !MLD_CONFIG_MULTILEVEL_NO_SHARED && \
|
|
129
|
-
(MLD_CONFIG_MULTILEVEL_WITH_SHARED || MLDSA_L == 4) */
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
/* Copyright (c) The mldsa-native project authors
|
|
2
|
-
* SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
#include "../../../common.h"
|
|
6
|
-
#if defined(MLD_ARITH_BACKEND_AARCH64) && !defined(MLD_CONFIG_MULTILEVEL_NO_SHARED) && \
|
|
7
|
-
(defined(MLD_CONFIG_MULTILEVEL_WITH_SHARED) || MLDSA_L == 5)
|
|
8
|
-
|
|
9
|
-
/*
|
|
10
|
-
* WARNING: This file is auto-derived from the mldsa-native source file
|
|
11
|
-
* dev/aarch64_opt/src/mld_polyvecl_pointwise_acc_montgomery_l5.S using scripts/simpasm. Do not modify it directly.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
#if defined(__ELF__)
|
|
15
|
-
.section .note.GNU-stack,"",@progbits
|
|
16
|
-
#endif
|
|
17
|
-
|
|
18
|
-
.text
|
|
19
|
-
.balign 4
|
|
20
|
-
.global MLD_ASM_NAMESPACE(polyvecl_pointwise_acc_montgomery_l5_asm)
|
|
21
|
-
MLD_ASM_FN_SYMBOL(polyvecl_pointwise_acc_montgomery_l5_asm)
|
|
22
|
-
|
|
23
|
-
.cfi_startproc
|
|
24
|
-
mov w3, #0xe001 // =57345
|
|
25
|
-
movk w3, #0x7f, lsl #16
|
|
26
|
-
dup v0.4s, w3
|
|
27
|
-
mov w3, #0x2001 // =8193
|
|
28
|
-
movk w3, #0x380, lsl #16
|
|
29
|
-
dup v1.4s, w3
|
|
30
|
-
mov x3, #0x40 // =64
|
|
31
|
-
|
|
32
|
-
Lpolyvecl_pointwise_acc_montgomery_l5_loop_start:
|
|
33
|
-
ldr q17, [x1, #0x10]
|
|
34
|
-
ldr q18, [x1, #0x20]
|
|
35
|
-
ldr q19, [x1, #0x30]
|
|
36
|
-
ldr q16, [x1], #0x40
|
|
37
|
-
ldr q21, [x2, #0x10]
|
|
38
|
-
ldr q22, [x2, #0x20]
|
|
39
|
-
ldr q23, [x2, #0x30]
|
|
40
|
-
ldr q20, [x2], #0x40
|
|
41
|
-
smull v24.2d, v16.2s, v20.2s
|
|
42
|
-
smull2 v25.2d, v16.4s, v20.4s
|
|
43
|
-
smull v26.2d, v17.2s, v21.2s
|
|
44
|
-
smull2 v27.2d, v17.4s, v21.4s
|
|
45
|
-
smull v28.2d, v18.2s, v22.2s
|
|
46
|
-
smull2 v29.2d, v18.4s, v22.4s
|
|
47
|
-
smull v30.2d, v19.2s, v23.2s
|
|
48
|
-
smull2 v31.2d, v19.4s, v23.4s
|
|
49
|
-
ldr q16, [x1, #0x3c0]
|
|
50
|
-
ldr q17, [x1, #0x3d0]
|
|
51
|
-
ldr q18, [x1, #0x3e0]
|
|
52
|
-
ldr q19, [x1, #0x3f0]
|
|
53
|
-
ldr q20, [x2, #0x3c0]
|
|
54
|
-
ldr q21, [x2, #0x3d0]
|
|
55
|
-
ldr q22, [x2, #0x3e0]
|
|
56
|
-
ldr q23, [x2, #0x3f0]
|
|
57
|
-
smlal v24.2d, v16.2s, v20.2s
|
|
58
|
-
smlal2 v25.2d, v16.4s, v20.4s
|
|
59
|
-
smlal v26.2d, v17.2s, v21.2s
|
|
60
|
-
smlal2 v27.2d, v17.4s, v21.4s
|
|
61
|
-
smlal v28.2d, v18.2s, v22.2s
|
|
62
|
-
smlal2 v29.2d, v18.4s, v22.4s
|
|
63
|
-
smlal v30.2d, v19.2s, v23.2s
|
|
64
|
-
smlal2 v31.2d, v19.4s, v23.4s
|
|
65
|
-
ldr q16, [x1, #0x7c0]
|
|
66
|
-
ldr q17, [x1, #0x7d0]
|
|
67
|
-
ldr q18, [x1, #0x7e0]
|
|
68
|
-
ldr q19, [x1, #0x7f0]
|
|
69
|
-
ldr q20, [x2, #0x7c0]
|
|
70
|
-
ldr q21, [x2, #0x7d0]
|
|
71
|
-
ldr q22, [x2, #0x7e0]
|
|
72
|
-
ldr q23, [x2, #0x7f0]
|
|
73
|
-
smlal v24.2d, v16.2s, v20.2s
|
|
74
|
-
smlal2 v25.2d, v16.4s, v20.4s
|
|
75
|
-
smlal v26.2d, v17.2s, v21.2s
|
|
76
|
-
smlal2 v27.2d, v17.4s, v21.4s
|
|
77
|
-
smlal v28.2d, v18.2s, v22.2s
|
|
78
|
-
smlal2 v29.2d, v18.4s, v22.4s
|
|
79
|
-
smlal v30.2d, v19.2s, v23.2s
|
|
80
|
-
smlal2 v31.2d, v19.4s, v23.4s
|
|
81
|
-
ldr q16, [x1, #0xbc0]
|
|
82
|
-
ldr q17, [x1, #0xbd0]
|
|
83
|
-
ldr q18, [x1, #0xbe0]
|
|
84
|
-
ldr q19, [x1, #0xbf0]
|
|
85
|
-
ldr q20, [x2, #0xbc0]
|
|
86
|
-
ldr q21, [x2, #0xbd0]
|
|
87
|
-
ldr q22, [x2, #0xbe0]
|
|
88
|
-
ldr q23, [x2, #0xbf0]
|
|
89
|
-
smlal v24.2d, v16.2s, v20.2s
|
|
90
|
-
smlal2 v25.2d, v16.4s, v20.4s
|
|
91
|
-
smlal v26.2d, v17.2s, v21.2s
|
|
92
|
-
smlal2 v27.2d, v17.4s, v21.4s
|
|
93
|
-
smlal v28.2d, v18.2s, v22.2s
|
|
94
|
-
smlal2 v29.2d, v18.4s, v22.4s
|
|
95
|
-
smlal v30.2d, v19.2s, v23.2s
|
|
96
|
-
smlal2 v31.2d, v19.4s, v23.4s
|
|
97
|
-
ldr q16, [x1, #0xfc0]
|
|
98
|
-
ldr q17, [x1, #0xfd0]
|
|
99
|
-
ldr q18, [x1, #0xfe0]
|
|
100
|
-
ldr q19, [x1, #0xff0]
|
|
101
|
-
ldr q20, [x2, #0xfc0]
|
|
102
|
-
ldr q21, [x2, #0xfd0]
|
|
103
|
-
ldr q22, [x2, #0xfe0]
|
|
104
|
-
ldr q23, [x2, #0xff0]
|
|
105
|
-
smlal v24.2d, v16.2s, v20.2s
|
|
106
|
-
smlal2 v25.2d, v16.4s, v20.4s
|
|
107
|
-
smlal v26.2d, v17.2s, v21.2s
|
|
108
|
-
smlal2 v27.2d, v17.4s, v21.4s
|
|
109
|
-
smlal v28.2d, v18.2s, v22.2s
|
|
110
|
-
smlal2 v29.2d, v18.4s, v22.4s
|
|
111
|
-
smlal v30.2d, v19.2s, v23.2s
|
|
112
|
-
smlal2 v31.2d, v19.4s, v23.4s
|
|
113
|
-
uzp1 v16.4s, v24.4s, v25.4s
|
|
114
|
-
mul v16.4s, v16.4s, v1.4s
|
|
115
|
-
smlsl v24.2d, v16.2s, v0.2s
|
|
116
|
-
smlsl2 v25.2d, v16.4s, v0.4s
|
|
117
|
-
uzp2 v16.4s, v24.4s, v25.4s
|
|
118
|
-
uzp1 v17.4s, v26.4s, v27.4s
|
|
119
|
-
mul v17.4s, v17.4s, v1.4s
|
|
120
|
-
smlsl v26.2d, v17.2s, v0.2s
|
|
121
|
-
smlsl2 v27.2d, v17.4s, v0.4s
|
|
122
|
-
uzp2 v17.4s, v26.4s, v27.4s
|
|
123
|
-
uzp1 v18.4s, v28.4s, v29.4s
|
|
124
|
-
mul v18.4s, v18.4s, v1.4s
|
|
125
|
-
smlsl v28.2d, v18.2s, v0.2s
|
|
126
|
-
smlsl2 v29.2d, v18.4s, v0.4s
|
|
127
|
-
uzp2 v18.4s, v28.4s, v29.4s
|
|
128
|
-
uzp1 v19.4s, v30.4s, v31.4s
|
|
129
|
-
mul v19.4s, v19.4s, v1.4s
|
|
130
|
-
smlsl v30.2d, v19.2s, v0.2s
|
|
131
|
-
smlsl2 v31.2d, v19.4s, v0.4s
|
|
132
|
-
uzp2 v19.4s, v30.4s, v31.4s
|
|
133
|
-
str q17, [x0, #0x10]
|
|
134
|
-
str q18, [x0, #0x20]
|
|
135
|
-
str q19, [x0, #0x30]
|
|
136
|
-
str q16, [x0], #0x40
|
|
137
|
-
subs x3, x3, #0x4
|
|
138
|
-
cbnz x3, Lpolyvecl_pointwise_acc_montgomery_l5_loop_start
|
|
139
|
-
ret
|
|
140
|
-
.cfi_endproc
|
|
141
|
-
|
|
142
|
-
MLD_ASM_FN_SIZE(polyvecl_pointwise_acc_montgomery_l5_asm)
|
|
143
|
-
|
|
144
|
-
#endif /* MLD_ARITH_BACKEND_AARCH64 && !MLD_CONFIG_MULTILEVEL_NO_SHARED && \
|
|
145
|
-
(MLD_CONFIG_MULTILEVEL_WITH_SHARED || MLDSA_L == 5) */
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
/* Copyright (c) The mldsa-native project authors
|
|
2
|
-
* SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
#include "../../../common.h"
|
|
6
|
-
#if defined(MLD_ARITH_BACKEND_AARCH64) && !defined(MLD_CONFIG_MULTILEVEL_NO_SHARED) && \
|
|
7
|
-
(defined(MLD_CONFIG_MULTILEVEL_WITH_SHARED) || MLDSA_L == 7)
|
|
8
|
-
|
|
9
|
-
/*
|
|
10
|
-
* WARNING: This file is auto-derived from the mldsa-native source file
|
|
11
|
-
* dev/aarch64_opt/src/mld_polyvecl_pointwise_acc_montgomery_l7.S using scripts/simpasm. Do not modify it directly.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
#if defined(__ELF__)
|
|
15
|
-
.section .note.GNU-stack,"",@progbits
|
|
16
|
-
#endif
|
|
17
|
-
|
|
18
|
-
.text
|
|
19
|
-
.balign 4
|
|
20
|
-
.global MLD_ASM_NAMESPACE(polyvecl_pointwise_acc_montgomery_l7_asm)
|
|
21
|
-
MLD_ASM_FN_SYMBOL(polyvecl_pointwise_acc_montgomery_l7_asm)
|
|
22
|
-
|
|
23
|
-
.cfi_startproc
|
|
24
|
-
mov w3, #0xe001 // =57345
|
|
25
|
-
movk w3, #0x7f, lsl #16
|
|
26
|
-
dup v0.4s, w3
|
|
27
|
-
mov w3, #0x2001 // =8193
|
|
28
|
-
movk w3, #0x380, lsl #16
|
|
29
|
-
dup v1.4s, w3
|
|
30
|
-
mov x3, #0x40 // =64
|
|
31
|
-
|
|
32
|
-
Lpolyvecl_pointwise_acc_montgomery_l7_loop_start:
|
|
33
|
-
ldr q17, [x1, #0x10]
|
|
34
|
-
ldr q18, [x1, #0x20]
|
|
35
|
-
ldr q19, [x1, #0x30]
|
|
36
|
-
ldr q16, [x1], #0x40
|
|
37
|
-
ldr q21, [x2, #0x10]
|
|
38
|
-
ldr q22, [x2, #0x20]
|
|
39
|
-
ldr q23, [x2, #0x30]
|
|
40
|
-
ldr q20, [x2], #0x40
|
|
41
|
-
smull v24.2d, v16.2s, v20.2s
|
|
42
|
-
smull2 v25.2d, v16.4s, v20.4s
|
|
43
|
-
smull v26.2d, v17.2s, v21.2s
|
|
44
|
-
smull2 v27.2d, v17.4s, v21.4s
|
|
45
|
-
smull v28.2d, v18.2s, v22.2s
|
|
46
|
-
smull2 v29.2d, v18.4s, v22.4s
|
|
47
|
-
smull v30.2d, v19.2s, v23.2s
|
|
48
|
-
smull2 v31.2d, v19.4s, v23.4s
|
|
49
|
-
ldr q16, [x1, #0x3c0]
|
|
50
|
-
ldr q17, [x1, #0x3d0]
|
|
51
|
-
ldr q18, [x1, #0x3e0]
|
|
52
|
-
ldr q19, [x1, #0x3f0]
|
|
53
|
-
ldr q20, [x2, #0x3c0]
|
|
54
|
-
ldr q21, [x2, #0x3d0]
|
|
55
|
-
ldr q22, [x2, #0x3e0]
|
|
56
|
-
ldr q23, [x2, #0x3f0]
|
|
57
|
-
smlal v24.2d, v16.2s, v20.2s
|
|
58
|
-
smlal2 v25.2d, v16.4s, v20.4s
|
|
59
|
-
smlal v26.2d, v17.2s, v21.2s
|
|
60
|
-
smlal2 v27.2d, v17.4s, v21.4s
|
|
61
|
-
smlal v28.2d, v18.2s, v22.2s
|
|
62
|
-
smlal2 v29.2d, v18.4s, v22.4s
|
|
63
|
-
smlal v30.2d, v19.2s, v23.2s
|
|
64
|
-
smlal2 v31.2d, v19.4s, v23.4s
|
|
65
|
-
ldr q16, [x1, #0x7c0]
|
|
66
|
-
ldr q17, [x1, #0x7d0]
|
|
67
|
-
ldr q18, [x1, #0x7e0]
|
|
68
|
-
ldr q19, [x1, #0x7f0]
|
|
69
|
-
ldr q20, [x2, #0x7c0]
|
|
70
|
-
ldr q21, [x2, #0x7d0]
|
|
71
|
-
ldr q22, [x2, #0x7e0]
|
|
72
|
-
ldr q23, [x2, #0x7f0]
|
|
73
|
-
smlal v24.2d, v16.2s, v20.2s
|
|
74
|
-
smlal2 v25.2d, v16.4s, v20.4s
|
|
75
|
-
smlal v26.2d, v17.2s, v21.2s
|
|
76
|
-
smlal2 v27.2d, v17.4s, v21.4s
|
|
77
|
-
smlal v28.2d, v18.2s, v22.2s
|
|
78
|
-
smlal2 v29.2d, v18.4s, v22.4s
|
|
79
|
-
smlal v30.2d, v19.2s, v23.2s
|
|
80
|
-
smlal2 v31.2d, v19.4s, v23.4s
|
|
81
|
-
ldr q16, [x1, #0xbc0]
|
|
82
|
-
ldr q17, [x1, #0xbd0]
|
|
83
|
-
ldr q18, [x1, #0xbe0]
|
|
84
|
-
ldr q19, [x1, #0xbf0]
|
|
85
|
-
ldr q20, [x2, #0xbc0]
|
|
86
|
-
ldr q21, [x2, #0xbd0]
|
|
87
|
-
ldr q22, [x2, #0xbe0]
|
|
88
|
-
ldr q23, [x2, #0xbf0]
|
|
89
|
-
smlal v24.2d, v16.2s, v20.2s
|
|
90
|
-
smlal2 v25.2d, v16.4s, v20.4s
|
|
91
|
-
smlal v26.2d, v17.2s, v21.2s
|
|
92
|
-
smlal2 v27.2d, v17.4s, v21.4s
|
|
93
|
-
smlal v28.2d, v18.2s, v22.2s
|
|
94
|
-
smlal2 v29.2d, v18.4s, v22.4s
|
|
95
|
-
smlal v30.2d, v19.2s, v23.2s
|
|
96
|
-
smlal2 v31.2d, v19.4s, v23.4s
|
|
97
|
-
ldr q16, [x1, #0xfc0]
|
|
98
|
-
ldr q17, [x1, #0xfd0]
|
|
99
|
-
ldr q18, [x1, #0xfe0]
|
|
100
|
-
ldr q19, [x1, #0xff0]
|
|
101
|
-
ldr q20, [x2, #0xfc0]
|
|
102
|
-
ldr q21, [x2, #0xfd0]
|
|
103
|
-
ldr q22, [x2, #0xfe0]
|
|
104
|
-
ldr q23, [x2, #0xff0]
|
|
105
|
-
smlal v24.2d, v16.2s, v20.2s
|
|
106
|
-
smlal2 v25.2d, v16.4s, v20.4s
|
|
107
|
-
smlal v26.2d, v17.2s, v21.2s
|
|
108
|
-
smlal2 v27.2d, v17.4s, v21.4s
|
|
109
|
-
smlal v28.2d, v18.2s, v22.2s
|
|
110
|
-
smlal2 v29.2d, v18.4s, v22.4s
|
|
111
|
-
smlal v30.2d, v19.2s, v23.2s
|
|
112
|
-
smlal2 v31.2d, v19.4s, v23.4s
|
|
113
|
-
ldr q16, [x1, #0x13c0]
|
|
114
|
-
ldr q17, [x1, #0x13d0]
|
|
115
|
-
ldr q18, [x1, #0x13e0]
|
|
116
|
-
ldr q19, [x1, #0x13f0]
|
|
117
|
-
ldr q20, [x2, #0x13c0]
|
|
118
|
-
ldr q21, [x2, #0x13d0]
|
|
119
|
-
ldr q22, [x2, #0x13e0]
|
|
120
|
-
ldr q23, [x2, #0x13f0]
|
|
121
|
-
smlal v24.2d, v16.2s, v20.2s
|
|
122
|
-
smlal2 v25.2d, v16.4s, v20.4s
|
|
123
|
-
smlal v26.2d, v17.2s, v21.2s
|
|
124
|
-
smlal2 v27.2d, v17.4s, v21.4s
|
|
125
|
-
smlal v28.2d, v18.2s, v22.2s
|
|
126
|
-
smlal2 v29.2d, v18.4s, v22.4s
|
|
127
|
-
smlal v30.2d, v19.2s, v23.2s
|
|
128
|
-
smlal2 v31.2d, v19.4s, v23.4s
|
|
129
|
-
ldr q16, [x1, #0x17c0]
|
|
130
|
-
ldr q17, [x1, #0x17d0]
|
|
131
|
-
ldr q18, [x1, #0x17e0]
|
|
132
|
-
ldr q19, [x1, #0x17f0]
|
|
133
|
-
ldr q20, [x2, #0x17c0]
|
|
134
|
-
ldr q21, [x2, #0x17d0]
|
|
135
|
-
ldr q22, [x2, #0x17e0]
|
|
136
|
-
ldr q23, [x2, #0x17f0]
|
|
137
|
-
smlal v24.2d, v16.2s, v20.2s
|
|
138
|
-
smlal2 v25.2d, v16.4s, v20.4s
|
|
139
|
-
smlal v26.2d, v17.2s, v21.2s
|
|
140
|
-
smlal2 v27.2d, v17.4s, v21.4s
|
|
141
|
-
smlal v28.2d, v18.2s, v22.2s
|
|
142
|
-
smlal2 v29.2d, v18.4s, v22.4s
|
|
143
|
-
smlal v30.2d, v19.2s, v23.2s
|
|
144
|
-
smlal2 v31.2d, v19.4s, v23.4s
|
|
145
|
-
uzp1 v16.4s, v24.4s, v25.4s
|
|
146
|
-
mul v16.4s, v16.4s, v1.4s
|
|
147
|
-
smlsl v24.2d, v16.2s, v0.2s
|
|
148
|
-
smlsl2 v25.2d, v16.4s, v0.4s
|
|
149
|
-
uzp2 v16.4s, v24.4s, v25.4s
|
|
150
|
-
uzp1 v17.4s, v26.4s, v27.4s
|
|
151
|
-
mul v17.4s, v17.4s, v1.4s
|
|
152
|
-
smlsl v26.2d, v17.2s, v0.2s
|
|
153
|
-
smlsl2 v27.2d, v17.4s, v0.4s
|
|
154
|
-
uzp2 v17.4s, v26.4s, v27.4s
|
|
155
|
-
uzp1 v18.4s, v28.4s, v29.4s
|
|
156
|
-
mul v18.4s, v18.4s, v1.4s
|
|
157
|
-
smlsl v28.2d, v18.2s, v0.2s
|
|
158
|
-
smlsl2 v29.2d, v18.4s, v0.4s
|
|
159
|
-
uzp2 v18.4s, v28.4s, v29.4s
|
|
160
|
-
uzp1 v19.4s, v30.4s, v31.4s
|
|
161
|
-
mul v19.4s, v19.4s, v1.4s
|
|
162
|
-
smlsl v30.2d, v19.2s, v0.2s
|
|
163
|
-
smlsl2 v31.2d, v19.4s, v0.4s
|
|
164
|
-
uzp2 v19.4s, v30.4s, v31.4s
|
|
165
|
-
str q17, [x0, #0x10]
|
|
166
|
-
str q18, [x0, #0x20]
|
|
167
|
-
str q19, [x0, #0x30]
|
|
168
|
-
str q16, [x0], #0x40
|
|
169
|
-
subs x3, x3, #0x4
|
|
170
|
-
cbnz x3, Lpolyvecl_pointwise_acc_montgomery_l7_loop_start
|
|
171
|
-
ret
|
|
172
|
-
.cfi_endproc
|
|
173
|
-
|
|
174
|
-
MLD_ASM_FN_SIZE(polyvecl_pointwise_acc_montgomery_l7_asm)
|
|
175
|
-
|
|
176
|
-
#endif /* MLD_ARITH_BACKEND_AARCH64 && !MLD_CONFIG_MULTILEVEL_NO_SHARED && \
|
|
177
|
-
(MLD_CONFIG_MULTILEVEL_WITH_SHARED || MLDSA_L == 7) */
|