mldsa-native icon indicating copy to clipboard operation
mldsa-native copied to clipboard

x86_64 + HOL-Light: Replace rej_uniform intrinsics with assembly and HOL-Light CORRECT and MEMSAFE proofs

Open jakemas opened this issue 8 months ago • 12 comments

Summary

Resolves #926 and #418 (?)

Hol-light proof needs instructions from https://github.com/awslabs/s2n-bignum/pull/387

  • Replace AVX2 intrinsics implementation of rej_uniform with hand-written x86_64 assembly
  • Table passed as parameter (consistent with aarch64 approach), avoiding external symbol references for simpasm compatibility
  • All constants constructed from immediates (no .rodata section), enabling future HOL-Light formal verification
  • Register name #defines with #undef cleanup for SCU builds (following mlkem-native pattern)
  • Adds poly_uniform to component benchmark
  • HOL-Light proof infrastructure included (bytecode, table definition, proof skeleton, Makefile)

ML-DSA's 23-bit coefficients require 32-bit lanes, which naturally fills a 256-bit YMM register for 8 elements per iteration. This led to the choice of AVX2 over SSE — with SSE's 128-bit registers and 32-bit lanes, we'd only get 4 coefficients per iteration vs 8 with AVX2.

Performance

AMD EPYC 3rd gen (c6a) — opt

Benchmark Before After Change
ML-DSA-44 keypair 68,874 66,828 -3%
ML-DSA-44 sign 187,594 184,181 -2%
ML-DSA-44 verify 68,993 65,665 -5%
ML-DSA-65 keypair 119,089 112,640 -5%
ML-DSA-65 sign 299,488 294,836 -2%
ML-DSA-65 verify 115,385 108,494 -6%
ML-DSA-87 keypair 203,754 185,518 -9%
ML-DSA-87 sign 396,462 378,579 -5%
ML-DSA-87 verify 196,231 177,157 -10%

Proof

Includes HOL-Light and CBMC proofs, written by claude opus 4.7.

CORRECT HOL-Light / x86_64 HOL Light proof for mldsa_rej_uniform.S (pull_request) Successful in 12m

CORRECT + MEMSAFE HOL-Light / x86_64 HOL Light proof for rej_uniform_avx2_asm.S (pull_request)Successful in 21m

It took Claude Opus 4.7 1m around 3weeks to get the MEMSAFE proof. Since it records all token usage per prompt, I got it to go back to the prompt in which I asked it to create the MEMSAFE part of the proof to gather statistics:

 ~10.35 billion tokens
 20,257 turns(i.e distinct API calls)
 ~30 days of development 
 ~100-125 hours of active user engagement (based on user clustering message timestamps)
185 attempted build iterations,

jakemas avatar Apr 03 '26 04:04 jakemas

CBMC Results (ML-DSA-44)

Full Results (206 proofs)
Proof Status Current Previous Change
**TOTAL** ✅ 2007s 1841s +9.0%
mld_invntt_layer ✅ 329s 302s +9%
rej_uniform_native ✅ 167s 152s +10%
polyvecl_pointwise_acc_montgomery_c ✅ 145s 130s +12%
poly_pointwise_montgomery_c ✅ 113s 105s +8%
mld_ct_memcmp ✅ 81s 72s +12%
mld_attempt_signature_generation ✅ 65s 64s +2%
mld_ntt_layer ✅ 48s 43s +12%
fqmul ✅ 45s 42s +7%
rej_uniform_native_x86_64 ✅ 40s - new
polyvec_matrix_expand ✅ 27s 27s +0%
sign_verify_internal ✅ 27s 27s +0%
keccakf1600x4_permute_native ✅ 24s 25s -4%
mld_ntt_butterfly_block ✅ 24s 24s +0%
poly_chknorm_c ✅ 24s 22s +9%
rej_uniform ✅ 24s 21s +14%
sign_signature_internal ✅ 23s 21s +10%
polyeta_unpack ✅ 18s 18s +0%
polyt0_unpack ✅ 18s 17s +6%
compute_pack_t0_t1 ✅ 16s 16s +0%
mld_check_pct ✅ 16s 14s +14%
polyz_unpack_c ✅ 14s 10s +40%
rej_uniform_c ✅ 14s 12s +17%
poly_add ✅ 13s 9s +44%
poly_uniform_eta_4x ✅ 13s 11s +18%
polyveck_chknorm ✅ 12s 12s +0%
poly_uniform_4x ✅ 11s 10s +10%
polyvec_matrix_pointwise_montgomery_yvec ✅ 11s 9s +22%
polyveck_decompose ✅ 10s 8s +25%
sign ✅ 10s 8s +25%
keccak_absorb_once_x4 ✅ 9s 10s -10%
mld_compute_pack_z ✅ 8s 9s -11%
mld_keccakf1600_permute_c ✅ 8s 7s +14%
poly_invntt_tomont_c ✅ 8s 10s -20%
keccak_absorb ✅ 7s 7s +0%
mld_sample_s1_s2 ✅ 7s 3s +133%
pointwise_acc_native_x86_64 ✅ 7s 7s +0%
polyvec_matrix_expand_serial ✅ 7s 9s -22%
rej_eta_native ✅ 7s 4s +75%
poly_caddq_native ✅ 6s 5s +20%
poly_power2round ✅ 6s 5s +20%
poly_uniform ✅ 6s 3s +100%
poly_use_hint_c ✅ 6s 8s -25%
polyvec_matrix_pointwise_montgomery_row ✅ 6s 2s +200%
sign_keypair_internal ✅ 6s 2s +200%
sign_pk_from_sk ✅ 6s 7s -14%
sign_signature ✅ 6s 3s +100%
sk_t0hat_get_poly ✅ 6s 5s +20%
fqscale ✅ 5s 3s +67%
keccak_squeezeblocks_x4 ✅ 5s 4s +25%
keccakf1600x4_permute ✅ 5s 4s +25%
mld_prepare_domain_separation_prefix ✅ 5s 3s +67%
nttunpack_native_x86_64 ✅ 5s 5s +0%
poly_caddq ✅ 5s 3s +67%
poly_caddq_c ✅ 5s 5s +0%
poly_caddq_native_x86_64 ✅ 5s 4s +25%
poly_challenge ✅ 5s 4s +25%
poly_chknorm ✅ 5s 4s +25%
poly_decompose_c ✅ 5s 3s +67%
poly_permute_bitrev_to_custom_optional_native ✅ 5s 2s +150%
poly_reduce ✅ 5s 5s +0%
poly_sub ✅ 5s 3s +67%
polyveck_caddq ✅ 5s 4s +25%
polyvecl_uniform_gamma1 ✅ 5s 3s +67%
polyz_unpack ✅ 5s 3s +67%
rej_uniform_eta_native_aarch64 ✅ 5s 3s +67%
rej_uniform_native_aarch64 ✅ 5s 3s +67%
sign_open ✅ 5s 6s -17%
sign_signature_pre_hash_internal ✅ 5s 3s +67%
sign_verify_pre_hash_shake256 ✅ 5s 4s +25%
unpack_sk_t0hat ✅ 5s 3s +67%
caddq ✅ 4s 2s +100%
intt_native_x86_64 ✅ 4s 4s +0%
keccak_f1600_x1_native_aarch64_v84a ✅ 4s 4s +0%
keccak_init ✅ 4s 3s +33%
keccakf1600_extract_bytes (big endian) ✅ 4s 4s +0%
mld_ct_abs_i32 ✅ 4s 1s +300%
mld_ct_sel_int32 ✅ 4s 3s +33%
montgomery_reduce ✅ 4s 3s +33%
ntt_native_x86_64 ✅ 4s 4s +0%
pack_sk_rho_key_tr_s2 ✅ 4s 4s +0%
pointwise_acc_native_aarch64 ✅ 4s 5s -20%
pointwise_native_x86_64 ✅ 4s 3s +33%
poly_decompose ✅ 4s 3s +33%
poly_invntt_tomont ✅ 4s 4s +0%
poly_ntt ✅ 4s 2s +100%
poly_ntt_c ✅ 4s 5s -20%
poly_shiftl ✅ 4s 2s +100%
poly_uniform_eta ✅ 4s 7s -43%
poly_use_hint ✅ 4s 3s +33%
polyt0_pack ✅ 4s 4s +0%
polyt1_unpack ✅ 4s 3s +33%
polyveck_invntt_tomont ✅ 4s 4s +0%
polyveck_ntt ✅ 4s 4s +0%
polyvecl_chknorm ✅ 4s 3s +33%
polyvecl_ntt ✅ 4s 5s -20%
polyz_pack ✅ 4s 2s +100%
polyz_unpack_19_native_aarch64 ✅ 4s 3s +33%
polyz_unpack_native ✅ 4s 5s -20%
polyz_unpack_native_x86_64 ✅ 4s 2s +100%
rej_eta ✅ 4s 2s +100%
shake128_finalize ✅ 4s 3s +33%
shake128_release ✅ 4s 3s +33%
shake256x4_absorb_once ✅ 4s 1s +300%
sign_signature_pre_hash_shake256 ✅ 4s 4s +0%
sk_s2hat_get_poly ✅ 4s 4s +0%
unpack_sk_s1hat ✅ 4s 3s +33%
keccak_f1600_x4_native_aarch64_v8a_v84a_scalar_hybrid ✅ 3s 4s -25%
keccak_finalize ✅ 3s 3s +0%
keccakf1600_xor_bytes ✅ 3s 4s -25%
keccakf1600_xor_bytes (big endian) ✅ 3s 2s +50%
keccakf1600x4_extract_bytes ✅ 3s 2s +50%
keccakf1600x4_xor_bytes_native ✅ 3s 2s +50%
make_hint ✅ 3s 5s -40%
mld_ct_cmask_nonzero_u32 ✅ 3s 5s -40%
mld_ct_cmask_nonzero_u8 ✅ 3s 2s +50%
mld_polymat_expand_entry ✅ 3s 2s +50%
mld_sample_s1_s2_serial ✅ 3s 4s -25%
mld_value_barrier_u32 ✅ 3s 3s +0%
ntt_native_aarch64 ✅ 3s 5s -40%
pack_sig_h ✅ 3s 6s -50%
pack_sig_z ✅ 3s 2s +50%
pointwise_native_aarch64 ✅ 3s 5s -40%
poly_caddq_native_aarch64 ✅ 3s 5s -40%
poly_chknorm_native ✅ 3s 3s +0%
poly_chknorm_native_x86_64 ✅ 3s 4s -25%
poly_decompose_88_native_aarch64 ✅ 3s 3s +0%
poly_decompose_native ✅ 3s 3s +0%
poly_invntt_tomont_native ✅ 3s 4s -25%
poly_ntt_native ✅ 3s 3s +0%
poly_permute_bitrev_to_custom_optional ✅ 3s 2s +50%
poly_pointwise_montgomery_native ✅ 3s 4s -25%
poly_uniform_gamma1_4x ✅ 3s 6s -50%
poly_use_hint_native ✅ 3s 2s +50%
poly_use_hint_native_aarch64 ✅ 3s 5s -40%
polyeta_pack ✅ 3s 3s +0%
polyveck_pack_eta ✅ 3s 3s +0%
polyveck_unpack_eta ✅ 3s 4s -25%
polyvecl_pack_eta ✅ 3s 4s -25%
polyvecl_pointwise_acc_montgomery ✅ 3s 3s +0%
polyvecl_unpack_z ✅ 3s 3s +0%
polyw1_pack ✅ 3s 3s +0%
polyw1_pack_32 ✅ 3s 3s +0%
polyw1_pack_88 ✅ 3s 8s -62%
polyz_unpack_17_native_aarch64 ✅ 3s 3s +0%
power2round ✅ 3s 1s +200%
rej_eta_c ✅ 3s 5s -40%
shake128_init ✅ 3s 1s +200%
shake128x4_absorb_once ✅ 3s 3s +0%
shake256_finalize ✅ 3s 4s -25%
shake256_squeeze ✅ 3s 1s +200%
sig_unpack_hints ✅ 3s 2s +50%
sign_keypair ✅ 3s 4s -25%
sign_signature_extmu ✅ 3s 4s -25%
sign_verify ✅ 3s 4s -25%
sign_verify_extmu ✅ 3s 3s +0%
sk_s1hat_get_poly ✅ 3s 2s +50%
unpack_sk_s2hat ✅ 3s 3s +0%
use_hint ✅ 3s 2s +50%
decompose ✅ 2s 2s +0%
intt_native_aarch64 ✅ 2s 6s -67%
keccak_f1600_x1_native_aarch64 ✅ 2s 3s -33%
keccak_f1600_x4_native_aarch64_v84a ✅ 2s 1s +100%
keccak_squeeze ✅ 2s 5s -60%
keccakf1600_permute ✅ 2s 2s +0%
keccakf1600_permute_native ✅ 2s 2s +0%
keccakf1600x4_extract_bytes_native ✅ 2s 3s -33%
keccakf1600x4_xor_bytes ✅ 2s 1s +100%
mld_ct_get_optblocker_i64 ✅ 2s 2s +0%
mld_ct_get_optblocker_u32 ✅ 2s 1s +100%
mld_ct_get_optblocker_u8 ✅ 2s 3s -33%
mld_h ✅ 2s 4s -50%
mld_keccakf1600_extract_bytes ✅ 2s 3s -33%
mld_keccakf1600x4_extract_bytes_c ✅ 2s 2s +0%
mld_keccakf1600x4_xor_bytes_c ✅ 2s 1s +100%
mld_value_barrier_i64 ✅ 2s 3s -33%
mld_value_barrier_u8 ✅ 2s 1s +100%
pack_sig_c ✅ 2s 2s +0%
pack_sk_s1 ✅ 2s 3s -33%
poly_chknorm_native_aarch64 ✅ 2s 3s -33%
poly_decompose_32_native_aarch64 ✅ 2s 5s -60%
poly_pointwise_montgomery ✅ 2s 2s +0%
poly_uniform_gamma1 ✅ 2s 2s +0%
polyt1_pack ✅ 2s 4s -50%
polyveck_pack_w1 ✅ 2s 2s +0%
polyveck_reduce ✅ 2s 2s +0%
polyvecl_pointwise_acc_montgomery_native ✅ 2s 6s -67%
polyvecl_uniform_gamma1_serial ✅ 2s 2s +0%
polyvecl_unpack_eta ✅ 2s 2s +0%
reduce32 ✅ 2s 3s -33%
shake128_absorb ✅ 2s 1s +100%
shake128_squeeze ✅ 2s 1s +100%
shake128x4_squeezeblocks ✅ 2s 2s +0%
shake256 ✅ 2s 2s +0%
shake256_absorb ✅ 2s 2s +0%
sign_verify_pre_hash_internal ✅ 2s 4s -50%
sys_check_capability ✅ 2s 2s +0%
unpack_pk_t1 ✅ 2s 3s -33%
unpack_sk ✅ 2s 3s -33%
keccak_f1600_x4_native_aarch64_v8a_scalar_hybrid ✅ 1s 3s -67%
keccak_f1600_x4_native_avx2 ✅ 1s 3s -67%
mld_ct_cmask_neg_i32 ✅ 1s 2s -50%
shake256_init ✅ 1s 3s -67%
shake256_release ✅ 1s 1s +0%
shake256x4_squeezeblocks ✅ 1s 2s -50%
yvec_get_poly ✅ 1s 3s -67%
yvec_init ✅ 1s 3s -67%

oqs-bot avatar Apr 03 '26 04:04 oqs-bot

CBMC Results (ML-DSA-87)

Full Results (206 proofs)
Proof Status Current Previous Change
**TOTAL** ✅ 2493s 2584s -3.5%
polyvecl_pointwise_acc_montgomery_c ✅ 327s 367s -11%
mld_invntt_layer ✅ 302s 321s -6%
polyvec_matrix_expand ✅ 223s 244s -9%
rej_uniform_native ✅ 154s 160s -4%
mld_attempt_signature_generation ✅ 102s 107s -5%
poly_pointwise_montgomery_c ✅ 101s 112s -10%
mld_ct_memcmp ✅ 69s 73s -5%
sign_signature_internal ✅ 67s 66s +2%
sign_verify_internal ✅ 60s 64s -6%
polyvec_matrix_expand_serial ✅ 49s 50s -2%
mld_ntt_layer ✅ 45s 45s +0%
fqmul ✅ 43s 45s -4%
rej_uniform_native_x86_64 ✅ 41s - new
compute_pack_t0_t1 ✅ 32s 32s +0%
polyvec_matrix_pointwise_montgomery_yvec ✅ 29s 32s -9%
keccakf1600x4_permute_native ✅ 23s 22s +5%
mld_ntt_butterfly_block ✅ 22s 22s +0%
poly_chknorm_c ✅ 22s 19s +16%
rej_uniform ✅ 22s 23s -4%
polyt0_unpack ✅ 19s 17s +12%
polyeta_unpack ✅ 17s 17s +0%
mld_check_pct ✅ 16s 16s +0%
rej_uniform_c ✅ 14s 15s -7%
poly_uniform_eta_4x ✅ 12s 13s -8%
keccak_absorb_once_x4 ✅ 10s 12s -17%
mld_compute_pack_z ✅ 10s 8s +25%
poly_add ✅ 10s 13s -23%
poly_uniform_4x ✅ 10s 13s -23%
polyveck_decompose ✅ 10s 9s +11%
polyveck_invntt_tomont ✅ 10s 10s +0%
polyveck_ntt ✅ 10s 7s +43%
poly_invntt_tomont_c ✅ 9s 9s +0%
mld_keccakf1600_permute_c ✅ 8s 7s +14%
pointwise_acc_native_x86_64 ✅ 8s 8s +0%
polyvecl_ntt ✅ 8s 9s -11%
polyz_unpack_c ✅ 8s 5s +60%
sign ✅ 8s 6s +33%
keccak_absorb ✅ 7s 6s +17%
mld_sample_s1_s2_serial ✅ 7s 7s +0%
pointwise_acc_native_aarch64 ✅ 7s 8s -12%
polyveck_caddq ✅ 7s 6s +17%
sign_keypair_internal ✅ 7s 8s -12%
poly_chknorm_native_x86_64 ✅ 6s 4s +50%
poly_decompose_c ✅ 6s 7s -14%
polyveck_chknorm ✅ 6s 4s +50%
polyveck_pack_eta ✅ 6s 4s +50%
polyw1_pack ✅ 6s 3s +100%
sign_open ✅ 6s 3s +100%
sign_signature_extmu ✅ 6s 5s +20%
sign_verify ✅ 6s 5s +20%
sk_s1hat_get_poly ✅ 6s 2s +200%
use_hint ✅ 6s 3s +100%
intt_native_x86_64 ✅ 5s 5s +0%
keccak_init ✅ 5s 3s +67%
keccakf1600_permute ✅ 5s 3s +67%
mld_sample_s1_s2 ✅ 5s 6s -17%
ntt_native_x86_64 ✅ 5s 2s +150%
pack_sig_c ✅ 5s 2s +150%
pack_sk_rho_key_tr_s2 ✅ 5s 5s +0%
poly_caddq_c ✅ 5s 6s -17%
poly_caddq_native ✅ 5s 2s +150%
poly_decompose_88_native_aarch64 ✅ 5s 2s +150%
poly_power2round ✅ 5s 6s -17%
poly_uniform_gamma1_4x ✅ 5s 3s +67%
polyvecl_chknorm ✅ 5s 5s +0%
polyvecl_uniform_gamma1_serial ✅ 5s 2s +150%
rej_eta_native ✅ 5s 5s +0%
sign_keypair ✅ 5s 4s +25%
sign_pk_from_sk ✅ 5s 7s -29%
sign_signature_pre_hash_internal ✅ 5s 4s +25%
sign_verify_pre_hash_internal ✅ 5s 6s -17%
unpack_sk ✅ 5s 4s +25%
unpack_sk_t0hat ✅ 5s 8s -38%
keccak_f1600_x4_native_aarch64_v84a ✅ 4s 1s +300%
keccak_f1600_x4_native_avx2 ✅ 4s 4s +0%
keccak_squeeze ✅ 4s 2s +100%
keccak_squeezeblocks_x4 ✅ 4s 4s +0%
keccakf1600x4_permute ✅ 4s 3s +33%
mld_ct_cmask_neg_i32 ✅ 4s 4s +0%
mld_h ✅ 4s 4s +0%
mld_prepare_domain_separation_prefix ✅ 4s 5s -20%
pack_sig_z ✅ 4s 1s +300%
pack_sk_s1 ✅ 4s 3s +33%
poly_caddq_native_x86_64 ✅ 4s 3s +33%
poly_challenge ✅ 4s 6s -33%
poly_decompose_32_native_aarch64 ✅ 4s 2s +100%
poly_decompose_native ✅ 4s 3s +33%
poly_shiftl ✅ 4s 3s +33%
poly_sub ✅ 4s 3s +33%
poly_uniform ✅ 4s 3s +33%
poly_uniform_eta ✅ 4s 5s -20%
poly_use_hint ✅ 4s 2s +100%
polyt0_pack ✅ 4s 5s -20%
polyvecl_uniform_gamma1 ✅ 4s 4s +0%
polyz_unpack_17_native_aarch64 ✅ 4s 4s +0%
rej_eta ✅ 4s 5s -20%
rej_eta_c ✅ 4s 3s +33%
rej_uniform_native_aarch64 ✅ 4s 3s +33%
shake256_squeeze ✅ 4s 2s +100%
caddq ✅ 3s 3s +0%
fqscale ✅ 3s 5s -40%
intt_native_aarch64 ✅ 3s 3s +0%
keccak_f1600_x4_native_aarch64_v8a_scalar_hybrid ✅ 3s 4s -25%
keccakf1600_extract_bytes (big endian) ✅ 3s 1s +200%
keccakf1600x4_extract_bytes_native ✅ 3s 3s +0%
make_hint ✅ 3s 4s -25%
mld_ct_cmask_nonzero_u32 ✅ 3s 3s +0%
mld_ct_sel_int32 ✅ 3s 2s +50%
mld_keccakf1600x4_xor_bytes_c ✅ 3s 1s +200%
montgomery_reduce ✅ 3s 4s -25%
nttunpack_native_x86_64 ✅ 3s 3s +0%
pointwise_native_x86_64 ✅ 3s 3s +0%
poly_chknorm ✅ 3s 3s +0%
poly_invntt_tomont ✅ 3s 2s +50%
poly_invntt_tomont_native ✅ 3s 5s -40%
poly_ntt ✅ 3s 6s -50%
poly_ntt_c ✅ 3s 3s +0%
poly_ntt_native ✅ 3s 4s -25%
poly_permute_bitrev_to_custom_optional_native ✅ 3s 4s -25%
poly_pointwise_montgomery ✅ 3s 5s -40%
poly_pointwise_montgomery_native ✅ 3s 4s -25%
poly_reduce ✅ 3s 1s +200%
poly_uniform_gamma1 ✅ 3s 3s +0%
poly_use_hint_native ✅ 3s 4s -25%
poly_use_hint_native_aarch64 ✅ 3s 3s +0%
polyt1_unpack ✅ 3s 2s +50%
polyvec_matrix_pointwise_montgomery_row ✅ 3s 4s -25%
polyveck_pack_w1 ✅ 3s 5s -40%
polyveck_reduce ✅ 3s 6s -50%
polyvecl_pack_eta ✅ 3s 4s -25%
polyvecl_pointwise_acc_montgomery ✅ 3s 4s -25%
polyw1_pack_88 ✅ 3s 3s +0%
polyz_pack ✅ 3s 1s +200%
polyz_unpack ✅ 3s 3s +0%
polyz_unpack_native ✅ 3s 4s -25%
polyz_unpack_native_x86_64 ✅ 3s 5s -40%
power2round ✅ 3s 4s -25%
rej_uniform_eta_native_aarch64 ✅ 3s 5s -40%
shake128_absorb ✅ 3s 1s +200%
shake128_finalize ✅ 3s 2s +50%
shake128_squeeze ✅ 3s 4s -25%
shake256_absorb ✅ 3s 3s +0%
shake256_finalize ✅ 3s 2s +50%
shake256_release ✅ 3s 6s -50%
shake256x4_absorb_once ✅ 3s 2s +50%
sign_signature ✅ 3s 3s +0%
sign_signature_pre_hash_shake256 ✅ 3s 4s -25%
sign_verify_extmu ✅ 3s 3s +0%
sk_s2hat_get_poly ✅ 3s 3s +0%
unpack_pk_t1 ✅ 3s 3s +0%
unpack_sk_s1hat ✅ 3s 3s +0%
unpack_sk_s2hat ✅ 3s 5s -40%
yvec_get_poly ✅ 3s 1s +200%
decompose ✅ 2s 2s +0%
keccak_f1600_x1_native_aarch64_v84a ✅ 2s 4s -50%
keccak_f1600_x4_native_aarch64_v8a_v84a_scalar_hybrid ✅ 2s 1s +100%
keccak_finalize ✅ 2s 2s +0%
keccakf1600_xor_bytes ✅ 2s 2s +0%
keccakf1600_xor_bytes (big endian) ✅ 2s 2s +0%
keccakf1600x4_extract_bytes ✅ 2s 2s +0%
keccakf1600x4_xor_bytes ✅ 2s 4s -50%
keccakf1600x4_xor_bytes_native ✅ 2s 3s -33%
mld_ct_abs_i32 ✅ 2s 2s +0%
mld_ct_cmask_nonzero_u8 ✅ 2s 4s -50%
mld_ct_get_optblocker_i64 ✅ 2s 4s -50%
mld_keccakf1600_extract_bytes ✅ 2s 3s -33%
mld_keccakf1600x4_extract_bytes_c ✅ 2s 2s +0%
mld_polymat_expand_entry ✅ 2s 4s -50%
mld_value_barrier_i64 ✅ 2s 2s +0%
mld_value_barrier_u32 ✅ 2s 4s -50%
ntt_native_aarch64 ✅ 2s 2s +0%
pack_sig_h ✅ 2s 3s -33%
pointwise_native_aarch64 ✅ 2s 3s -33%
poly_caddq ✅ 2s 3s -33%
poly_chknorm_native ✅ 2s 4s -50%
poly_chknorm_native_aarch64 ✅ 2s 7s -71%
poly_decompose ✅ 2s 4s -50%
poly_permute_bitrev_to_custom_optional ✅ 2s 2s +0%
poly_use_hint_c ✅ 2s 2s +0%
polyeta_pack ✅ 2s 2s +0%
polyt1_pack ✅ 2s 2s +0%
polyveck_unpack_eta ✅ 2s 3s -33%
polyvecl_pointwise_acc_montgomery_native ✅ 2s 2s +0%
polyvecl_unpack_eta ✅ 2s 4s -50%
polyvecl_unpack_z ✅ 2s 4s -50%
polyw1_pack_32 ✅ 2s 3s -33%
reduce32 ✅ 2s 3s -33%
shake128_init ✅ 2s 2s +0%
shake128x4_absorb_once ✅ 2s 4s -50%
shake128x4_squeezeblocks ✅ 2s 1s +100%
shake256 ✅ 2s 2s +0%
shake256_init ✅ 2s 4s -50%
shake256x4_squeezeblocks ✅ 2s 2s +0%
sign_verify_pre_hash_shake256 ✅ 2s 3s -33%
sk_t0hat_get_poly ✅ 2s 2s +0%
sys_check_capability ✅ 2s 3s -33%
yvec_init ✅ 2s 3s -33%
keccak_f1600_x1_native_aarch64 ✅ 1s 2s -50%
keccakf1600_permute_native ✅ 1s 2s -50%
mld_ct_get_optblocker_u32 ✅ 1s 3s -67%
mld_ct_get_optblocker_u8 ✅ 1s 1s +0%
mld_value_barrier_u8 ✅ 1s 2s -50%
poly_caddq_native_aarch64 ✅ 1s 4s -75%
polyz_unpack_19_native_aarch64 ✅ 1s 4s -75%
shake128_release ✅ 1s 3s -67%
sig_unpack_hints ✅ 1s 6s -83%

oqs-bot avatar Apr 03 '26 04:04 oqs-bot

CBMC Results (ML-DSA-65)

Full Results (206 proofs)
Proof Status Current Previous Change
**TOTAL** ✅ 2210s 2203s +0.3%
mld_invntt_layer ✅ 311s 319s -3%
polyvecl_pointwise_acc_montgomery_c ✅ 218s 238s -8%
rej_uniform_native ✅ 148s 159s -7%
polyvec_matrix_expand ✅ 134s 140s -4%
poly_pointwise_montgomery_c ✅ 107s 112s -4%
mld_ct_memcmp ✅ 69s 75s -8%
mld_attempt_signature_generation ✅ 67s 68s -1%
sign_verify_internal ✅ 66s 67s -1%
sign_signature_internal ✅ 49s 48s +2%
mld_ntt_layer ✅ 45s 46s -2%
fqmul ✅ 44s 47s -6%
rej_uniform_native_x86_64 ✅ 39s - new
polyvec_matrix_expand_serial ✅ 25s 27s -7%
keccakf1600x4_permute_native ✅ 23s 23s +0%
rej_uniform ✅ 23s 22s +5%
mld_ntt_butterfly_block ✅ 22s 23s -4%
poly_chknorm_c ✅ 21s 22s -5%
polyt0_unpack ✅ 18s 17s +6%
compute_pack_t0_t1 ✅ 17s 17s +0%
polyvecl_chknorm ✅ 17s 15s +13%
polyveck_decompose ✅ 15s 15s +0%
mld_check_pct ✅ 14s 18s -22%
rej_uniform_c ✅ 14s 15s -7%
poly_uniform_4x ✅ 13s 10s +30%
poly_add ✅ 12s 11s +9%
keccak_absorb_once_x4 ✅ 11s 9s +22%
poly_uniform_eta_4x ✅ 11s 12s -8%
polyvec_matrix_pointwise_montgomery_yvec ✅ 11s 8s +38%
polyveck_ntt ✅ 11s 7s +57%
mld_compute_pack_z ✅ 10s 8s +25%
polyveck_chknorm ✅ 10s 12s -17%
polyveck_invntt_tomont ✅ 10s 8s +25%
pointwise_acc_native_x86_64 ✅ 9s 7s +29%
poly_invntt_tomont_c ✅ 9s 9s +0%
poly_caddq_c ✅ 8s 5s +60%
polyvecl_ntt ✅ 8s 7s +14%
polyz_unpack_c ✅ 8s 7s +14%
sign_open ✅ 8s 5s +60%
mld_keccakf1600_permute_c ✅ 7s 7s +0%
pointwise_acc_native_aarch64 ✅ 7s 6s +17%
sign ✅ 7s 8s -12%
sign_pk_from_sk ✅ 7s 6s +17%
sign_signature ✅ 7s 5s +40%
unpack_sk_t0hat ✅ 7s 5s +40%
keccak_absorb ✅ 6s 7s -14%
poly_chknorm_native ✅ 6s 6s +0%
poly_invntt_tomont ✅ 6s 1s +500%
polyt0_pack ✅ 6s 4s +50%
polyvecl_uniform_gamma1_serial ✅ 6s 3s +100%
polyz_unpack_native ✅ 6s 5s +20%
sign_keypair_internal ✅ 6s 4s +50%
sign_signature_pre_hash_internal ✅ 6s 5s +20%
sign_verify_extmu ✅ 6s 4s +50%
sign_verify_pre_hash_shake256 ✅ 6s 2s +200%
unpack_sk_s2hat ✅ 6s 1s +500%
mld_sample_s1_s2 ✅ 5s 6s -17%
mld_sample_s1_s2_serial ✅ 5s 8s -38%
mld_value_barrier_u32 ✅ 5s 2s +150%
ntt_native_aarch64 ✅ 5s 3s +67%
poly_caddq ✅ 5s 2s +150%
poly_ntt_c ✅ 5s 3s +67%
poly_pointwise_montgomery_native ✅ 5s 3s +67%
poly_power2round ✅ 5s 5s +0%
polyt1_pack ✅ 5s 3s +67%
polyt1_unpack ✅ 5s 3s +67%
polyveck_caddq ✅ 5s 7s -29%
polyveck_unpack_eta ✅ 5s 3s +67%
polyw1_pack ✅ 5s 4s +25%
sign_verify_pre_hash_internal ✅ 5s 4s +25%
yvec_init ✅ 5s 5s +0%
keccak_init ✅ 4s 2s +100%
keccak_squeezeblocks_x4 ✅ 4s 5s -20%
make_hint ✅ 4s 4s +0%
mld_h ✅ 4s 5s -20%
mld_keccakf1600x4_extract_bytes_c ✅ 4s 2s +100%
mld_polymat_expand_entry ✅ 4s 3s +33%
mld_value_barrier_i64 ✅ 4s 5s -20%
nttunpack_native_x86_64 ✅ 4s 2s +100%
pack_sig_c ✅ 4s 2s +100%
pack_sig_h ✅ 4s 4s +0%
pack_sk_s1 ✅ 4s 2s +100%
poly_caddq_native ✅ 4s 2s +100%
poly_chknorm ✅ 4s 4s +0%
poly_chknorm_native_aarch64 ✅ 4s 3s +33%
poly_decompose ✅ 4s 2s +100%
poly_ntt_native ✅ 4s 1s +300%
poly_permute_bitrev_to_custom_optional ✅ 4s 3s +33%
poly_permute_bitrev_to_custom_optional_native ✅ 4s 4s +0%
poly_reduce ✅ 4s 2s +100%
poly_sub ✅ 4s 3s +33%
poly_uniform_eta ✅ 4s 5s -20%
poly_uniform_gamma1_4x ✅ 4s 4s +0%
polyvecl_pack_eta ✅ 4s 2s +100%
polyvecl_uniform_gamma1 ✅ 4s 6s -33%
polyvecl_unpack_eta ✅ 4s 5s -20%
polyz_unpack ✅ 4s 4s +0%
polyz_unpack_native_x86_64 ✅ 4s 3s +33%
rej_eta_native ✅ 4s 4s +0%
shake128_absorb ✅ 4s 3s +33%
shake128_init ✅ 4s 3s +33%
shake256_squeeze ✅ 4s 3s +33%
sig_unpack_hints ✅ 4s 2s +100%
sign_signature_pre_hash_shake256 ✅ 4s 4s +0%
sk_s1hat_get_poly ✅ 4s 3s +33%
sk_t0hat_get_poly ✅ 4s 3s +33%
caddq ✅ 3s 4s -25%
decompose ✅ 3s 2s +50%
fqscale ✅ 3s 2s +50%
intt_native_aarch64 ✅ 3s 5s -40%
intt_native_x86_64 ✅ 3s 3s +0%
keccak_f1600_x4_native_aarch64_v84a ✅ 3s 2s +50%
keccak_f1600_x4_native_aarch64_v8a_scalar_hybrid ✅ 3s 5s -40%
keccakf1600_permute_native ✅ 3s 1s +200%
keccakf1600_xor_bytes (big endian) ✅ 3s 2s +50%
keccakf1600x4_xor_bytes_native ✅ 3s 1s +200%
mld_ct_cmask_neg_i32 ✅ 3s 1s +200%
mld_ct_cmask_nonzero_u32 ✅ 3s 2s +50%
mld_ct_get_optblocker_u8 ✅ 3s 1s +200%
ntt_native_x86_64 ✅ 3s 4s -25%
pack_sig_z ✅ 3s 4s -25%
pack_sk_rho_key_tr_s2 ✅ 3s 4s -25%
pointwise_native_aarch64 ✅ 3s 3s +0%
pointwise_native_x86_64 ✅ 3s 5s -40%
poly_caddq_native_aarch64 ✅ 3s 3s +0%
poly_challenge ✅ 3s 4s -25%
poly_decompose_32_native_aarch64 ✅ 3s 4s -25%
poly_decompose_native ✅ 3s 1s +200%
poly_invntt_tomont_native ✅ 3s 4s -25%
poly_pointwise_montgomery ✅ 3s 3s +0%
poly_shiftl ✅ 3s 4s -25%
poly_uniform ✅ 3s 4s -25%
poly_use_hint_native_aarch64 ✅ 3s 3s +0%
polyveck_pack_w1 ✅ 3s 2s +50%
polyvecl_pointwise_acc_montgomery_native ✅ 3s 3s +0%
polyz_unpack_19_native_aarch64 ✅ 3s 2s +50%
power2round ✅ 3s 2s +50%
reduce32 ✅ 3s 3s +0%
rej_eta ✅ 3s 6s -50%
rej_uniform_eta_native_aarch64 ✅ 3s 5s -40%
rej_uniform_native_aarch64 ✅ 3s 2s +50%
shake128_release ✅ 3s 3s +0%
shake256 ✅ 3s 2s +50%
shake256_release ✅ 3s 2s +50%
shake256x4_absorb_once ✅ 3s 2s +50%
sign_keypair ✅ 3s 4s -25%
sign_signature_extmu ✅ 3s 5s -40%
unpack_sk ✅ 3s 3s +0%
yvec_get_poly ✅ 3s 2s +50%
keccak_f1600_x1_native_aarch64 ✅ 2s 4s -50%
keccak_f1600_x1_native_aarch64_v84a ✅ 2s 3s -33%
keccak_f1600_x4_native_avx2 ✅ 2s 2s +0%
keccak_finalize ✅ 2s 2s +0%
keccak_squeeze ✅ 2s 2s +0%
keccakf1600_extract_bytes (big endian) ✅ 2s 2s +0%
keccakf1600_xor_bytes ✅ 2s 4s -50%
keccakf1600x4_extract_bytes_native ✅ 2s 1s +100%
keccakf1600x4_permute ✅ 2s 1s +100%
keccakf1600x4_xor_bytes ✅ 2s 3s -33%
mld_ct_cmask_nonzero_u8 ✅ 2s 2s +0%
mld_ct_get_optblocker_i64 ✅ 2s 3s -33%
mld_ct_get_optblocker_u32 ✅ 2s 2s +0%
mld_ct_sel_int32 ✅ 2s 2s +0%
mld_keccakf1600_extract_bytes ✅ 2s 2s +0%
mld_prepare_domain_separation_prefix ✅ 2s 3s -33%
mld_value_barrier_u8 ✅ 2s 3s -33%
montgomery_reduce ✅ 2s 3s -33%
poly_caddq_native_x86_64 ✅ 2s 3s -33%
poly_decompose_88_native_aarch64 ✅ 2s 4s -50%
poly_decompose_c ✅ 2s 3s -33%
poly_ntt ✅ 2s 3s -33%
poly_uniform_gamma1 ✅ 2s 4s -50%
poly_use_hint_c ✅ 2s 4s -50%
poly_use_hint_native ✅ 2s 3s -33%
polyeta_pack ✅ 2s 3s -33%
polyeta_unpack ✅ 2s 3s -33%
polyvec_matrix_pointwise_montgomery_row ✅ 2s 2s +0%
polyveck_pack_eta ✅ 2s 2s +0%
polyveck_reduce ✅ 2s 4s -50%
polyvecl_pointwise_acc_montgomery ✅ 2s 4s -50%
polyvecl_unpack_z ✅ 2s 3s -33%
polyw1_pack_88 ✅ 2s 2s +0%
polyz_pack ✅ 2s 2s +0%
polyz_unpack_17_native_aarch64 ✅ 2s 2s +0%
rej_eta_c ✅ 2s 4s -50%
shake128x4_absorb_once ✅ 2s 2s +0%
shake128x4_squeezeblocks ✅ 2s 3s -33%
shake256_init ✅ 2s 2s +0%
shake256x4_squeezeblocks ✅ 2s 2s +0%
sign_verify ✅ 2s 5s -60%
sys_check_capability ✅ 2s 4s -50%
unpack_pk_t1 ✅ 2s 2s +0%
unpack_sk_s1hat ✅ 2s 3s -33%
use_hint ✅ 2s 2s +0%
keccak_f1600_x4_native_aarch64_v8a_v84a_scalar_hybrid ✅ 1s 2s -50%
keccakf1600_permute ✅ 1s 2s -50%
keccakf1600x4_extract_bytes ✅ 1s 2s -50%
mld_ct_abs_i32 ✅ 1s 2s -50%
mld_keccakf1600x4_xor_bytes_c ✅ 1s 4s -75%
poly_chknorm_native_x86_64 ✅ 1s 2s -50%
poly_use_hint ✅ 1s 2s -50%
polyw1_pack_32 ✅ 1s 7s -86%
shake128_finalize ✅ 1s 4s -75%
shake128_squeeze ✅ 1s 2s -50%
shake256_absorb ✅ 1s 2s -50%
shake256_finalize ✅ 1s 3s -67%
sk_s2hat_get_poly ✅ 1s 4s -75%

oqs-bot avatar Apr 03 '26 04:04 oqs-bot

CBMC Results (ML-DSA-65, REDUCE-RAM)

Full Results (206 proofs)
Proof Status Current Previous Change
**TOTAL** ✅ 1539s 1495s +2.9%
mld_invntt_layer ✅ 164s 163s +1%
poly_pointwise_montgomery_c ✅ 123s 133s -8%
rej_uniform_native ✅ 123s 119s +3%
polyvec_matrix_pointwise_montgomery_yvec ✅ 81s 81s +0%
mld_ct_memcmp ✅ 66s 65s +2%
mld_ntt_layer ✅ 44s 41s +7%
fqmul ✅ 39s 39s +0%
polyveck_chknorm ✅ 37s 36s +3%
mld_attempt_signature_generation ✅ 27s 21s +29%
rej_uniform_native_x86_64 ✅ 26s - new
mld_ntt_butterfly_block ✅ 23s 21s +10%
keccakf1600x4_permute_native ✅ 21s 22s -5%
poly_chknorm_c ✅ 17s 17s +0%
polyt0_unpack ✅ 16s 17s -6%
polyveck_decompose ✅ 16s 16s +0%
rej_uniform_c ✅ 15s 16s -6%
sign_verify_internal ✅ 15s 16s -6%
mld_check_pct ✅ 14s 14s +0%
polyvecl_chknorm ✅ 14s 14s +0%
poly_uniform_eta_4x ✅ 12s 13s -8%
keccak_absorb_once_x4 ✅ 11s 8s +38%
poly_add ✅ 10s 11s -9%
rej_uniform ✅ 10s 7s +43%
mld_compute_pack_z ✅ 8s 6s +33%
polyvec_matrix_pointwise_montgomery_row ✅ 8s 11s -27%
mld_keccakf1600_permute_c ✅ 7s 6s +17%
poly_power2round ✅ 7s 7s +0%
polyveck_caddq ✅ 7s 7s +0%
sign ✅ 7s 6s +17%
sign_keypair_internal ✅ 7s 4s +75%
sign_pk_from_sk ✅ 7s 7s +0%
compute_pack_t0_t1 ✅ 6s 7s -14%
keccak_absorb ✅ 6s 5s +20%
pointwise_acc_native_aarch64 ✅ 6s 6s +0%
poly_invntt_tomont_c ✅ 6s 10s -40%
poly_shiftl ✅ 6s 4s +50%
polyeta_unpack ✅ 6s 7s -14%
polyveck_invntt_tomont ✅ 6s 5s +20%
polyveck_unpack_eta ✅ 6s 2s +200%
polyvecl_ntt ✅ 6s 6s +0%
polyz_unpack_19_native_aarch64 ✅ 6s 4s +50%
polyz_unpack_c ✅ 6s 6s +0%
sign_verify_pre_hash_internal ✅ 6s 2s +200%
fqscale ✅ 5s 4s +25%
intt_native_aarch64 ✅ 5s 4s +25%
keccakf1600_permute ✅ 5s 2s +150%
mld_sample_s1_s2 ✅ 5s 4s +25%
pack_sig_c ✅ 5s 3s +67%
pack_sk_rho_key_tr_s2 ✅ 5s 2s +150%
pack_sk_s1 ✅ 5s 4s +25%
pointwise_acc_native_x86_64 ✅ 5s 6s -17%
poly_pointwise_montgomery_native ✅ 5s 2s +150%
polyveck_reduce ✅ 5s 4s +25%
polyvecl_pointwise_acc_montgomery_native ✅ 5s 3s +67%
polyz_pack ✅ 5s 3s +67%
rej_eta_c ✅ 5s 2s +150%
sign_keypair ✅ 5s 6s -17%
keccak_f1600_x4_native_aarch64_v8a_scalar_hybrid ✅ 4s 2s +100%
keccakf1600_xor_bytes ✅ 4s 2s +100%
mld_ct_cmask_nonzero_u32 ✅ 4s 4s +0%
mld_keccakf1600x4_extract_bytes_c ✅ 4s 4s +0%
mld_keccakf1600x4_xor_bytes_c ✅ 4s 1s +300%
mld_prepare_domain_separation_prefix ✅ 4s 3s +33%
mld_sample_s1_s2_serial ✅ 4s 3s +33%
mld_value_barrier_i64 ✅ 4s 3s +33%
pack_sig_h ✅ 4s 4s +0%
pointwise_native_aarch64 ✅ 4s 2s +100%
pointwise_native_x86_64 ✅ 4s 3s +33%
poly_challenge ✅ 4s 5s -20%
poly_chknorm ✅ 4s 5s -20%
poly_chknorm_native ✅ 4s 4s +0%
poly_decompose_32_native_aarch64 ✅ 4s 1s +300%
poly_decompose_native ✅ 4s 3s +33%
poly_invntt_tomont_native ✅ 4s 2s +100%
poly_permute_bitrev_to_custom_optional ✅ 4s 4s +0%
poly_permute_bitrev_to_custom_optional_native ✅ 4s 5s -20%
poly_reduce ✅ 4s 3s +33%
poly_uniform_eta ✅ 4s 2s +100%
poly_use_hint_c ✅ 4s 3s +33%
polyt1_unpack ✅ 4s 3s +33%
polyvec_matrix_expand ✅ 4s 1s +300%
polyvecl_uniform_gamma1_serial ✅ 4s 3s +33%
polyz_unpack ✅ 4s 3s +33%
reduce32 ✅ 4s 3s +33%
rej_eta ✅ 4s 2s +100%
rej_eta_native ✅ 4s 4s +0%
rej_uniform_eta_native_aarch64 ✅ 4s 3s +33%
shake128x4_absorb_once ✅ 4s 1s +300%
shake256_init ✅ 4s 2s +100%
sign_open ✅ 4s 5s -20%
sign_signature ✅ 4s 3s +33%
sign_signature_extmu ✅ 4s 3s +33%
sign_signature_internal ✅ 4s 4s +0%
sign_signature_pre_hash_internal ✅ 4s 4s +0%
unpack_sk ✅ 4s 3s +33%
unpack_sk_t0hat ✅ 4s 1s +300%
yvec_get_poly ✅ 4s 3s +33%
caddq ✅ 3s 3s +0%
intt_native_x86_64 ✅ 3s 5s -40%
keccak_f1600_x1_native_aarch64_v84a ✅ 3s 2s +50%
keccak_f1600_x4_native_aarch64_v84a ✅ 3s 1s +200%
keccak_init ✅ 3s 3s +0%
keccak_squeezeblocks_x4 ✅ 3s 5s -40%
keccakf1600_xor_bytes (big endian) ✅ 3s 3s +0%
keccakf1600x4_permute ✅ 3s 3s +0%
keccakf1600x4_xor_bytes_native ✅ 3s 1s +200%
mld_ct_abs_i32 ✅ 3s 3s +0%
mld_ct_cmask_neg_i32 ✅ 3s 4s -25%
mld_ct_cmask_nonzero_u8 ✅ 3s 4s -25%
mld_ct_get_optblocker_u8 ✅ 3s 3s +0%
mld_ct_sel_int32 ✅ 3s 4s -25%
mld_h ✅ 3s 3s +0%
mld_keccakf1600_extract_bytes ✅ 3s 3s +0%
mld_value_barrier_u8 ✅ 3s 2s +50%
montgomery_reduce ✅ 3s 5s -40%
ntt_native_aarch64 ✅ 3s 3s +0%
ntt_native_x86_64 ✅ 3s 4s -25%
pack_sig_z ✅ 3s 3s +0%
poly_caddq_c ✅ 3s 3s +0%
poly_caddq_native_x86_64 ✅ 3s 2s +50%
poly_chknorm_native_x86_64 ✅ 3s 2s +50%
poly_decompose ✅ 3s 2s +50%
poly_decompose_c ✅ 3s 5s -40%
poly_ntt_c ✅ 3s 2s +50%
poly_ntt_native ✅ 3s 4s -25%
poly_pointwise_montgomery ✅ 3s 2s +50%
poly_sub ✅ 3s 3s +0%
poly_uniform ✅ 3s 3s +0%
poly_uniform_gamma1 ✅ 3s 3s +0%
poly_uniform_gamma1_4x ✅ 3s 2s +50%
poly_use_hint_native_aarch64 ✅ 3s 3s +0%
polyvec_matrix_expand_serial ✅ 3s 3s +0%
polyveck_pack_w1 ✅ 3s 2s +50%
polyvecl_pointwise_acc_montgomery ✅ 3s 2s +50%
polyvecl_pointwise_acc_montgomery_c ✅ 3s 3s +0%
polyvecl_uniform_gamma1 ✅ 3s 2s +50%
polyvecl_unpack_z ✅ 3s 3s +0%
polyz_unpack_17_native_aarch64 ✅ 3s 4s -25%
polyz_unpack_native ✅ 3s 2s +50%
polyz_unpack_native_x86_64 ✅ 3s 3s +0%
power2round ✅ 3s 2s +50%
shake128_absorb ✅ 3s 3s +0%
shake128x4_squeezeblocks ✅ 3s 2s +50%
shake256_absorb ✅ 3s 3s +0%
shake256_squeeze ✅ 3s 2s +50%
shake256x4_squeezeblocks ✅ 3s 2s +50%
sign_verify_extmu ✅ 3s 4s -25%
sign_verify_pre_hash_shake256 ✅ 3s 5s -40%
sk_t0hat_get_poly ✅ 3s 2s +50%
unpack_sk_s2hat ✅ 3s 2s +50%
use_hint ✅ 3s 3s +0%
decompose ✅ 2s 2s +0%
keccak_f1600_x1_native_aarch64 ✅ 2s 2s +0%
keccak_f1600_x4_native_aarch64_v8a_v84a_scalar_hybrid ✅ 2s 3s -33%
keccak_f1600_x4_native_avx2 ✅ 2s 2s +0%
keccak_finalize ✅ 2s 4s -50%
keccak_squeeze ✅ 2s 4s -50%
keccakf1600_extract_bytes (big endian) ✅ 2s 1s +100%
keccakf1600x4_extract_bytes ✅ 2s 2s +0%
keccakf1600x4_extract_bytes_native ✅ 2s 3s -33%
keccakf1600x4_xor_bytes ✅ 2s 3s -33%
make_hint ✅ 2s 4s -50%
mld_ct_get_optblocker_u32 ✅ 2s 4s -50%
mld_polymat_expand_entry ✅ 2s 3s -33%
poly_caddq ✅ 2s 3s -33%
poly_caddq_native ✅ 2s 3s -33%
poly_caddq_native_aarch64 ✅ 2s 4s -50%
poly_chknorm_native_aarch64 ✅ 2s 4s -50%
poly_decompose_88_native_aarch64 ✅ 2s 2s +0%
poly_invntt_tomont ✅ 2s 4s -50%
poly_use_hint_native ✅ 2s 4s -50%
polyeta_pack ✅ 2s 2s +0%
polyt0_pack ✅ 2s 6s -67%
polyveck_ntt ✅ 2s 4s -50%
polyvecl_pack_eta ✅ 2s 3s -33%
polyvecl_unpack_eta ✅ 2s 3s -33%
polyw1_pack ✅ 2s 4s -50%
rej_uniform_native_aarch64 ✅ 2s 3s -33%
shake128_finalize ✅ 2s 4s -50%
shake128_release ✅ 2s 1s +100%
shake128_squeeze ✅ 2s 2s +0%
shake256x4_absorb_once ✅ 2s 1s +100%
sig_unpack_hints ✅ 2s 3s -33%
sign_signature_pre_hash_shake256 ✅ 2s 6s -67%
sign_verify ✅ 2s 2s +0%
sk_s2hat_get_poly ✅ 2s 1s +100%
sys_check_capability ✅ 2s 2s +0%
unpack_pk_t1 ✅ 2s 1s +100%
yvec_init ✅ 2s 5s -60%
keccakf1600_permute_native ✅ 1s 5s -80%
mld_ct_get_optblocker_i64 ✅ 1s 2s -50%
mld_value_barrier_u32 ✅ 1s 2s -50%
nttunpack_native_x86_64 ✅ 1s 3s -67%
poly_ntt ✅ 1s 3s -67%
poly_uniform_4x ✅ 1s 3s -67%
poly_use_hint ✅ 1s 4s -75%
polyt1_pack ✅ 1s 4s -75%
polyveck_pack_eta ✅ 1s 2s -50%
polyw1_pack_32 ✅ 1s 2s -50%
polyw1_pack_88 ✅ 1s 3s -67%
shake128_init ✅ 1s 2s -50%
shake256 ✅ 1s 2s -50%
shake256_finalize ✅ 1s 2s -50%
shake256_release ✅ 1s 2s -50%
sk_s1hat_get_poly ✅ 1s 3s -67%
unpack_sk_s1hat ✅ 1s 4s -75%

oqs-bot avatar May 06 '26 01:05 oqs-bot

CBMC Results (ML-DSA-87, REDUCE-RAM)

Full Results (206 proofs)
Proof Status Current Previous Change
**TOTAL** ✅ 1788s 1664s +7.5%
mld_invntt_layer ✅ 194s 172s +13%
polyvec_matrix_pointwise_montgomery_yvec ✅ 177s 162s +9%
poly_pointwise_montgomery_c ✅ 164s 135s +21%
rej_uniform_native ✅ 142s 128s +11%
mld_ct_memcmp ✅ 84s 69s +22%
mld_ntt_layer ✅ 49s 44s +11%
fqmul ✅ 46s 44s +5%
mld_attempt_signature_generation ✅ 35s 35s +0%
rej_uniform_native_x86_64 ✅ 29s - new
mld_ntt_butterfly_block ✅ 25s 23s +9%
sign_verify_internal ✅ 24s 22s +9%
keccakf1600x4_permute_native ✅ 23s 22s +5%
poly_chknorm_c ✅ 22s 19s +16%
polyt0_unpack ✅ 18s 15s +20%
polyeta_unpack ✅ 17s 15s +13%
polyveck_decompose ✅ 17s 16s +6%
rej_uniform_c ✅ 17s 16s +6%
poly_uniform_eta_4x ✅ 16s 14s +14%
mld_check_pct ✅ 15s 11s +36%
polyvecl_chknorm ✅ 13s 11s +18%
keccak_absorb_once_x4 ✅ 12s 8s +50%
poly_add ✅ 12s 12s +0%
sign ✅ 11s 7s +57%
compute_pack_t0_t1 ✅ 10s 11s -9%
polyvecl_ntt ✅ 10s 9s +11%
mld_sample_s1_s2 ✅ 9s 5s +80%
polyveck_invntt_tomont ✅ 9s 7s +29%
rej_uniform ✅ 9s 9s +0%
pointwise_acc_native_x86_64 ✅ 8s 7s +14%
poly_invntt_tomont_c ✅ 8s 7s +14%
keccak_absorb ✅ 7s 6s +17%
mld_keccakf1600_permute_c ✅ 7s 5s +40%
poly_power2round ✅ 7s 8s -12%
polyz_unpack_c ✅ 7s 7s +0%
sign_pk_from_sk ✅ 7s 6s +17%
sign_signature ✅ 7s 7s +0%
unpack_sk ✅ 7s 5s +40%
pointwise_acc_native_aarch64 ✅ 6s 8s -25%
poly_decompose_c ✅ 6s 10s -40%
poly_reduce ✅ 6s 4s +50%
polyvec_matrix_pointwise_montgomery_row ✅ 6s 9s -33%
polyveck_caddq ✅ 6s 6s +0%
sign_keypair_internal ✅ 6s 8s -25%
sign_verify_extmu ✅ 6s 4s +50%
mld_prepare_domain_separation_prefix ✅ 5s 4s +25%
mld_sample_s1_s2_serial ✅ 5s 6s -17%
poly_caddq_native_aarch64 ✅ 5s 3s +67%
poly_ntt_native ✅ 5s 2s +150%
poly_use_hint ✅ 5s 4s +25%
polyveck_chknorm ✅ 5s 2s +150%
polyveck_reduce ✅ 5s 6s -17%
polyvecl_pointwise_acc_montgomery_c ✅ 5s 3s +67%
rej_eta ✅ 5s 3s +67%
sign_open ✅ 5s 6s -17%
sign_verify ✅ 5s 5s +0%
sign_verify_pre_hash_shake256 ✅ 5s 4s +25%
caddq ✅ 4s 2s +100%
intt_native_x86_64 ✅ 4s 1s +300%
keccak_squeezeblocks_x4 ✅ 4s 4s +0%
keccakf1600x4_permute ✅ 4s 2s +100%
make_hint ✅ 4s 3s +33%
mld_compute_pack_z ✅ 4s 4s +0%
mld_h ✅ 4s 3s +33%
nttunpack_native_x86_64 ✅ 4s 5s -20%
poly_caddq ✅ 4s 4s +0%
poly_caddq_c ✅ 4s 5s -20%
poly_caddq_native_x86_64 ✅ 4s 3s +33%
poly_challenge ✅ 4s 6s -33%
poly_chknorm_native_aarch64 ✅ 4s 3s +33%
poly_decompose_32_native_aarch64 ✅ 4s 2s +100%
poly_decompose_88_native_aarch64 ✅ 4s 3s +33%
poly_permute_bitrev_to_custom_optional_native ✅ 4s 3s +33%
poly_pointwise_montgomery_native ✅ 4s 3s +33%
poly_use_hint_native_aarch64 ✅ 4s 4s +0%
polyeta_pack ✅ 4s 2s +100%
polyt0_pack ✅ 4s 2s +100%
polyt1_pack ✅ 4s 4s +0%
polyveck_ntt ✅ 4s 2s +100%
polyveck_pack_eta ✅ 4s 5s -20%
polyvecl_pointwise_acc_montgomery ✅ 4s 3s +33%
polyvecl_pointwise_acc_montgomery_native ✅ 4s 3s +33%
polyvecl_uniform_gamma1_serial ✅ 4s 4s +0%
polyvecl_unpack_z ✅ 4s 2s +100%
polyz_unpack ✅ 4s 3s +33%
rej_eta_c ✅ 4s 4s +0%
rej_eta_native ✅ 4s 5s -20%
shake128_init ✅ 4s 4s +0%
shake128_release ✅ 4s 3s +33%
shake128_squeeze ✅ 4s 2s +100%
shake128x4_absorb_once ✅ 4s 2s +100%
shake256_absorb ✅ 4s 3s +33%
sig_unpack_hints ✅ 4s 5s -20%
sign_keypair ✅ 4s 5s -20%
sign_signature_pre_hash_internal ✅ 4s 3s +33%
sign_verify_pre_hash_internal ✅ 4s 2s +100%
sk_s1hat_get_poly ✅ 4s 3s +33%
decompose ✅ 3s 2s +50%
fqscale ✅ 3s 3s +0%
intt_native_aarch64 ✅ 3s 2s +50%
keccak_f1600_x4_native_aarch64_v84a ✅ 3s 5s -40%
keccakf1600_extract_bytes (big endian) ✅ 3s 1s +200%
mld_ct_abs_i32 ✅ 3s 1s +200%
mld_ct_get_optblocker_i64 ✅ 3s 1s +200%
mld_ct_sel_int32 ✅ 3s 2s +50%
mld_keccakf1600x4_extract_bytes_c ✅ 3s 2s +50%
mld_polymat_expand_entry ✅ 3s 3s +0%
mld_value_barrier_i64 ✅ 3s 4s -25%
mld_value_barrier_u8 ✅ 3s 2s +50%
montgomery_reduce ✅ 3s 3s +0%
ntt_native_aarch64 ✅ 3s 2s +50%
ntt_native_x86_64 ✅ 3s 4s -25%
pack_sk_rho_key_tr_s2 ✅ 3s 2s +50%
pack_sk_s1 ✅ 3s 3s +0%
pointwise_native_aarch64 ✅ 3s 4s -25%
pointwise_native_x86_64 ✅ 3s 5s -40%
poly_caddq_native ✅ 3s 5s -40%
poly_chknorm ✅ 3s 3s +0%
poly_chknorm_native ✅ 3s 3s +0%
poly_chknorm_native_x86_64 ✅ 3s 5s -40%
poly_decompose ✅ 3s 4s -25%
poly_decompose_native ✅ 3s 2s +50%
poly_invntt_tomont_native ✅ 3s 4s -25%
poly_ntt_c ✅ 3s 3s +0%
poly_pointwise_montgomery ✅ 3s 3s +0%
poly_shiftl ✅ 3s 5s -40%
poly_uniform ✅ 3s 3s +0%
poly_uniform_eta ✅ 3s 2s +50%
poly_uniform_gamma1 ✅ 3s 2s +50%
poly_uniform_gamma1_4x ✅ 3s 5s -40%
poly_use_hint_c ✅ 3s 4s -25%
polyvec_matrix_expand ✅ 3s 2s +50%
polyvecl_unpack_eta ✅ 3s 4s -25%
rej_uniform_native_aarch64 ✅ 3s 5s -40%
shake128_absorb ✅ 3s 3s +0%
shake128_finalize ✅ 3s 2s +50%
shake128x4_squeezeblocks ✅ 3s 3s +0%
shake256 ✅ 3s 2s +50%
shake256_squeeze ✅ 3s 2s +50%
sign_signature_extmu ✅ 3s 5s -40%
sign_signature_internal ✅ 3s 4s -25%
sign_signature_pre_hash_shake256 ✅ 3s 6s -50%
unpack_pk_t1 ✅ 3s 2s +50%
unpack_sk_s1hat ✅ 3s 2s +50%
yvec_get_poly ✅ 3s 4s -25%
keccak_f1600_x1_native_aarch64 ✅ 2s 1s +100%
keccak_f1600_x4_native_aarch64_v8a_v84a_scalar_hybrid ✅ 2s 2s +0%
keccak_finalize ✅ 2s 2s +0%
keccak_init ✅ 2s 3s -33%
keccakf1600_permute ✅ 2s 1s +100%
keccakf1600_permute_native ✅ 2s 3s -33%
keccakf1600_xor_bytes ✅ 2s 4s -50%
keccakf1600_xor_bytes (big endian) ✅ 2s 2s +0%
keccakf1600x4_extract_bytes ✅ 2s 5s -60%
keccakf1600x4_extract_bytes_native ✅ 2s 4s -50%
keccakf1600x4_xor_bytes ✅ 2s 5s -60%
keccakf1600x4_xor_bytes_native ✅ 2s 2s +0%
mld_ct_cmask_neg_i32 ✅ 2s 3s -33%
mld_ct_cmask_nonzero_u32 ✅ 2s 3s -33%
mld_ct_cmask_nonzero_u8 ✅ 2s 6s -67%
mld_keccakf1600x4_xor_bytes_c ✅ 2s 3s -33%
pack_sig_h ✅ 2s 3s -33%
pack_sig_z ✅ 2s 3s -33%
poly_invntt_tomont ✅ 2s 3s -33%
poly_ntt ✅ 2s 2s +0%
poly_permute_bitrev_to_custom_optional ✅ 2s 2s +0%
poly_sub ✅ 2s 2s +0%
poly_uniform_4x ✅ 2s 4s -50%
poly_use_hint_native ✅ 2s 3s -33%
polyt1_unpack ✅ 2s 3s -33%
polyvec_matrix_expand_serial ✅ 2s 4s -50%
polyveck_unpack_eta ✅ 2s 3s -33%
polyvecl_pack_eta ✅ 2s 2s +0%
polyvecl_uniform_gamma1 ✅ 2s 2s +0%
polyw1_pack_32 ✅ 2s 2s +0%
polyz_unpack_17_native_aarch64 ✅ 2s 6s -67%
polyz_unpack_19_native_aarch64 ✅ 2s 3s -33%
polyz_unpack_native_x86_64 ✅ 2s 4s -50%
power2round ✅ 2s 3s -33%
rej_uniform_eta_native_aarch64 ✅ 2s 3s -33%
shake256_finalize ✅ 2s 3s -33%
shake256_init ✅ 2s 2s +0%
shake256_release ✅ 2s 3s -33%
shake256x4_absorb_once ✅ 2s 1s +100%
shake256x4_squeezeblocks ✅ 2s 5s -60%
sk_s2hat_get_poly ✅ 2s 2s +0%
sk_t0hat_get_poly ✅ 2s 3s -33%
sys_check_capability ✅ 2s 2s +0%
unpack_sk_s2hat ✅ 2s 2s +0%
use_hint ✅ 2s 2s +0%
yvec_init ✅ 2s 4s -50%
keccak_f1600_x1_native_aarch64_v84a ✅ 1s 2s -50%
keccak_f1600_x4_native_aarch64_v8a_scalar_hybrid ✅ 1s 4s -75%
keccak_f1600_x4_native_avx2 ✅ 1s 1s +0%
keccak_squeeze ✅ 1s 3s -67%
mld_ct_get_optblocker_u32 ✅ 1s 3s -67%
mld_ct_get_optblocker_u8 ✅ 1s 1s +0%
mld_keccakf1600_extract_bytes ✅ 1s 4s -75%
mld_value_barrier_u32 ✅ 1s 5s -80%
pack_sig_c ✅ 1s 4s -75%
polyveck_pack_w1 ✅ 1s 3s -67%
polyw1_pack ✅ 1s 3s -67%
polyw1_pack_88 ✅ 1s 5s -80%
polyz_pack ✅ 1s 1s +0%
polyz_unpack_native ✅ 1s 7s -86%
reduce32 ✅ 1s 3s -67%
unpack_sk_t0hat ✅ 1s 3s -67%

oqs-bot avatar May 06 '26 01:05 oqs-bot

CBMC Results (ML-DSA-44, REDUCE-RAM)

Full Results (206 proofs)
Proof Status Current Previous Change
**TOTAL** ✅ 1707s 1486s +14.9%
mld_invntt_layer ✅ 184s 160s +15%
poly_pointwise_montgomery_c ✅ 157s 131s +20%
rej_uniform_native ✅ 133s 115s +16%
polyvec_matrix_pointwise_montgomery_yvec ✅ 122s 111s +10%
mld_ct_memcmp ✅ 75s 63s +19%
mld_ntt_layer ✅ 49s 40s +23%
fqmul ✅ 45s 42s +7%
mld_attempt_signature_generation ✅ 27s 24s +12%
rej_uniform_native_x86_64 ✅ 26s - new
mld_ntt_butterfly_block ✅ 25s 19s +32%
keccakf1600x4_permute_native ✅ 24s 22s +9%
poly_chknorm_c ✅ 22s 17s +29%
sign_verify_internal ✅ 22s 23s -4%
polyt0_unpack ✅ 17s 18s -6%
rej_uniform_c ✅ 17s 16s +6%
mld_check_pct ✅ 15s 17s -12%
poly_uniform_eta_4x ✅ 15s 12s +25%
polyeta_unpack ✅ 14s 14s +0%
compute_pack_t0_t1 ✅ 12s 8s +50%
poly_add ✅ 12s 11s +9%
polyz_unpack_c ✅ 12s 11s +9%
keccak_absorb_once_x4 ✅ 10s 9s +11%
poly_power2round ✅ 10s 8s +25%
polyvec_matrix_pointwise_montgomery_row ✅ 9s 9s +0%
polyveck_chknorm ✅ 9s 9s +0%
rej_uniform ✅ 9s 8s +12%
keccak_absorb ✅ 8s 6s +33%
poly_decompose_c ✅ 8s 6s +33%
poly_invntt_tomont_c ✅ 8s 11s -27%
polyvecl_chknorm ✅ 8s 5s +60%
pointwise_acc_native_x86_64 ✅ 7s 6s +17%
polyveck_decompose ✅ 7s 5s +40%
rej_eta_native ✅ 7s 4s +75%
rej_uniform_native_aarch64 ✅ 7s 3s +133%
sign ✅ 7s 7s +0%
sign_pk_from_sk ✅ 7s 6s +17%
sys_check_capability ✅ 7s 4s +75%
intt_native_x86_64 ✅ 6s 3s +100%
mld_keccakf1600_permute_c ✅ 6s 5s +20%
mld_sample_s1_s2 ✅ 6s 5s +20%
pack_sig_c ✅ 6s 2s +200%
pointwise_acc_native_aarch64 ✅ 6s 6s +0%
poly_reduce ✅ 6s 5s +20%
poly_use_hint ✅ 6s 4s +50%
polyveck_pack_eta ✅ 6s 2s +200%
polyveck_unpack_eta ✅ 6s 2s +200%
sign_signature ✅ 6s 4s +50%
sign_signature_pre_hash_internal ✅ 6s 5s +20%
unpack_pk_t1 ✅ 6s 3s +100%
keccak_squeeze ✅ 5s 3s +67%
mld_ct_get_optblocker_u32 ✅ 5s 2s +150%
mld_sample_s1_s2_serial ✅ 5s 4s +25%
montgomery_reduce ✅ 5s 2s +150%
poly_challenge ✅ 5s 5s +0%
poly_pointwise_montgomery_native ✅ 5s 3s +67%
poly_shiftl ✅ 5s 4s +25%
poly_use_hint_native ✅ 5s 6s -17%
polyt0_pack ✅ 5s 5s +0%
polyvecl_ntt ✅ 5s 3s +67%
shake256_release ✅ 5s 3s +67%
sign_keypair_internal ✅ 5s 4s +25%
sign_verify_pre_hash_internal ✅ 5s 5s +0%
sk_s1hat_get_poly ✅ 5s 4s +25%
unpack_sk ✅ 5s 1s +400%
unpack_sk_s1hat ✅ 5s 3s +67%
decompose ✅ 4s 3s +33%
fqscale ✅ 4s 2s +100%
keccak_squeezeblocks_x4 ✅ 4s 3s +33%
keccakf1600_extract_bytes (big endian) ✅ 4s 1s +300%
keccakf1600x4_permute ✅ 4s 1s +300%
mld_compute_pack_z ✅ 4s 6s -33%
mld_ct_cmask_nonzero_u32 ✅ 4s 4s +0%
mld_keccakf1600x4_extract_bytes_c ✅ 4s 1s +300%
mld_polymat_expand_entry ✅ 4s 5s -20%
nttunpack_native_x86_64 ✅ 4s 3s +33%
pack_sk_s1 ✅ 4s 4s +0%
pointwise_native_x86_64 ✅ 4s 2s +100%
poly_caddq_c ✅ 4s 4s +0%
poly_caddq_native_aarch64 ✅ 4s 2s +100%
poly_caddq_native_x86_64 ✅ 4s 2s +100%
poly_chknorm_native ✅ 4s 3s +33%
poly_decompose ✅ 4s 4s +0%
poly_ntt_c ✅ 4s 2s +100%
poly_permute_bitrev_to_custom_optional_native ✅ 4s 2s +100%
poly_sub ✅ 4s 3s +33%
poly_uniform ✅ 4s 3s +33%
poly_uniform_eta ✅ 4s 3s +33%
polyt1_pack ✅ 4s 4s +0%
polyveck_caddq ✅ 4s 4s +0%
polyveck_invntt_tomont ✅ 4s 7s -43%
polyveck_ntt ✅ 4s 2s +100%
polyveck_reduce ✅ 4s 4s +0%
polyvecl_pointwise_acc_montgomery ✅ 4s 4s +0%
polyvecl_pointwise_acc_montgomery_native ✅ 4s 3s +33%
polyw1_pack ✅ 4s 2s +100%
polyz_unpack_native_x86_64 ✅ 4s 3s +33%
reduce32 ✅ 4s 3s +33%
rej_eta_c ✅ 4s 3s +33%
sign_keypair ✅ 4s 3s +33%
sign_open ✅ 4s 5s -20%
sign_signature_internal ✅ 4s 3s +33%
sign_verify_extmu ✅ 4s 5s -20%
sign_verify_pre_hash_shake256 ✅ 4s 4s +0%
yvec_get_poly ✅ 4s 1s +300%
intt_native_aarch64 ✅ 3s 2s +50%
keccak_f1600_x1_native_aarch64 ✅ 3s 3s +0%
keccak_f1600_x4_native_aarch64_v8a_v84a_scalar_hybrid ✅ 3s 2s +50%
keccak_f1600_x4_native_avx2 ✅ 3s 3s +0%
keccakf1600_permute_native ✅ 3s 2s +50%
keccakf1600_xor_bytes ✅ 3s 2s +50%
keccakf1600_xor_bytes (big endian) ✅ 3s 3s +0%
keccakf1600x4_extract_bytes ✅ 3s 3s +0%
keccakf1600x4_xor_bytes ✅ 3s 2s +50%
make_hint ✅ 3s 2s +50%
mld_ct_cmask_nonzero_u8 ✅ 3s 3s +0%
mld_ct_sel_int32 ✅ 3s 3s +0%
mld_h ✅ 3s 3s +0%
mld_keccakf1600x4_xor_bytes_c ✅ 3s 3s +0%
ntt_native_aarch64 ✅ 3s 2s +50%
ntt_native_x86_64 ✅ 3s 4s -25%
pack_sig_h ✅ 3s 3s +0%
pack_sig_z ✅ 3s 3s +0%
pack_sk_rho_key_tr_s2 ✅ 3s 2s +50%
poly_caddq ✅ 3s 2s +50%
poly_decompose_32_native_aarch64 ✅ 3s 2s +50%
poly_decompose_88_native_aarch64 ✅ 3s 2s +50%
poly_invntt_tomont_native ✅ 3s 3s +0%
poly_ntt ✅ 3s 3s +0%
poly_ntt_native ✅ 3s 5s -40%
poly_uniform_4x ✅ 3s 3s +0%
poly_use_hint_c ✅ 3s 3s +0%
poly_use_hint_native_aarch64 ✅ 3s 3s +0%
polyt1_unpack ✅ 3s 3s +0%
polyvec_matrix_expand_serial ✅ 3s 2s +50%
polyveck_pack_w1 ✅ 3s 3s +0%
polyvecl_pack_eta ✅ 3s 3s +0%
polyvecl_pointwise_acc_montgomery_c ✅ 3s 3s +0%
polyvecl_unpack_eta ✅ 3s 4s -25%
polyvecl_unpack_z ✅ 3s 4s -25%
polyw1_pack_32 ✅ 3s 4s -25%
power2round ✅ 3s 1s +200%
rej_eta ✅ 3s 2s +50%
rej_uniform_eta_native_aarch64 ✅ 3s 5s -40%
shake128_finalize ✅ 3s 1s +200%
shake128_init ✅ 3s 3s +0%
shake128_release ✅ 3s 2s +50%
shake256 ✅ 3s 2s +50%
shake256_absorb ✅ 3s 2s +50%
shake256_finalize ✅ 3s 3s +0%
sig_unpack_hints ✅ 3s 3s +0%
sign_signature_extmu ✅ 3s 5s -40%
sign_signature_pre_hash_shake256 ✅ 3s 2s +50%
sign_verify ✅ 3s 6s -50%
sk_s2hat_get_poly ✅ 3s 2s +50%
unpack_sk_s2hat ✅ 3s 4s -25%
caddq ✅ 2s 4s -50%
keccak_f1600_x1_native_aarch64_v84a ✅ 2s 2s +0%
keccak_f1600_x4_native_aarch64_v84a ✅ 2s 4s -50%
keccak_finalize ✅ 2s 1s +100%
keccakf1600_permute ✅ 2s 3s -33%
keccakf1600x4_extract_bytes_native ✅ 2s 3s -33%
keccakf1600x4_xor_bytes_native ✅ 2s 3s -33%
mld_ct_get_optblocker_i64 ✅ 2s 2s +0%
mld_keccakf1600_extract_bytes ✅ 2s 4s -50%
mld_prepare_domain_separation_prefix ✅ 2s 5s -60%
mld_value_barrier_i64 ✅ 2s 1s +100%
mld_value_barrier_u8 ✅ 2s 1s +100%
pointwise_native_aarch64 ✅ 2s 2s +0%
poly_caddq_native ✅ 2s 3s -33%
poly_chknorm ✅ 2s 5s -60%
poly_chknorm_native_aarch64 ✅ 2s 3s -33%
poly_chknorm_native_x86_64 ✅ 2s 2s +0%
poly_invntt_tomont ✅ 2s 2s +0%
poly_permute_bitrev_to_custom_optional ✅ 2s 2s +0%
poly_pointwise_montgomery ✅ 2s 3s -33%
poly_uniform_gamma1 ✅ 2s 3s -33%
poly_uniform_gamma1_4x ✅ 2s 3s -33%
polyeta_pack ✅ 2s 2s +0%
polyvec_matrix_expand ✅ 2s 2s +0%
polyvecl_uniform_gamma1 ✅ 2s 2s +0%
polyvecl_uniform_gamma1_serial ✅ 2s 5s -60%
polyw1_pack_88 ✅ 2s 2s +0%
polyz_pack ✅ 2s 2s +0%
polyz_unpack ✅ 2s 3s -33%
polyz_unpack_17_native_aarch64 ✅ 2s 7s -71%
polyz_unpack_19_native_aarch64 ✅ 2s 3s -33%
polyz_unpack_native ✅ 2s 3s -33%
shake128_squeeze ✅ 2s 1s +100%
shake128x4_absorb_once ✅ 2s 3s -33%
shake128x4_squeezeblocks ✅ 2s 2s +0%
shake256_squeeze ✅ 2s 2s +0%
shake256x4_absorb_once ✅ 2s 1s +100%
shake256x4_squeezeblocks ✅ 2s 2s +0%
sk_t0hat_get_poly ✅ 2s 3s -33%
unpack_sk_t0hat ✅ 2s 1s +100%
use_hint ✅ 2s 3s -33%
yvec_init ✅ 2s 4s -50%
keccak_f1600_x4_native_aarch64_v8a_scalar_hybrid ✅ 1s 3s -67%
keccak_init ✅ 1s 2s -50%
mld_ct_abs_i32 ✅ 1s 2s -50%
mld_ct_cmask_neg_i32 ✅ 1s 3s -67%
mld_ct_get_optblocker_u8 ✅ 1s 2s -50%
mld_value_barrier_u32 ✅ 1s 2s -50%
poly_decompose_native ✅ 1s 4s -75%
shake128_absorb ✅ 1s 1s +0%
shake256_init ✅ 1s 2s -50%

oqs-bot avatar May 06 '26 01:05 oqs-bot

@jakemas, thanks for getting this into shape! ~~How far are you with the proof of it? Would it be an option to merge it together with the correctness proof?~~ Nevermind, this already has the proof. Sorry.

mkannwischer avatar May 07 '26 05:05 mkannwischer

@mkannwischer ok, ready for review. The instruction PR will need to land in s2n-bignum first, while we wait I'll try the constant time proof -- but I'm really happy to be able to PR the conversion with a hol-light proof. Let me know if anything is missing.

jakemas avatar May 07 '26 05:05 jakemas

ahh just saw you comment! Yes got the proof in, runs in ~12min!

jakemas avatar May 07 '26 05:05 jakemas

@mkannwischer ok, ready for review. The instruction PR will need to land in s2n-bignum first, while we wait I'll try the constant time proof -- but I'm really happy to be able to PR the conversion with a hol-light proof. Let me know if anything is missing.

Thanks! Yes, I agree that it's great to get the conversion and the proof in at the same time. Would be great if we can do the same for the remaining proofs. I'll review later today.

Note that a constant-time proof is not needed for this function (all inputs are public), but we do want a memory safety proof like here: https://github.com/pq-code-package/mlkem-native/blob/2bf8e59f4330697b3924c572924136c96eb96960/proofs/hol_light/x86_64/proofs/rej_uniform_avx2_asm.ml#L1562

mkannwischer avatar May 07 '26 05:05 mkannwischer

@mkannwischer MEMSAFE is done now, all review addressed

jakemas avatar Jun 01 '26 21:06 jakemas

Updated to follow format introduced in https://github.com/pq-code-package/mldsa-native/commit/d417b6bb60527a378ed9b8170c0e2d8d71cf572e

jakemas avatar Jun 11 '26 18:06 jakemas