From 8d0bcf27ecf7a3864be9a19b8ce16fc3cfe469ff Mon Sep 17 00:00:00 2001 From: "Adrian L. Shaw" Date: Tue, 13 Aug 2019 11:36:29 +0100 Subject: [PATCH] Add PSA_ERROR_INVALID_ARGUMENT to psa_hash_compare --- include/psa/crypto.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/psa/crypto.h b/include/psa/crypto.h index 3ffe07b01..0ecc41ff2 100644 --- a/include/psa/crypto.h +++ b/include/psa/crypto.h @@ -859,6 +859,8 @@ psa_status_t psa_hash_compute(psa_algorithm_t alg, * differs from the expected hash. * \retval #PSA_ERROR_NOT_SUPPORTED * \p alg is not supported or is not a hash algorithm. + * \retval #PSA_ERROR_INVALID_ARGUMENT + * \p input_length or \p hash_length do not match the hash size for \p alg * \retval #PSA_ERROR_INSUFFICIENT_MEMORY * \retval #PSA_ERROR_COMMUNICATION_FAILURE * \retval #PSA_ERROR_HARDWARE_FAILURE