Lines Matching refs:walk
76 struct skcipher_walk walk; in ecb_crypt() local
80 err = skcipher_walk_virt(&walk, req, false); in ecb_crypt()
82 while ((nbytes = walk.nbytes)) { in ecb_crypt()
83 u8 *wsrc = walk.src.virt.addr; in ecb_crypt()
84 u8 *wdst = walk.dst.virt.addr; in ecb_crypt()
110 err = skcipher_walk_done(&walk, nbytes); in ecb_crypt()
127 struct skcipher_walk *walk) in __cbc_encrypt() argument
130 unsigned int nbytes = walk->nbytes; in __cbc_encrypt()
131 u64 *src = (u64 *)walk->src.virt.addr; in __cbc_encrypt()
132 u64 *dst = (u64 *)walk->dst.virt.addr; in __cbc_encrypt()
133 u64 *iv = (u64 *)walk->iv; in __cbc_encrypt()
145 *(u64 *)walk->iv = *iv; in __cbc_encrypt()
153 struct skcipher_walk walk; in cbc_encrypt() local
157 err = skcipher_walk_virt(&walk, req, false); in cbc_encrypt()
159 while ((nbytes = walk.nbytes)) { in cbc_encrypt()
160 nbytes = __cbc_encrypt(ctx, &walk); in cbc_encrypt()
161 err = skcipher_walk_done(&walk, nbytes); in cbc_encrypt()
168 struct skcipher_walk *walk) in __cbc_decrypt() argument
171 unsigned int nbytes = walk->nbytes; in __cbc_decrypt()
172 u64 *src = (u64 *)walk->src.virt.addr; in __cbc_decrypt()
173 u64 *dst = (u64 *)walk->dst.virt.addr; in __cbc_decrypt()
224 *dst ^= *(u64 *)walk->iv; in __cbc_decrypt()
225 *(u64 *)walk->iv = last_iv; in __cbc_decrypt()
234 struct skcipher_walk walk; in cbc_decrypt() local
238 err = skcipher_walk_virt(&walk, req, false); in cbc_decrypt()
240 while ((nbytes = walk.nbytes)) { in cbc_decrypt()
241 nbytes = __cbc_decrypt(ctx, &walk); in cbc_decrypt()
242 err = skcipher_walk_done(&walk, nbytes); in cbc_decrypt()