diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 78d8702d07..2797291dc8 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -3246,10 +3246,8 @@ psa_status_t psa_sign_hash_complete( goto exit; } - /* Immediately reject a zero-length signature buffer. This guarantees - * that signature must be a valid pointer. (On the other hand, the input - * buffer can in principle be empty since it doesn't actually have - * to be a hash.) */ + /* Immediately reject a zero-length signature buffer. This guarantees that + * signature must be a valid pointer. */ if (signature_size == 0) { status = PSA_ERROR_BUFFER_TOO_SMALL; goto exit;