How to deduce the private and public key-lengths from the parsed ASN.1 structure? #415
Replies: 3 comments
-
I am able to interpret the public key-length from the ASN.1 structure. Can anybody here guide on the same? |
Beta Was this translation helpful? Give feedback.
-
Yes: |
Beta Was this translation helpful? Give feedback.
-
Ah, only now saw you already closed this, @Hussain1811 . Then you probably already found the answer. For posterity it'd be nice if you'd post it here so others may benefit from it (or completely delete it if you don't deem this relevant for others). |
Beta Was this translation helpful? Give feedback.
-
I've generated a dilithium key as
openssl genpkey -algorithm Dilithium2 -provider oqsprovider > dilithium2_priv.pem
Later, parsed the ASN.1 structure using
openssl asn1parse -in dilithium2_priv.pem
I could see that the octet string containing the actual key is of length 3844.
But, dilithium2 private key-size is
2528
according toOQS_SIG_dilithium_2_length_secret_key
.Am i missing anything?
Beta Was this translation helpful? Give feedback.
All reactions