From 8484565f856c2722bfaae27bb546eda5928bbefc Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Wed, 28 Mar 2018 14:17:40 +0200 Subject: [PATCH] Minor errors in documentation around asymmetric signature --- include/psa/crypto.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/psa/crypto.h b/include/psa/crypto.h index 44cc7cc05..d4ebcba23 100644 --- a/include/psa/crypto.h +++ b/include/psa/crypto.h @@ -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