Lines Matching refs:walk
69 struct skcipher_walk walk; in ecb_crypt() local
73 err = skcipher_walk_virt(&walk, req, false); in ecb_crypt()
75 while ((nbytes = walk.nbytes)) { in ecb_crypt()
76 u8 *wsrc = walk.src.virt.addr; in ecb_crypt()
77 u8 *wdst = walk.dst.virt.addr; in ecb_crypt()
104 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 (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()
222 *dst ^= *(u64 *)walk->iv; in __cbc_decrypt()
223 *(u64 *)walk->iv = last_iv; in __cbc_decrypt()
232 struct skcipher_walk walk; in cbc_decrypt() local
236 err = skcipher_walk_virt(&walk, req, false); in cbc_decrypt()
238 while (walk.nbytes) { in cbc_decrypt()
239 nbytes = __cbc_decrypt(ctx, &walk); in cbc_decrypt()
240 err = skcipher_walk_done(&walk, nbytes); in cbc_decrypt()