Skip to content

Commit

Permalink
Update Spec.MLKEM.fst
Browse files Browse the repository at this point in the history
  • Loading branch information
mamonet committed Nov 12, 2024
1 parent 354e3ef commit ae7ab07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libcrux-ml-kem/proofs/fstar/spec/Spec.MLKEM.fst
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ val ind_cpa_encrypt_unpacked (r:rank)
(matrix_A_as_ntt:matrix r) :
t_MLKEMCiphertext r

#push-options "--z3rlimit 500 --ext context_pruning"
let ind_cpa_encrypt_unpacked r message randomness t_as_ntt matrix_A_as_ntt =
let r_as_ntt = sample_vector_cbd_then_ntt #r randomness (sz 0) in
let error_1 = sample_vector_cbd2 #r randomness r in
Expand All @@ -273,6 +274,7 @@ let ind_cpa_encrypt_unpacked r message randomness t_as_ntt matrix_A_as_ntt =
let c1 = compress_then_encode_u #r u in
let c2 = compress_then_encode_v #r v in
concat c1 c2
#pop-options

/// This function implements <strong>Algorithm 13</strong> of the
/// NIST FIPS 203 specification; this is the MLKEM CPA-PKE encryption algorithm.
Expand Down

0 comments on commit ae7ab07

Please sign in to comment.