• Home
  • Raw
  • Download

Lines Matching refs:walk

348 	struct skcipher_walk walk;  in ecb_aes_encrypt()  local
354 err = skcipher_walk_virt(&walk, req, false); in ecb_aes_encrypt()
356 while ((nbytes = walk.nbytes) != 0) { in ecb_aes_encrypt()
357 padlock_xcrypt_ecb(walk.src.virt.addr, walk.dst.virt.addr, in ecb_aes_encrypt()
361 err = skcipher_walk_done(&walk, nbytes); in ecb_aes_encrypt()
373 struct skcipher_walk walk; in ecb_aes_decrypt() local
379 err = skcipher_walk_virt(&walk, req, false); in ecb_aes_decrypt()
381 while ((nbytes = walk.nbytes) != 0) { in ecb_aes_decrypt()
382 padlock_xcrypt_ecb(walk.src.virt.addr, walk.dst.virt.addr, in ecb_aes_decrypt()
386 err = skcipher_walk_done(&walk, nbytes); in ecb_aes_decrypt()
413 struct skcipher_walk walk; in cbc_aes_encrypt() local
419 err = skcipher_walk_virt(&walk, req, false); in cbc_aes_encrypt()
421 while ((nbytes = walk.nbytes) != 0) { in cbc_aes_encrypt()
422 u8 *iv = padlock_xcrypt_cbc(walk.src.virt.addr, in cbc_aes_encrypt()
423 walk.dst.virt.addr, ctx->E, in cbc_aes_encrypt()
424 walk.iv, &ctx->cword.encrypt, in cbc_aes_encrypt()
426 memcpy(walk.iv, iv, AES_BLOCK_SIZE); in cbc_aes_encrypt()
428 err = skcipher_walk_done(&walk, nbytes); in cbc_aes_encrypt()
440 struct skcipher_walk walk; in cbc_aes_decrypt() local
446 err = skcipher_walk_virt(&walk, req, false); in cbc_aes_decrypt()
448 while ((nbytes = walk.nbytes) != 0) { in cbc_aes_decrypt()
449 padlock_xcrypt_cbc(walk.src.virt.addr, walk.dst.virt.addr, in cbc_aes_decrypt()
450 ctx->D, walk.iv, &ctx->cword.decrypt, in cbc_aes_decrypt()
453 err = skcipher_walk_done(&walk, nbytes); in cbc_aes_decrypt()