Skip to content

Conversation

@mkannwischer
Copy link
Contributor

Add CI workflow to verify that mldsa-native builds correctly
within the OpenTitan (expo) build system. Only builds the test
binary without running the Verilator simulation, as ML-DSA is
too slow for simulation in CI.

@oqs-bot
Copy link
Contributor

oqs-bot commented Jan 31, 2026

CBMC Results (ML-DSA-87)

Full Results (174 proofs)
Proof Status Current Previous Change
**TOTAL** 2225s 2238s -0.6%
mld_attempt_signature_generation 230s 234s -2%
sign_verify_internal 217s 218s -0%
polyvecl_pointwise_acc_montgomery_c 172s 164s +5%
polyvec_matrix_expand 132s 131s +1%
poly_pointwise_montgomery_c 130s 133s -2%
rej_uniform_native 129s 127s +2%
polyvec_matrix_expand_serial 98s 105s -7%
mld_ct_memcmp 77s 75s +3%
mld_invntt_layer 68s 69s -1%
mld_ntt_layer 54s 51s +6%
keccak_squeezeblocks_x4 43s 43s +0%
sign_signature_internal 38s 42s -10%
mld_compute_t0_t1_tr_from_sk_components 25s 23s +9%
polymat_permute_bitrev_to_custom 24s 25s -4%
fqmul 20s 17s +18%
rej_uniform 19s 20s -5%
rej_uniform_c 19s 18s +6%
poly_chknorm_c 17s 19s -11%
polyveck_add 17s 13s +31%
keccakf1600x4_permute_native 16s 15s +7%
poly_uniform_eta_4x 16s 16s +0%
polyvec_matrix_pointwise_montgomery 16s 15s +7%
polyt0_unpack 15s 15s +0%
poly_uniform_4x 14s 13s +8%
polyveck_power2round 14s 14s +0%
polyeta_unpack 13s 13s +0%
keccak_absorb_once_x4 12s 13s -8%
mld_ntt_butterfly_block 10s 13s -23%
mld_polyvecl_permute_bitrev_to_custom_native 10s 10s +0%
polyveck_caddq 10s 9s +11%
mld_sample_s1_s2_serial 9s 8s +12%
poly_invntt_tomont_c 9s 10s -10%
polyveck_invntt_tomont 9s 10s -10%
polyveck_reduce 9s 10s -10%
polyvecl_ntt 9s 6s +50%
sign 9s 7s +29%
mld_check_pct 8s 10s -20%
poly_decompose_c 8s 7s +14%
polyveck_chknorm 8s 8s +0%
polyveck_unpack_eta 8s 5s +60%
sign_pk_from_sk 8s 7s +14%
keccakf1600_permute 7s 8s -12%
keccakf1600_permute_native 7s 9s -22%
mld_sample_s1_s2 7s 7s +0%
polyveck_decompose 7s 5s +40%
polyveck_ntt 7s 7s +0%
polyveck_pointwise_poly_montgomery 7s 6s +17%
polyveck_shiftl 7s 6s +17%
polyveck_use_hint 7s 6s +17%
unpack_sig 7s 2s +250%
keccak_absorb 6s 5s +20%
poly_power2round 6s 5s +20%
polyt0_pack 6s 4s +50%
sign_signature 6s 4s +50%
sign_verify 6s 5s +20%
unpack_hints 6s 4s +50%
mld_compute_pack_z 5s 7s -29%
ntt_native_x86_64 5s 2s +150%
poly_ntt_c 5s 2s +150%
poly_ntt_native 5s 2s +150%
poly_uniform 5s 3s +67%
polyvecl_chknorm 5s 6s -17%
polyvecl_unpack_z 5s 3s +67%
polyz_unpack_c 5s 5s +0%
rej_eta_c 5s 3s +67%
shake256_finalize 5s 2s +150%
sign_keypair_internal 5s 5s +0%
unpack_sk 5s 5s +0%
caddq 4s 2s +100%
decompose 4s 4s +0%
keccak_finalize 4s 2s +100%
mld_ct_abs_i32 4s 2s +100%
mld_h 4s 3s +33%
montgomery_reduce 4s 2s +100%
poly_add 4s 5s -20%
poly_challenge 4s 4s +0%
poly_chknorm_native 4s 3s +33%
poly_invntt_tomont 4s 6s -33%
poly_uniform_eta 4s 5s -20%
polyeta_pack 4s 4s +0%
polyveck_pack_t0 4s 7s -43%
polyveck_sub 4s 8s -50%
polyveck_unpack_t0 4s 3s +33%
polyvecl_permute_bitrev_to_custom 4s 3s +33%
polyvecl_pointwise_acc_montgomery 4s 5s -20%
polyz_pack 4s 3s +33%
rej_eta_native 4s 5s -20%
shake128_finalize 4s 2s +100%
shake128x4_absorb_once 4s 3s +33%
sign_signature_pre_hash_internal 4s 3s +33%
sign_signature_pre_hash_shake256 4s 5s -20%
sign_verify_extmu 4s 3s +33%
sign_verify_pre_hash_internal 4s 5s -20%
sign_verify_pre_hash_shake256 4s 6s -33%
unpack_pk 4s 2s +100%
keccakf1600_xor_bytes (big endian) 3s 3s +0%
keccakf1600x4_xor_bytes 3s 2s +50%
mld_ct_get_optblocker_u32 3s 1s +200%
mld_ct_sel_int32 3s 2s +50%
mld_keccakf1600_extract_bytes 3s 2s +50%
mld_prepare_domain_separation_prefix 3s 4s -25%
poly_caddq_native_aarch64 3s 2s +50%
poly_invntt_tomont_native 3s 3s +0%
poly_make_hint 3s 2s +50%
poly_ntt 3s 4s -25%
poly_pointwise_montgomery 3s 3s +0%
poly_pointwise_montgomery_native 3s 4s -25%
poly_reduce 3s 2s +50%
poly_sub 3s 3s +0%
poly_uniform_gamma1_4x 3s 7s -57%
poly_use_hint_c 3s 4s -25%
poly_use_hint_native 3s 2s +50%
polyt1_pack 3s 3s +0%
polyveck_make_hint 3s 3s +0%
polyveck_pack_eta 3s 3s +0%
polyveck_pack_w1 3s 4s -25%
polyvecl_pack_eta 3s 5s -40%
polyvecl_pointwise_acc_montgomery_native 3s 5s -40%
polyvecl_uniform_gamma1 3s 4s -25%
polyvecl_uniform_gamma1_serial 3s 5s -40%
polyz_unpack_native 3s 2s +50%
power2round 3s 4s -25%
shake128_init 3s 3s +0%
shake256_release 3s 2s +50%
shake256x4_absorb_once 3s 4s -25%
shake256x4_squeezeblocks 3s 2s +50%
sign_open 3s 4s -25%
sign_signature_extmu 3s 5s -40%
sys_check_capability 3s 3s +0%
fqscale 2s 4s -50%
keccak_init 2s 4s -50%
keccak_squeeze 2s 3s -33%
keccakf1600_extract_bytes (big endian) 2s 5s -60%
keccakf1600_xor_bytes 2s 2s +0%
keccakf1600x4_extract_bytes 2s 3s -33%
keccakf1600x4_permute 2s 5s -60%
make_hint 2s 2s +0%
mld_ct_cmask_neg_i32 2s 2s +0%
mld_ct_cmask_nonzero_u32 2s 4s -50%
mld_ct_cmask_nonzero_u8 2s 5s -60%
mld_ct_get_optblocker_i64 2s 1s +100%
mld_value_barrier_u32 2s 2s +0%
mld_value_barrier_u8 2s 2s +0%
pack_pk 2s 4s -50%
pack_sig_c_h 2s 3s -33%
pack_sig_z 2s 4s -50%
pack_sk 2s 3s -33%
poly_caddq 2s 4s -50%
poly_caddq_c 2s 3s -33%
poly_caddq_native 2s 3s -33%
poly_chknorm 2s 4s -50%
poly_decompose 2s 4s -50%
poly_decompose_native 2s 3s -33%
poly_shiftl 2s 3s -33%
poly_uniform_gamma1 2s 3s -33%
poly_use_hint 2s 2s +0%
polyt1_unpack 2s 2s +0%
polyw1_pack 2s 2s +0%
polyz_unpack 2s 3s -33%
reduce32 2s 3s -33%
rej_eta 2s 2s +0%
shake128_absorb 2s 2s +0%
shake128_release 2s 4s -50%
shake128_squeeze 2s 3s -33%
shake128x4_squeezeblocks 2s 2s +0%
shake256 2s 2s +0%
shake256_absorb 2s 2s +0%
shake256_init 2s 3s -33%
shake256_squeeze 2s 3s -33%
sign_keypair 2s 4s -50%
use_hint 2s 2s +0%
mld_ct_get_optblocker_u8 1s 1s +0%
mld_value_barrier_i64 1s 2s -50%
polyvecl_unpack_eta 1s 4s -75%

@oqs-bot
Copy link
Contributor

oqs-bot commented Jan 31, 2026

CBMC Results (ML-DSA-44)

Full Results (174 proofs)
Proof Status Current Previous Change
**TOTAL** 2075s 1980s +4.8%
sign_verify_internal 257s 243s +6%
mld_attempt_signature_generation 213s 206s +3%
polyvecl_pointwise_acc_montgomery_c 210s 192s +9%
poly_pointwise_montgomery_c 132s 119s +11%
rej_uniform_native 128s 125s +2%
mld_invntt_layer 120s 113s +6%
mld_ct_memcmp 77s 73s +5%
sign_signature_internal 45s 45s +0%
keccak_squeezeblocks_x4 44s 44s +0%
mld_ntt_layer 44s 45s -2%
polyvec_matrix_expand 27s 26s +4%
rej_uniform 23s 19s +21%
fqmul 21s 19s +11%
rej_uniform_c 19s 16s +19%
polymat_permute_bitrev_to_custom 17s 14s +21%
poly_chknorm_c 16s 16s +0%
poly_uniform_eta_4x 16s 16s +0%
poly_uniform_4x 14s 14s +0%
keccak_absorb_once_x4 13s 12s +8%
keccakf1600x4_permute_native 13s 15s -13%
mld_compute_t0_t1_tr_from_sk_components 13s 15s -13%
polyt0_unpack 13s 16s -19%
mld_check_pct 12s 9s +33%
mld_ntt_butterfly_block 12s 12s +0%
polyeta_unpack 12s 13s -8%
polyz_unpack_c 10s 12s -17%
mld_polyvecl_permute_bitrev_to_custom_native 9s 9s +0%
sign_keypair_internal 9s 3s +200%
keccak_absorb 8s 5s +60%
keccakf1600_permute 8s 7s +14%
polyveck_add 8s 7s +14%
polyveck_reduce 8s 5s +60%
sign_signature_pre_hash_internal 8s 6s +33%
keccakf1600_permute_native 7s 7s +0%
polyvec_matrix_expand_serial 7s 8s -12%
polyvec_matrix_pointwise_montgomery 7s 6s +17%
sign_pk_from_sk 7s 7s +0%
sign_verify_pre_hash_internal 7s 5s +40%
fqscale 6s 2s +200%
keccakf1600_xor_bytes 6s 4s +50%
mld_compute_pack_z 6s 6s +0%
poly_caddq 6s 4s +50%
poly_use_hint 6s 3s +100%
polyveck_caddq 6s 4s +50%
polyveck_power2round 6s 6s +0%
polyvecl_chknorm 6s 5s +20%
sign 6s 7s -14%
unpack_sig 6s 2s +200%
unpack_sk 6s 5s +20%
montgomery_reduce 5s 4s +25%
pack_sk 5s 2s +150%
poly_caddq_native_aarch64 5s 5s +0%
poly_invntt_tomont_c 5s 7s -29%
poly_reduce 5s 3s +67%
poly_shiftl 5s 6s -17%
poly_use_hint_c 5s 3s +67%
polyveck_chknorm 5s 4s +25%
polyveck_decompose 5s 5s +0%
polyveck_invntt_tomont 5s 5s +0%
polyveck_ntt 5s 4s +25%
polyveck_pack_w1 5s 3s +67%
polyveck_sub 5s 5s +0%
polyveck_use_hint 5s 9s -44%
polyvecl_ntt 5s 7s -29%
power2round 5s 3s +67%
reduce32 5s 3s +67%
sign_open 5s 3s +67%
sign_signature_pre_hash_shake256 5s 4s +25%
sign_verify_extmu 5s 2s +150%
decompose 4s 6s -33%
keccak_init 4s 3s +33%
keccak_squeeze 4s 2s +100%
pack_pk 4s 2s +100%
poly_caddq_c 4s 2s +100%
poly_decompose_native 4s 3s +33%
poly_ntt_c 4s 1s +300%
poly_uniform_gamma1_4x 4s 3s +33%
polyveck_pack_eta 4s 4s +0%
polyveck_pointwise_poly_montgomery 4s 6s -33%
polyvecl_permute_bitrev_to_custom 4s 3s +33%
polyvecl_uniform_gamma1 4s 3s +33%
polyvecl_unpack_eta 4s 2s +100%
rej_eta_c 4s 3s +33%
rej_eta_native 4s 6s -33%
shake256_finalize 4s 1s +300%
shake256_release 4s 1s +300%
shake256_squeeze 4s 3s +33%
sign_signature_extmu 4s 6s -33%
sign_verify 4s 3s +33%
sign_verify_pre_hash_shake256 4s 2s +100%
unpack_hints 4s 6s -33%
keccakf1600x4_xor_bytes 3s 1s +200%
make_hint 3s 3s +0%
mld_ct_cmask_neg_i32 3s 2s +50%
mld_ct_cmask_nonzero_u32 3s 2s +50%
mld_ct_get_optblocker_i64 3s 3s +0%
mld_ct_get_optblocker_u32 3s 2s +50%
mld_ct_sel_int32 3s 3s +0%
mld_h 3s 5s -40%
mld_keccakf1600_extract_bytes 3s 3s +0%
mld_prepare_domain_separation_prefix 3s 7s -57%
mld_sample_s1_s2 3s 3s +0%
mld_value_barrier_i64 3s 4s -25%
mld_value_barrier_u32 3s 3s +0%
poly_add 3s 4s -25%
poly_challenge 3s 5s -40%
poly_chknorm 3s 2s +50%
poly_decompose 3s 2s +50%
poly_decompose_c 3s 2s +50%
poly_invntt_tomont_native 3s 3s +0%
poly_ntt_native 3s 3s +0%
poly_power2round 3s 2s +50%
poly_sub 3s 3s +0%
poly_uniform 3s 4s -25%
poly_uniform_eta 3s 4s -25%
poly_use_hint_native 3s 6s -50%
polyt0_pack 3s 3s +0%
polyt1_pack 3s 1s +200%
polyveck_make_hint 3s 4s -25%
polyveck_pack_t0 3s 4s -25%
polyveck_shiftl 3s 5s -40%
polyveck_unpack_eta 3s 3s +0%
polyvecl_pack_eta 3s 2s +50%
polyvecl_pointwise_acc_montgomery 3s 3s +0%
polyvecl_pointwise_acc_montgomery_native 3s 4s -25%
polyvecl_uniform_gamma1_serial 3s 4s -25%
polyvecl_unpack_z 3s 2s +50%
polyz_pack 3s 4s -25%
rej_eta 3s 3s +0%
shake128_init 3s 2s +50%
shake128_squeeze 3s 4s -25%
shake256 3s 3s +0%
shake256x4_absorb_once 3s 4s -25%
shake256x4_squeezeblocks 3s 1s +200%
sign_keypair 3s 3s +0%
sign_signature 3s 4s -25%
unpack_pk 3s 3s +0%
use_hint 3s 3s +0%
caddq 2s 4s -50%
keccak_finalize 2s 1s +100%
keccakf1600x4_permute 2s 4s -50%
mld_ct_get_optblocker_u8 2s 3s -33%
mld_sample_s1_s2_serial 2s 4s -50%
mld_value_barrier_u8 2s 2s +0%
ntt_native_x86_64 2s 3s -33%
pack_sig_c_h 2s 3s -33%
pack_sig_z 2s 3s -33%
poly_caddq_native 2s 3s -33%
poly_chknorm_native 2s 4s -50%
poly_invntt_tomont 2s 3s -33%
poly_make_hint 2s 3s -33%
poly_ntt 2s 4s -50%
poly_pointwise_montgomery 2s 2s +0%
poly_pointwise_montgomery_native 2s 2s +0%
polyeta_pack 2s 5s -60%
polyt1_unpack 2s 3s -33%
polyveck_unpack_t0 2s 2s +0%
polyw1_pack 2s 4s -50%
polyz_unpack 2s 2s +0%
polyz_unpack_native 2s 2s +0%
shake128_absorb 2s 3s -33%
shake128_finalize 2s 3s -33%
shake128_release 2s 2s +0%
shake128x4_absorb_once 2s 1s +100%
shake128x4_squeezeblocks 2s 4s -50%
shake256_absorb 2s 4s -50%
shake256_init 2s 1s +100%
sys_check_capability 2s 2s +0%
keccakf1600_extract_bytes (big endian) 1s 2s -50%
keccakf1600_xor_bytes (big endian) 1s 4s -75%
keccakf1600x4_extract_bytes 1s 2s -50%
mld_ct_abs_i32 1s 2s -50%
mld_ct_cmask_nonzero_u8 1s 2s -50%
poly_uniform_gamma1 1s 2s -50%

@oqs-bot
Copy link
Contributor

oqs-bot commented Jan 31, 2026

CBMC Results (ML-DSA-65)

Full Results (174 proofs)
Proof Status Current Previous Change
**TOTAL** 2479s 2486s -0.3%
sign_verify_internal 373s 376s -1%
polyvecl_pointwise_acc_montgomery_c 257s 255s +1%
mld_attempt_signature_generation 211s 213s -1%
poly_pointwise_montgomery_c 154s 140s +10%
rej_uniform_native 136s 137s -1%
polyvec_matrix_expand 97s 99s -2%
mld_ct_memcmp 87s 86s +1%
mld_invntt_layer 74s 75s -1%
polyvec_matrix_expand_serial 66s 67s -1%
mld_ntt_layer 52s 57s -9%
keccak_squeezeblocks_x4 47s 46s +2%
sign_signature_internal 44s 44s +0%
mld_compute_t0_t1_tr_from_sk_components 26s 27s -4%
rej_uniform 21s 19s +11%
polymat_permute_bitrev_to_custom 20s 19s +5%
rej_uniform_c 20s 19s +5%
fqmul 19s 19s +0%
poly_uniform_eta_4x 19s 19s +0%
poly_chknorm_c 18s 18s +0%
polyveck_decompose 17s 18s -6%
polyt0_unpack 16s 17s -6%
poly_uniform_4x 15s 16s -6%
keccakf1600x4_permute_native 14s 13s +8%
polyvec_matrix_pointwise_montgomery 14s 16s -12%
mld_ntt_butterfly_block 13s 13s +0%
keccak_absorb_once_x4 12s 13s -8%
sign 12s 11s +9%
mld_compute_pack_z 10s 9s +11%
poly_invntt_tomont_c 10s 8s +25%
keccakf1600_permute_native 9s 9s +0%
mld_check_pct 9s 9s +0%
mld_polyvecl_permute_bitrev_to_custom_native 9s 7s +29%
polyveck_pointwise_poly_montgomery 9s 6s +50%
polyveck_power2round 9s 9s +0%
polyveck_sub 9s 8s +12%
polyveck_add 8s 9s -11%
polyveck_caddq 8s 10s -20%
polyveck_chknorm 8s 5s +60%
polyveck_invntt_tomont 8s 8s +0%
polyveck_ntt 8s 10s -20%
polyveck_use_hint 8s 7s +14%
sign_pk_from_sk 8s 9s -11%
sign_verify_extmu 8s 2s +300%
keccak_absorb 7s 7s +0%
keccakf1600_permute 7s 7s +0%
mld_sample_s1_s2 7s 8s -12%
poly_challenge 7s 9s -22%
poly_decompose_c 7s 10s -30%
poly_power2round 7s 5s +40%
poly_uniform 7s 5s +40%
polyveck_reduce 7s 9s -22%
polyvecl_uniform_gamma1 7s 3s +133%
polyz_unpack_c 7s 7s +0%
sign_keypair_internal 7s 5s +40%
poly_use_hint_c 6s 5s +20%
polyeta_unpack 6s 8s -25%
polyveck_make_hint 6s 4s +50%
polyvecl_ntt 6s 6s +0%
polyvecl_pointwise_acc_montgomery 6s 2s +200%
rej_eta_native 6s 4s +50%
sign_signature 6s 8s -25%
unpack_sk 6s 5s +20%
decompose 5s 2s +150%
pack_pk 5s 4s +25%
pack_sig_c_h 5s 5s +0%
poly_caddq_native_aarch64 5s 2s +150%
poly_chknorm_native 5s 5s +0%
poly_decompose_native 5s 5s +0%
poly_uniform_eta 5s 7s -29%
polyt0_pack 5s 4s +25%
polyveck_shiftl 5s 6s -17%
polyveck_unpack_eta 5s 4s +25%
polyveck_unpack_t0 5s 6s -17%
polyvecl_chknorm 5s 6s -17%
polyvecl_unpack_eta 5s 2s +150%
shake128x4_squeezeblocks 5s 4s +25%
sign_signature_pre_hash_internal 5s 2s +150%
sign_signature_pre_hash_shake256 5s 2s +150%
sign_verify_pre_hash_shake256 5s 6s -17%
unpack_hints 5s 5s +0%
keccakf1600x4_permute 4s 4s +0%
mld_h 4s 5s -20%
mld_sample_s1_s2_serial 4s 5s -20%
ntt_native_x86_64 4s 5s -20%
pack_sig_z 4s 3s +33%
pack_sk 4s 3s +33%
poly_caddq_native 4s 4s +0%
poly_invntt_tomont 4s 2s +100%
poly_ntt 4s 2s +100%
poly_ntt_c 4s 3s +33%
poly_pointwise_montgomery 4s 5s -20%
poly_reduce 4s 3s +33%
poly_shiftl 4s 2s +100%
polyeta_pack 4s 3s +33%
polyt1_unpack 4s 2s +100%
polyveck_pack_eta 4s 2s +100%
polyvecl_pointwise_acc_montgomery_native 4s 6s -33%
shake128_init 4s 3s +33%
shake128_release 4s 4s +0%
sign_signature_extmu 4s 3s +33%
sign_verify 4s 4s +0%
sign_verify_pre_hash_internal 4s 4s +0%
sys_check_capability 4s 2s +100%
unpack_sig 4s 3s +33%
caddq 3s 2s +50%
fqscale 3s 4s -25%
keccak_squeeze 3s 3s +0%
keccakf1600_extract_bytes (big endian) 3s 2s +50%
keccakf1600_xor_bytes 3s 3s +0%
mld_ct_cmask_neg_i32 3s 2s +50%
mld_ct_cmask_nonzero_u32 3s 2s +50%
mld_ct_get_optblocker_i64 3s 2s +50%
mld_ct_get_optblocker_u32 3s 1s +200%
mld_ct_get_optblocker_u8 3s 1s +200%
mld_prepare_domain_separation_prefix 3s 5s -40%
mld_value_barrier_u32 3s 4s -25%
poly_add 3s 4s -25%
poly_caddq 3s 3s +0%
poly_caddq_c 3s 3s +0%
poly_chknorm 3s 5s -40%
poly_decompose 3s 3s +0%
poly_invntt_tomont_native 3s 5s -40%
poly_make_hint 3s 3s +0%
poly_pointwise_montgomery_native 3s 2s +50%
poly_sub 3s 3s +0%
poly_use_hint 3s 4s -25%
poly_use_hint_native 3s 4s -25%
polyveck_pack_t0 3s 5s -40%
polyvecl_permute_bitrev_to_custom 3s 5s -40%
polyvecl_uniform_gamma1_serial 3s 5s -40%
polyz_unpack 3s 3s +0%
power2round 3s 2s +50%
reduce32 3s 2s +50%
rej_eta 3s 4s -25%
rej_eta_c 3s 3s +0%
shake128x4_absorb_once 3s 3s +0%
shake256_absorb 3s 4s -25%
shake256_init 3s 4s -25%
shake256x4_absorb_once 3s 2s +50%
shake256x4_squeezeblocks 3s 3s +0%
sign_open 3s 4s -25%
unpack_pk 3s 2s +50%
use_hint 3s 3s +0%
keccak_finalize 2s 2s +0%
keccakf1600_xor_bytes (big endian) 2s 3s -33%
keccakf1600x4_extract_bytes 2s 4s -50%
keccakf1600x4_xor_bytes 2s 3s -33%
make_hint 2s 5s -60%
mld_ct_abs_i32 2s 2s +0%
mld_ct_cmask_nonzero_u8 2s 3s -33%
mld_keccakf1600_extract_bytes 2s 3s -33%
mld_value_barrier_u8 2s 3s -33%
montgomery_reduce 2s 4s -50%
poly_ntt_native 2s 4s -50%
poly_uniform_gamma1 2s 3s -33%
poly_uniform_gamma1_4x 2s 6s -67%
polyt1_pack 2s 3s -33%
polyveck_pack_w1 2s 5s -60%
polyvecl_pack_eta 2s 4s -50%
polyvecl_unpack_z 2s 2s +0%
polyw1_pack 2s 2s +0%
polyz_pack 2s 4s -50%
polyz_unpack_native 2s 3s -33%
shake128_absorb 2s 3s -33%
shake128_finalize 2s 3s -33%
shake128_squeeze 2s 3s -33%
shake256 2s 4s -50%
shake256_finalize 2s 3s -33%
shake256_release 2s 2s +0%
shake256_squeeze 2s 8s -75%
sign_keypair 2s 5s -60%
keccak_init 1s 2s -50%
mld_ct_sel_int32 1s 4s -75%
mld_value_barrier_i64 1s 4s -75%

@mkannwischer mkannwischer marked this pull request as ready for review January 31, 2026 05:02
@mkannwischer mkannwischer requested a review from a team as a code owner January 31, 2026 05:02
Add CI workflow to verify that mldsa-native builds correctly
within the OpenTitan (expo) build system. Only builds the test
binary without running the Verilator simulation, as ML-DSA is
too slow for simulation in CI.

- Resolves #886

Signed-off-by: Matthias J. Kannwischer <matthias@kannwischer.eu>
Comment on lines +45 to +71
- name: Cache Verilator
id: cache-verilator
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: /tools/verilator/4.210
key: verilator-4.210-ubuntu22-${{ runner.os }}

- name: Install Verilator
if: steps.cache-verilator.outputs.cache-hit != 'true'
shell: bash
run: |
# Install build-time dependencies for Verilator
sudo apt install -y make autoconf bison flex libfl-dev gcc-11 g++-11
# Build and install Verilator
export VERILATOR_VERSION=4.210
git clone https://github.com/verilator/verilator.git
cd verilator
git checkout v$VERILATOR_VERSION
autoconf
CC=gcc-11 CXX=g++-11 ./configure --prefix=/tools/verilator/$VERILATOR_VERSION
CC=gcc-11 CXX=g++-11 make -j$(nproc)
sudo CC=gcc-11 CXX=g++-11 make install
- name: Add Verilator to PATH
shell: bash
run: |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed I suppose? Are we keeping it in case we want to simulate in CI at some point, after all?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is what I hoped too. Unfortunately, just building the hardware requires to run verilator.
I have not found a way yet to run the build without it.

Copy link
Contributor

@hanno-becker hanno-becker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Verilator setup seems unnecessary given that we only build, but it allows us to keep the setup action synchronized with mlkem-native, which is worthwhile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: Test OpenTitan integration

4 participants