[CRYPTO] hmac: Fix hmac_init update call
[platform/kernel/linux-rpi.git] / crypto / hmac.c
index f403b69..d52b234 100644 (file)
@@ -98,7 +98,7 @@ static int hmac_init(struct hash_desc *pdesc)
        sg_set_buf(&tmp, ipad, bs);
 
        return unlikely(crypto_hash_init(&desc)) ?:
-              crypto_hash_update(&desc, &tmp, 1);
+              crypto_hash_update(&desc, &tmp, bs);
 }
 
 static int hmac_update(struct hash_desc *pdesc,