Lines Matching refs:blocksize
661 unsigned int blocksize = crypto_tfm_alg_blocksize(tfm); in handle_ahash_req() local
742 rem = chunksize % blocksize; /* remainder */ in handle_ahash_req()
792 blocksize); in handle_ahash_req()
902 unsigned int blocksize = in spu_hmac_outer_hash() local
908 rc = do_shash("md5", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash()
912 rc = do_shash("sha1", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash()
916 rc = do_shash("sha224", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash()
920 rc = do_shash("sha256", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash()
924 rc = do_shash("sha384", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash()
928 rc = do_shash("sha512", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash()
1002 unsigned int blocksize = in handle_ahash_resp() local
1012 __func__, blocksize, ctx->digestsize); in handle_ahash_resp()
2322 unsigned int blocksize = in ahash_hmac_setkey() local
2329 __func__, ahash, key, keylen, blocksize, digestsize); in ahash_hmac_setkey()
2332 if (keylen > blocksize) { in ahash_hmac_setkey()
2400 blocksize - ctx->authkeylen); in ahash_hmac_setkey()
2402 memcpy(ctx->opad, ctx->ipad, blocksize); in ahash_hmac_setkey()
2404 for (index = 0; index < blocksize; index++) { in ahash_hmac_setkey()
2409 flow_dump(" ipad: ", ctx->ipad, blocksize); in ahash_hmac_setkey()
2410 flow_dump(" opad: ", ctx->opad, blocksize); in ahash_hmac_setkey()
2423 unsigned int blocksize = in ahash_hmac_init() local
2436 memcpy(rctx->hash_carry, ctx->ipad, blocksize); in ahash_hmac_init()
2437 rctx->hash_carry_len = blocksize; in ahash_hmac_init()
2438 rctx->total_todo += blocksize; in ahash_hmac_init()
2473 unsigned int blocksize = in ahash_hmac_digest() local
2496 memcpy(rctx->hash_carry, ctx->ipad, blocksize); in ahash_hmac_digest()
2497 rctx->hash_carry_len = blocksize; in ahash_hmac_digest()
2498 rctx->total_todo += blocksize; in ahash_hmac_digest()
4188 unsigned int blocksize = crypto_tfm_alg_blocksize(tfm); in generic_cra_init() local
4198 blocksize); in generic_cra_init()