-
Notifications
You must be signed in to change notification settings - Fork 4
CBMC: Add proof and contract for crypto_sign_keypair_internal #269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Work in progress |
shake256(seedbuf, 2 * MLDSA_SEEDBYTES + MLDSA_CRHBYTES, inbuf, | ||
MLDSA_SEEDBYTES + 2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CBMC disliked the shared use of seedbuf
as both in
and out
here.
8ffcfca
to
ae1870d
Compare
ae1870d
to
8c4946f
Compare
8c4946f
to
f6b4738
Compare
USE_FUNCTION_CONTRACTS=$(FIPS202_NAMESPACE)shake256 $(MLD_NAMESPACE)polyvec_matrix_expand \ | ||
$(MLD_NAMESPACE)poly_uniform_eta_4x $(MLD_NAMESPACE)polyvecl_ntt \ | ||
$(MLD_NAMESPACE)polyvec_matrix_pointwise_montgomery \ | ||
$(MLD_NAMESPACE)polyveck_reduce $(MLD_NAMESPACE)polyveck_invntt_tomont \ | ||
$(MLD_NAMESPACE)polyveck_add $(MLD_NAMESPACE)polyveck_caddq \ | ||
$(MLD_NAMESPACE)polyveck_power2round $(MLD_NAMESPACE)pack_pk \ | ||
$(MLD_NAMESPACE)pack_sk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find it a bit easier to parse to use
USE_FUNCTION_CONTRACTS=$(FIPS202_NAMESPACE)shake256
USE_FUNCTION_CONTRACTS+=$(MLD_NAMESPACE)polyvec_matrix_expand
USE_FUNCTION_CONTRACTS+=$(MLD_NAMESPACE)poly_uniform_eta_4x
Signed-off-by: Jake Massimo <[email protected]>
f6b4738
to
0af3d30
Compare
is still problematic. I think, you can change the contract of
(and change poly_power2round accordingly). There is only one call site so this should be okay. |
crypto_sign_keypair_internal
#255Depends on #267 and #280