Skip to content

Commit

Permalink
added EVP documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemas committed Feb 24, 2025
1 parent 6473b30 commit f178391
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/openssl/evp.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,10 @@ OPENSSL_EXPORT int EVP_marshal_private_key(CBB *cbb, const EVP_PKEY *key);
// OneAsymmetricKey (RFC 5958) and appends the result to |cbb|. It returns one
// on success and zero on error.
//
// Ed25519 and x25119 are the only private key that supports marshaling as a v2
// PKCS8 structure. All other private key types will return
// UNSUPPORTED_ALGORITHM error.
// Ed25519, x25119, and ML-DSA are the only private key that supports marshaling
// as a v2 PKCS8 structure. All other private key types will return
// UNSUPPORTED_ALGORITHM error. For ML-DSA, |key| is marshalled into the 32 byte
// seed representation - use |EVP_marshal_private_key| for full representation.
OPENSSL_EXPORT int EVP_marshal_private_key_v2(CBB *cbb, const EVP_PKEY *key);

// Raw keys
Expand Down

0 comments on commit f178391

Please sign in to comment.