From: Wenkai Lin linwenkai6@hisilicon.com
The auth key could be 0 bytes, remove the wrong judgment.
Signed-off-by: Wenkai Lin linwenkai6@hisilicon.com --- drv/isa_ce_sm3.c | 5 ----- 1 file changed, 5 deletions(-)
diff --git a/drv/isa_ce_sm3.c b/drv/isa_ce_sm3.c index 54c2a9e7..4ad21705 100644 --- a/drv/isa_ce_sm3.c +++ b/drv/isa_ce_sm3.c @@ -293,11 +293,6 @@ static int do_hmac_sm3_ce(struct wd_digest_msg *msg, __u8 *out_hmac) /* Use last output as the iv in current cycle */ iv = msg->out;
- if (!key_len) { - WD_ERR("invalid hmac key_len is 0!\n"); - return -WD_EINVAL; - } - block_type = get_hash_block_type(msg); switch(block_type) { case HASH_SINGLE_BLOCK: