Lines Matching refs:walk

223 	struct skcipher_walk walk;  in ecb_encrypt()  local
227 err = skcipher_walk_virt(&walk, req, true); in ecb_encrypt()
232 while ((nbytes = walk.nbytes) != 0) { in ecb_encrypt()
233 ctx->ops->ecb_encrypt(&ctx->key[0], walk.src.virt.addr, in ecb_encrypt()
234 walk.dst.virt.addr, in ecb_encrypt()
236 err = skcipher_walk_done(&walk, nbytes % AES_BLOCK_SIZE); in ecb_encrypt()
247 struct skcipher_walk walk; in ecb_decrypt() local
251 err = skcipher_walk_virt(&walk, req, true); in ecb_decrypt()
257 while ((nbytes = walk.nbytes) != 0) { in ecb_decrypt()
258 ctx->ops->ecb_decrypt(key_end, walk.src.virt.addr, in ecb_decrypt()
259 walk.dst.virt.addr, in ecb_decrypt()
261 err = skcipher_walk_done(&walk, nbytes % AES_BLOCK_SIZE); in ecb_decrypt()
272 struct skcipher_walk walk; in cbc_encrypt() local
276 err = skcipher_walk_virt(&walk, req, true); in cbc_encrypt()
281 while ((nbytes = walk.nbytes) != 0) { in cbc_encrypt()
282 ctx->ops->cbc_encrypt(&ctx->key[0], walk.src.virt.addr, in cbc_encrypt()
283 walk.dst.virt.addr, in cbc_encrypt()
285 walk.iv); in cbc_encrypt()
286 err = skcipher_walk_done(&walk, nbytes % AES_BLOCK_SIZE); in cbc_encrypt()
297 struct skcipher_walk walk; in cbc_decrypt() local
301 err = skcipher_walk_virt(&walk, req, true); in cbc_decrypt()
307 while ((nbytes = walk.nbytes) != 0) { in cbc_decrypt()
308 ctx->ops->cbc_decrypt(key_end, walk.src.virt.addr, in cbc_decrypt()
309 walk.dst.virt.addr, in cbc_decrypt()
311 walk.iv); in cbc_decrypt()
312 err = skcipher_walk_done(&walk, nbytes % AES_BLOCK_SIZE); in cbc_decrypt()
320 struct skcipher_walk *walk) in ctr_crypt_final() argument
322 u8 *ctrblk = walk->iv; in ctr_crypt_final()
324 u8 *src = walk->src.virt.addr; in ctr_crypt_final()
325 u8 *dst = walk->dst.virt.addr; in ctr_crypt_final()
326 unsigned int nbytes = walk->nbytes; in ctr_crypt_final()
338 struct skcipher_walk walk; in ctr_crypt() local
342 err = skcipher_walk_virt(&walk, req, true); in ctr_crypt()
347 while ((nbytes = walk.nbytes) >= AES_BLOCK_SIZE) { in ctr_crypt()
348 ctx->ops->ctr_crypt(&ctx->key[0], walk.src.virt.addr, in ctr_crypt()
349 walk.dst.virt.addr, in ctr_crypt()
351 walk.iv); in ctr_crypt()
352 err = skcipher_walk_done(&walk, nbytes % AES_BLOCK_SIZE); in ctr_crypt()
354 if (walk.nbytes) { in ctr_crypt()
355 ctr_crypt_final(ctx, &walk); in ctr_crypt()
356 err = skcipher_walk_done(&walk, 0); in ctr_crypt()