-
Notifications
You must be signed in to change notification settings - Fork 57
feat: Add real mldas87 cert and csr to rom #2060
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-2.x
Are you sure you want to change the base?
Conversation
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.
Please check in the code used to generate these templates. It's ok if it's in a separate crate (even a separate workspace if necessary), but we shouldn't check in binaries without also reviewing how they were generated.
db4ea23
to
3617b2c
Compare
Alright that turned out to be easier than expected :-D |
3617b2c
to
e2764e1
Compare
fb82048
to
9909bfc
Compare
e4c25f4
to
3010c7c
Compare
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.
Approving to remove block since I will be out for a couple weeks. But I would appreciate if you can address the couple comments before merging.
292adce
to
ca6f2df
Compare
The previous certificates were handcrafted and most certainly not correct. For now this uses out of tree code to generate cert and csr based on existing code, but using rustcrypto instead of openssl. Later work will try to integrate that code into caliptra-x509 build.rs. The repo for generating these tbs is "https://github.com/ArthurHeymans/test-rustcrypto-mldsa" A difference is that x509-cert from rustcrypto always uses UTC time rather than General time which has a 2049 date limit and uses 13 instead of 15 bytes. Signed-off-by: Arthur Heymans <[email protected]>
Signed-off-by: Arthur Heymans <[email protected]>
To avoid conflicting dependencies that we already use for rustcrypto add this empty workspace crate that can generate all the cert and csr templates. To run it and update existing TBS templates: cd x509/ml-dsa OUT_DIR=../build cargo run Signed-off-by: Arthur Heymans <[email protected]>
Signed-off-by: Arthur Heymans <[email protected]>
Signed-off-by: Arthur Heymans <[email protected]>
This will be used by rustcrypto cert generation Signed-off-by: Arthur Heymans <[email protected]>
Signed-off-by: Arthur Heymans <[email protected]>
Signed-off-by: Arthur Heymans <[email protected]>
ca6f2df
to
dedaa1e
Compare
The previous certificates were handcrafted and most certainly not correct.
For now this uses out of tree code to generate cert and csr based on existing code, but using rustcrypto instead of openssl. Later work will try to integrate that code into caliptra-x509 build.rs.
The repo for generating these tbs is
"https://github.com/ArthurHeymans/test-rustcrypto-mldsa"
A difference is that x509-cert from rustcrypto always uses UTC time rather than General time which has a 2049 date limit and uses 13 instead of 15 bytes.