Lines Matching refs:ivsize
84 int ivsize = crypto_skcipher_ivsize(cipher); in nitrox_cbc_cipher_callback() local
85 unsigned int start = skreq->cryptlen - ivsize; in nitrox_cbc_cipher_callback()
93 scatterwalk_map_and_copy(skreq->iv, skreq->dst, start, ivsize, in nitrox_cbc_cipher_callback()
98 ivsize, 0); in nitrox_cbc_cipher_callback()
100 memcpy(skreq->iv, nkreq->iv_out, ivsize); in nitrox_cbc_cipher_callback()
208 static int alloc_src_sglist(struct skcipher_request *skreq, int ivsize) in alloc_src_sglist() argument
215 ret = alloc_src_req_buf(nkreq, nents, ivsize); in alloc_src_sglist()
219 nitrox_creq_copy_iv(nkreq->src, skreq->iv, ivsize); in alloc_src_sglist()
220 nitrox_creq_set_src_sg(nkreq, nents, ivsize, skreq->src, in alloc_src_sglist()
226 static int alloc_dst_sglist(struct skcipher_request *skreq, int ivsize) in alloc_dst_sglist() argument
241 nitrox_creq_set_dst_sg(nkreq, nents, ivsize, skreq->dst, in alloc_dst_sglist()
252 int ivsize = crypto_skcipher_ivsize(cipher); in nitrox_skcipher_crypt() local
269 creq->gph.param2 = cpu_to_be16(ivsize); in nitrox_skcipher_crypt()
275 ret = alloc_src_sglist(skreq, ivsize); in nitrox_skcipher_crypt()
279 ret = alloc_dst_sglist(skreq, ivsize); in nitrox_skcipher_crypt()
294 int ivsize = crypto_skcipher_ivsize(cipher); in nitrox_cbc_decrypt() local
297 unsigned int start = skreq->cryptlen - ivsize; in nitrox_cbc_decrypt()
302 nkreq->iv_out = kmalloc(ivsize, flags); in nitrox_cbc_decrypt()
306 scatterwalk_map_and_copy(nkreq->iv_out, skreq->src, start, ivsize, 0); in nitrox_cbc_decrypt()
397 .ivsize = AES_BLOCK_SIZE,
416 .ivsize = AES_BLOCK_SIZE,
435 .ivsize = AES_BLOCK_SIZE,
454 .ivsize = AES_BLOCK_SIZE,
473 .ivsize = CTR_RFC3686_IV_SIZE,
492 .ivsize = AES_BLOCK_SIZE,
511 .ivsize = DES3_EDE_BLOCK_SIZE,
530 .ivsize = DES3_EDE_BLOCK_SIZE,