Document PUBLIC_KEY_E error return from wc_edXXX_export_key()

This commit is contained in:
Josh Holtrop
2026-06-12 08:40:54 -04:00
parent 92500e728f
commit 2914a85741
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -904,6 +904,7 @@ int wc_ed25519_export_private(const ed25519_key* key, byte* out, word32* outLen)
\return BAD_FUNC_ARG Returned if any of the input values evaluate to NULL.
\return BUFFER_E Returned if the buffer provided is not large enough
to store the key pair.
\return PUBLIC_KEY_E the given key only has a private key present.
\param [in] key Pointer to an ed25519_key structure from which to export
the key pair.
+1
View File
@@ -791,6 +791,7 @@ int wc_ed448_export_private(const ed448_key* key, byte* out, word32* outLen);
\return ECC_BAD_ARG_E Returned if any of the input values evaluate to NULL.
\return BUFFER_E Returned if the buffer provided is not large enough
to store the key pair.
\return PUBLIC_KEY_E the given key only has a private key present.
\param [in] key Pointer to an ed448_key structure from which to export
the key pair.