Lines Matching refs:blocksize
816 unsigned int blocksize; in mv_cesa_ahash_export() local
818 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_export()
822 memset(cache, 0, blocksize); in mv_cesa_ahash_export()
834 unsigned int blocksize; in mv_cesa_ahash_import() local
842 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_import()
843 if (len >= blocksize) in mv_cesa_ahash_import()
852 cache_ptr = do_div(len, blocksize); in mv_cesa_ahash_import()
1092 void *state, unsigned int blocksize) in mv_cesa_ahmac_iv_state_init() argument
1100 sg_init_one(&sg, pad, blocksize); in mv_cesa_ahmac_iv_state_init()
1101 ahash_request_set_crypt(req, &sg, pad, blocksize); in mv_cesa_ahmac_iv_state_init()
1126 unsigned int blocksize) in mv_cesa_ahmac_pad_init() argument
1133 if (keylen <= blocksize) { in mv_cesa_ahmac_pad_init()
1164 memset(ipad + keylen, 0, blocksize - keylen); in mv_cesa_ahmac_pad_init()
1165 memcpy(opad, ipad, blocksize); in mv_cesa_ahmac_pad_init()
1167 for (i = 0; i < blocksize; i++) { in mv_cesa_ahmac_pad_init()
1181 unsigned int blocksize; in mv_cesa_ahmac_setkey() local
1199 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in mv_cesa_ahmac_setkey()
1201 ipad = kzalloc(2 * blocksize, GFP_KERNEL); in mv_cesa_ahmac_setkey()
1207 opad = ipad + blocksize; in mv_cesa_ahmac_setkey()
1209 ret = mv_cesa_ahmac_pad_init(req, key, keylen, ipad, opad, blocksize); in mv_cesa_ahmac_setkey()
1213 ret = mv_cesa_ahmac_iv_state_init(req, ipad, istate, blocksize); in mv_cesa_ahmac_setkey()
1217 ret = mv_cesa_ahmac_iv_state_init(req, opad, ostate, blocksize); in mv_cesa_ahmac_setkey()