2
0
mirror of https://github.com/openssl/openssl.git synced 2025-04-24 20:51:14 +08:00

Fix docs/comments with ASN.1 private key syntax

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/26674)
This commit is contained in:
Viktor Dukhovni 2025-02-09 17:55:44 +11:00 committed by Tomas Mraz
parent 8cc7ebf6fe
commit edb3824604
3 changed files with 12 additions and 12 deletions
doc/man7
providers/implementations/encode_decode

@ -127,11 +127,11 @@ B<ξ> seed and the secret key B<sk> are present in the private key as part of
the DER encoding of the ASN.1 sequence:
ML-DSA-PrivateKey ::= CHOICE {
seed [0] IMPLICIT OCTET STRING SIZE (32),
expandedKey OCTET STRING SIZE (2560 | 4032 | 4896)
seed [0] IMPLICIT OCTET STRING (SIZE (32)),
expandedKey OCTET STRING (SIZE (2560 | 4032 | 4896)),
both SEQUENCE {
seed OCTET STRING SIZE (32),
expandedKey OCTET STRING SIZE (2560 | 4032 | 4896) } }
seed OCTET STRING (SIZE (32)),
expandedKey OCTET STRING (SIZE (2560 | 4032 | 4896)) } }
If the C<seed-priv> format is not included in the list, this format will not be
recognised on input.

@ -22,11 +22,11 @@
* corresponding to the "either or both" variants of:
*
* ML-DSA-PrivateKey ::= CHOICE {
* seed [0] IMPLICIT OCTET STRING SIZE (32),
* expandedKey OCTET STRING SIZE (2560 | 4032 | 4896)
* seed [0] IMPLICIT OCTET STRING (SIZE (32)),
* expandedKey OCTET STRING (SIZE (2560 | 4032 | 4896)),
* both SEQUENCE {
* seed OCTET STRING SIZE (32),
* expandedKey OCTET STRING SIZE (2560 | 4032 | 4896) } }
* seed OCTET STRING (SIZE (32)),
* expandedKey OCTET STRING (SIZE (2560 | 4032 | 4896)) } }
*
* one more for a historical OQS encoding:
*

@ -36,11 +36,11 @@ typedef struct {
* corresponding to the "either or both" variants of:
*
* ML-DSA-PrivateKey ::= CHOICE {
* seed [0] IMPLICIT OCTET STRING SIZE (32),
* expandedKey OCTET STRING SIZE (2560 | 4032 | 4896)
* seed [0] IMPLICIT OCTET STRING (SIZE (32)),
* expandedKey OCTET STRING (SIZE (2560 | 4032 | 4896)),
* both SEQUENCE {
* seed OCTET STRING SIZE (32),
* expandedKey OCTET STRING SIZE (2560 | 4032 | 4896) } }
* seed OCTET STRING (SIZE (32)),
* expandedKey OCTET STRING (SIZE (2560 | 4032 | 4896)) } }
*
* one more for a historical OQS encoding:
*