From 096abc4dc0dd1cabf2f5f3350727e9b1b401c290 Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Fri, 3 Feb 2023 18:33:23 +0000 Subject: [PATCH] Remove incorrect copied comment Signed-off-by: Paul Elliott --- library/psa_crypto.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 78d8702d0..2797291dc 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;