Lines Matching refs:walk
102 struct scatter_walk walk; in ccm_calculate_auth_mac() local
118 scatterwalk_start(&walk, req->src); in ccm_calculate_auth_mac()
121 u32 n = scatterwalk_clamp(&walk, len); in ccm_calculate_auth_mac()
125 scatterwalk_start(&walk, sg_next(walk.sg)); in ccm_calculate_auth_mac()
126 n = scatterwalk_clamp(&walk, len); in ccm_calculate_auth_mac()
129 p = scatterwalk_map(&walk); in ccm_calculate_auth_mac()
141 scatterwalk_advance(&walk, n); in ccm_calculate_auth_mac()
142 scatterwalk_done(&walk, 0, len); in ccm_calculate_auth_mac()
150 struct skcipher_walk walk; in ccm_encrypt() local
163 err = skcipher_walk_aead_encrypt(&walk, req, false); in ccm_encrypt()
173 u32 tail = walk.nbytes % AES_BLOCK_SIZE; in ccm_encrypt()
175 if (walk.nbytes == walk.total) in ccm_encrypt()
178 ce_aes_ccm_encrypt(walk.dst.virt.addr, walk.src.virt.addr, in ccm_encrypt()
179 walk.nbytes - tail, ctx->key_enc, in ccm_encrypt()
180 num_rounds(ctx), mac, walk.iv); in ccm_encrypt()
182 if (walk.nbytes == walk.total) in ccm_encrypt()
187 if (walk.nbytes) { in ccm_encrypt()
188 err = skcipher_walk_done(&walk, tail); in ccm_encrypt()
191 if (unlikely(walk.nbytes)) in ccm_encrypt()
194 } while (walk.nbytes); in ccm_encrypt()
208 struct skcipher_walk walk; in ccm_decrypt() local
221 err = skcipher_walk_aead_decrypt(&walk, req, false); in ccm_decrypt()
231 u32 tail = walk.nbytes % AES_BLOCK_SIZE; in ccm_decrypt()
233 if (walk.nbytes == walk.total) in ccm_decrypt()
236 ce_aes_ccm_decrypt(walk.dst.virt.addr, walk.src.virt.addr, in ccm_decrypt()
237 walk.nbytes - tail, ctx->key_enc, in ccm_decrypt()
238 num_rounds(ctx), mac, walk.iv); in ccm_decrypt()
240 if (walk.nbytes == walk.total) in ccm_decrypt()
245 if (walk.nbytes) { in ccm_decrypt()
246 err = skcipher_walk_done(&walk, tail); in ccm_decrypt()
249 if (unlikely(walk.nbytes)) in ccm_decrypt()
252 } while (walk.nbytes); in ccm_decrypt()