Minor errors in documentation around asymmetric signature

This commit is contained in:
Gilles Peskine 2018-03-28 14:17:40 +02:00 committed by itayzafrir
parent a59262338a
commit 8484565f85

View file

@ -1238,7 +1238,7 @@ psa_status_t psa_aead_abort(psa_aead_operation_t *operation);
#define PSA_ASYMMETRIC_SIGN_OUTPUT_SIZE(key_type, key_bits, alg) \
(PSA_KEY_TYPE_IS_RSA(key_type) ? ((void)alg, PSA_BITS_TO_BYTES(key_bits)) : \
PSA_KEY_TYPE_IS_ECC(key_type) ? PSA_ECDSA_SIGNATURE_SIZE(key_bits) : \
0)
((void)alg, 0))
/**
* \brief Sign a hash or short message with a private key.
@ -1261,8 +1261,6 @@ psa_status_t psa_aead_abort(psa_aead_operation_t *operation);
* \param signature_size Size of the \c signature buffer in bytes.
* \param signature_length On success, the number of bytes
* that make up the returned signature value.
* This is at most #PSA_HASH_FINAL_SIZE(alg)
* (note that it may be less).
*
* \retval PSA_SUCCESS
* \retval PSA_ERROR_BUFFER_TOO_SMALL