aboutsummaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index e41bf20..4a15491 100644
--- a/hash.c
+++ b/hash.c
@@ -191,7 +191,7 @@ static hal_error_t hash_do_hash(hash_state_t *state, /* Opaqu
(data_buffer_length > 0 && data_buffer == NULL) ||
(data_buffer_length == 0 && digest_buffer == NULL) ||
(digest_buffer != NULL && digest_buffer_length < digest_length))
- return HAL_ERROR_INCONSISTENT_ARGS;
+ return HAL_ERROR_BAD_ARGUMENTS;
if (state->block_length == 0)
state->block_length = block_length;