Lines Matching refs:walk
77 struct skcipher_walk walk; in ecb_crypt() local
81 err = skcipher_walk_virt(&walk, req, false); in ecb_crypt()
83 while ((nbytes = walk.nbytes)) { in ecb_crypt()
84 u8 *wsrc = walk.src.virt.addr; in ecb_crypt()
85 u8 *wdst = walk.dst.virt.addr; in ecb_crypt()
112 err = skcipher_walk_done(&walk, nbytes); in ecb_crypt()
135 struct skcipher_walk *walk) in __cbc_encrypt() argument
138 unsigned int nbytes = walk->nbytes; in __cbc_encrypt()
139 u64 *src = (u64 *)walk->src.virt.addr; in __cbc_encrypt()
140 u64 *dst = (u64 *)walk->dst.virt.addr; in __cbc_encrypt()
141 u64 *iv = (u64 *)walk->iv; in __cbc_encrypt()
153 *(u64 *)walk->iv = *iv; in __cbc_encrypt()
161 struct skcipher_walk walk; in cbc_encrypt() local
165 err = skcipher_walk_virt(&walk, req, false); in cbc_encrypt()
167 while ((nbytes = walk.nbytes)) { in cbc_encrypt()
168 nbytes = __cbc_encrypt(ctx, &walk); in cbc_encrypt()
169 err = skcipher_walk_done(&walk, nbytes); in cbc_encrypt()
176 struct skcipher_walk *walk) in __cbc_decrypt() argument
179 unsigned int nbytes = walk->nbytes; in __cbc_decrypt()
180 u64 *src = (u64 *)walk->src.virt.addr; in __cbc_decrypt()
181 u64 *dst = (u64 *)walk->dst.virt.addr; in __cbc_decrypt()
230 *dst ^= *(u64 *)walk->iv; in __cbc_decrypt()
231 *(u64 *)walk->iv = last_iv; in __cbc_decrypt()
240 struct skcipher_walk walk; in cbc_decrypt() local
244 err = skcipher_walk_virt(&walk, req, false); in cbc_decrypt()
246 while ((nbytes = walk.nbytes)) { in cbc_decrypt()
247 nbytes = __cbc_decrypt(ctx, &walk); in cbc_decrypt()
248 err = skcipher_walk_done(&walk, nbytes); in cbc_decrypt()