Lines Matching full:blocksize

846 	unsigned int blocksize;  in mv_cesa_ahash_export()  local
848 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_export()
852 memset(cache, 0, blocksize); in mv_cesa_ahash_export()
864 unsigned int blocksize; in mv_cesa_ahash_import() local
872 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_import()
873 if (len >= blocksize) in mv_cesa_ahash_import()
882 cache_ptr = do_div(len, blocksize); in mv_cesa_ahash_import()
1108 void *state, unsigned int blocksize) in mv_cesa_ahmac_iv_state_init() argument
1116 sg_init_one(&sg, pad, blocksize); in mv_cesa_ahmac_iv_state_init()
1117 ahash_request_set_crypt(req, &sg, pad, blocksize); in mv_cesa_ahmac_iv_state_init()
1139 unsigned int blocksize) in mv_cesa_ahmac_pad_init() argument
1146 if (keylen <= blocksize) { in mv_cesa_ahmac_pad_init()
1171 memset(ipad + keylen, 0, blocksize - keylen); in mv_cesa_ahmac_pad_init()
1172 memcpy(opad, ipad, blocksize); in mv_cesa_ahmac_pad_init()
1174 for (i = 0; i < blocksize; i++) { in mv_cesa_ahmac_pad_init()
1188 unsigned int blocksize; in mv_cesa_ahmac_setkey() local
1205 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in mv_cesa_ahmac_setkey()
1207 ipad = kcalloc(2, blocksize, GFP_KERNEL); in mv_cesa_ahmac_setkey()
1213 opad = ipad + blocksize; in mv_cesa_ahmac_setkey()
1215 ret = mv_cesa_ahmac_pad_init(req, key, keylen, ipad, opad, blocksize); in mv_cesa_ahmac_setkey()
1219 ret = mv_cesa_ahmac_iv_state_init(req, ipad, istate, blocksize); in mv_cesa_ahmac_setkey()
1223 ret = mv_cesa_ahmac_iv_state_init(req, opad, ostate, blocksize); in mv_cesa_ahmac_setkey()