]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Document crypto_ec_key_get_subject_public_key() to use compressed format
authorGlenn Strauss <gstrauss@gluelogic.com>
Mon, 3 Oct 2022 07:31:22 +0000 (03:31 -0400)
committerJouni Malinen <j@w1.fi>
Sat, 5 Nov 2022 15:31:51 +0000 (17:31 +0200)
Document in src/crypto/crypto.h that compressed point format is expected
in DER produced by crypto_ec_key_get_subject_public_key(). This is the
format needed for both SAE-PK and DPP use cases that are the current
users of this function.

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
src/crypto/crypto.h

index 91df6079d4ba8ba61320cf75756f1147a1db64b9..ff0869c49692e03058862f519f70c23f09c35ff3 100644 (file)
@@ -1068,7 +1068,8 @@ void crypto_ec_key_deinit(struct crypto_ec_key *key);
 /**
  * crypto_ec_key_get_subject_public_key - Get SubjectPublicKeyInfo ASN.1 for an EC key
  * @key: EC key from crypto_ec_key_parse/set_pub/priv() or crypto_ec_key_gen()
- * Returns: Buffer with DER encoding of ASN.1 SubjectPublicKeyInfo or %NULL on failure
+ * Returns: Buffer with DER encoding of ASN.1 SubjectPublicKeyInfo using
+ * compressed point format, or %NULL on failure
  */
 struct wpabuf * crypto_ec_key_get_subject_public_key(struct crypto_ec_key *key);