Lines Matching refs:blocksize

806 	unsigned int blocksize;  in mv_cesa_ahash_export()  local
808 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_export()
812 memset(cache, 0, blocksize); in mv_cesa_ahash_export()
825 unsigned int blocksize; in mv_cesa_ahash_import() local
833 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_import()
834 if (len >= blocksize) in mv_cesa_ahash_import()
843 cache_ptr = do_div(len, blocksize); in mv_cesa_ahash_import()
1064 void *state, unsigned int blocksize) in mv_cesa_ahmac_iv_state_init() argument
1072 sg_init_one(&sg, pad, blocksize); in mv_cesa_ahmac_iv_state_init()
1073 ahash_request_set_crypt(req, &sg, pad, blocksize); in mv_cesa_ahmac_iv_state_init()
1098 unsigned int blocksize) in mv_cesa_ahmac_pad_init() argument
1105 if (keylen <= blocksize) { in mv_cesa_ahmac_pad_init()
1136 memset(ipad + keylen, 0, blocksize - keylen); in mv_cesa_ahmac_pad_init()
1137 memcpy(opad, ipad, blocksize); in mv_cesa_ahmac_pad_init()
1139 for (i = 0; i < blocksize; i++) { in mv_cesa_ahmac_pad_init()
1153 unsigned int blocksize; in mv_cesa_ahmac_setkey() local
1171 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in mv_cesa_ahmac_setkey()
1173 ipad = kzalloc(2 * blocksize, GFP_KERNEL); in mv_cesa_ahmac_setkey()
1179 opad = ipad + blocksize; in mv_cesa_ahmac_setkey()
1181 ret = mv_cesa_ahmac_pad_init(req, key, keylen, ipad, opad, blocksize); in mv_cesa_ahmac_setkey()
1185 ret = mv_cesa_ahmac_iv_state_init(req, ipad, istate, blocksize); in mv_cesa_ahmac_setkey()
1189 ret = mv_cesa_ahmac_iv_state_init(req, opad, ostate, blocksize); in mv_cesa_ahmac_setkey()