From fbf7f121f95be250d90690813f85924aa4dfe780 Mon Sep 17 00:00:00 2001 From: "Adrian L. Shaw" Date: Thu, 15 Aug 2019 13:34:51 +0100 Subject: [PATCH] Separate return codes for unsupported and invalid algorithms --- include/psa/crypto.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/psa/crypto.h b/include/psa/crypto.h index c5f2971e3..35fe5e33b 100644 --- a/include/psa/crypto.h +++ b/include/psa/crypto.h @@ -956,7 +956,9 @@ static psa_hash_operation_t psa_hash_operation_init(void); * \retval #PSA_SUCCESS * Success. * \retval #PSA_ERROR_NOT_SUPPORTED - * \p alg is not supported or is not a hash algorithm. + * \p alg is not a supported hash algorithm. + * \retval #PSA_ERROR_INVALID_ARGUMENT + * \p alg is not a hash algorithm. * \retval #PSA_ERROR_BAD_STATE * The operation state is not valid (already set up and not * subsequently completed).