Lines Matching refs:bs
38 int bs = crypto_shash_blocksize(parent); in hmac_setkey() local
53 if (keylen > bs) { in hmac_setkey()
64 memset(ipad + keylen, 0, bs - keylen); in hmac_setkey()
65 memcpy(opad, ipad, bs); in hmac_setkey()
67 for (i = 0; i < bs; i++) { in hmac_setkey()
73 crypto_shash_update(shash, ipad, bs) ?: in hmac_setkey()
76 crypto_shash_update(shash, opad, bs) ?: in hmac_setkey()
257 int bs = crypto_ahash_blocksize(parent); in hmac_setkey_ahash() local
269 if (keylen > bs) { in hmac_setkey_ahash()
279 memset(ipad + keylen, 0, bs - keylen); in hmac_setkey_ahash()
280 memcpy(opad, ipad, bs); in hmac_setkey_ahash()
282 for (i = 0; i < bs; i++) { in hmac_setkey_ahash()
287 ahash_request_set_virt(req, ipad, NULL, bs); in hmac_setkey_ahash()
292 ahash_request_set_virt(req, opad, NULL, bs); in hmac_setkey_ahash()