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()
170 while (walk.nbytes) { in ccm_encrypt()
171 u32 tail = walk.nbytes % AES_BLOCK_SIZE; in ccm_encrypt()
172 bool final = walk.nbytes == walk.total; in ccm_encrypt()
177 ce_aes_ccm_encrypt(walk.dst.virt.addr, walk.src.virt.addr, in ccm_encrypt()
178 walk.nbytes - tail, ctx->key_enc, in ccm_encrypt()
179 num_rounds(ctx), mac, walk.iv); in ccm_encrypt()
183 err = skcipher_walk_done(&walk, tail); in ccm_encrypt()
204 struct skcipher_walk walk; in ccm_decrypt() local
217 err = skcipher_walk_aead_decrypt(&walk, req, false); in ccm_decrypt()
224 while (walk.nbytes) { in ccm_decrypt()
225 u32 tail = walk.nbytes % AES_BLOCK_SIZE; in ccm_decrypt()
226 bool final = walk.nbytes == walk.total; in ccm_decrypt()
231 ce_aes_ccm_decrypt(walk.dst.virt.addr, walk.src.virt.addr, in ccm_decrypt()
232 walk.nbytes - tail, ctx->key_enc, in ccm_decrypt()
233 num_rounds(ctx), mac, walk.iv); in ccm_decrypt()
237 err = skcipher_walk_done(&walk, tail); in ccm_decrypt()