Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions doc/dox_comments/header_files/signature.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
\brief This function returns the maximum size of the resulting signature.

\return Returns SIG_TYPE_E if sig_type is not supported. Returns
BAD_FUNC_ARG if sig_type was invalid or key_len does not exactly match
the size of the expected key structure. A positive return value indicates
the maximum size of a signature.
BAD_FUNC_ARG if key is NULL, sig_type was invalid or key_len does not
exactly match the size of the expected key structure. A positive return
value indicates the maximum size of a signature.

\param sig_type A signature type enum value such as
WC_SIGNATURE_TYPE_ECC or WC_SIGNATURE_TYPE_RSA.
Expand All @@ -15,7 +15,7 @@
WC_SIGNATURE_TYPE_RSA / WC_SIGNATURE_TYPE_RSA_W_ENC.
The caller is responsible for ensuring the pointer refers to the correct
type; this function cannot verify the actual runtime type of the object.
\param key_len If key is non-NULL, key_len must be exactly sizeof(ecc_key)
\param key_len key_len must be exactly sizeof(ecc_key)
or sizeof(RsaKey) matching the sig_type. Passing any other value
causes the function to return BAD_FUNC_ARG without dereferencing key.
Always pass the size of the concrete key type at the call site: if you
Expand Down Expand Up @@ -51,7 +51,8 @@ int wc_SignatureGetSize(enum wc_SignatureType sig_type,

\return 0 Success
\return SIG_TYPE_E -231, signature type not enabled/ available
\return BAD_FUNC_ARG -173, bad function argument provided
\return BAD_FUNC_ARG -173, bad function argument provided, or hash_type
weaker than WC_SIG_MIN_HASH_TYPE
\return BUFFER_E -132, output buffer too small or input too large.
\return HASH_TYPE_E -232, hash type not available or, for RSA_W_ENC,
without a DigestInfo OID
Expand Down Expand Up @@ -106,7 +107,8 @@ int wc_SignatureVerify(

\return 0 Success
\return SIG_TYPE_E -231, signature type not enabled/ available
\return BAD_FUNC_ARG -173, bad function argument provided
\return BAD_FUNC_ARG -173, bad function argument provided, or hash_type
weaker than WC_SIG_MIN_HASH_TYPE
\return BUFFER_E -132, output buffer too small or input too large.
\return HASH_TYPE_E -232, hash type not available or, for RSA_W_ENC,
without a DigestInfo OID
Expand Down Expand Up @@ -177,7 +179,8 @@ int wc_SignatureGenerate(

\return 0 Success
\return SIG_TYPE_E Signature type not enabled/available
\return BAD_FUNC_ARG Bad function argument provided
\return BAD_FUNC_ARG Bad function argument provided, or hash_type
weaker than WC_SIG_MIN_HASH_TYPE
\return BUFFER_E Output buffer too small or input too large
\return ASN_PARSE_E RSA_W_ENC hash data is not the DigestInfo for
hash_type
Expand Down Expand Up @@ -236,7 +239,8 @@ int wc_SignatureVerifyHash(enum wc_HashType hash_type,

\return 0 Success
\return SIG_TYPE_E Signature type not enabled/available
\return BAD_FUNC_ARG Bad function argument provided
\return BAD_FUNC_ARG Bad function argument provided, or hash_type
weaker than WC_SIG_MIN_HASH_TYPE
\return BUFFER_E Output buffer too small or input too large
\return ASN_PARSE_E RSA_W_ENC hash data is not the DigestInfo for
hash_type
Expand Down Expand Up @@ -297,7 +301,8 @@ int wc_SignatureGenerateHash(enum wc_HashType hash_type,

\return 0 Success
\return SIG_TYPE_E Signature type not enabled/available
\return BAD_FUNC_ARG Bad function argument provided
\return BAD_FUNC_ARG Bad function argument provided, or hash_type
weaker than WC_SIG_MIN_HASH_TYPE
\return BUFFER_E Output buffer too small or input too large
\return ASN_PARSE_E RSA_W_ENC hash data is not the DigestInfo for
hash_type
Expand Down Expand Up @@ -357,7 +362,8 @@ int wc_SignatureGenerateHash_ex(enum wc_HashType hash_type,

\return 0 Success
\return SIG_TYPE_E Signature type not enabled/available
\return BAD_FUNC_ARG Bad function argument provided
\return BAD_FUNC_ARG Bad function argument provided, or hash_type
weaker than WC_SIG_MIN_HASH_TYPE
\return BUFFER_E Output buffer too small or input too large
\return HASH_TYPE_E Hash type not available or, for RSA_W_ENC, without
a DigestInfo OID
Expand Down
Loading
Loading