aes-glue.c (0337966d121ebebf73a1c346123e8112796e684e) aes-glue.c (45fe93dff2fb58b22de04c729f8447ba0f773d93)
1/*
2 * linux/arch/arm64/crypto/aes-glue.c - wrapper code for ARMv8 AES
3 *
4 * Copyright (C) 2013 - 2017 Linaro Ltd <ard.biesheuvel@linaro.org>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 227 unchanged lines hidden (view full) ---

236
237 /*
238 * Tell aes_ctr_encrypt() to process a tail block.
239 */
240 blocks = -1;
241
242 aes_ctr_encrypt(tail, NULL, (u8 *)ctx->key_enc, rounds,
243 blocks, walk.iv, first);
1/*
2 * linux/arch/arm64/crypto/aes-glue.c - wrapper code for ARMv8 AES
3 *
4 * Copyright (C) 2013 - 2017 Linaro Ltd <ard.biesheuvel@linaro.org>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 227 unchanged lines hidden (view full) ---

236
237 /*
238 * Tell aes_ctr_encrypt() to process a tail block.
239 */
240 blocks = -1;
241
242 aes_ctr_encrypt(tail, NULL, (u8 *)ctx->key_enc, rounds,
243 blocks, walk.iv, first);
244 if (tdst != tsrc)
245 memcpy(tdst, tsrc, nbytes);
246 crypto_xor(tdst, tail, nbytes);
244 crypto_xor_cpy(tdst, tsrc, tail, nbytes);
247 err = skcipher_walk_done(&walk, 0);
248 }
249 kernel_neon_end();
250
251 return err;
252}
253
254static int xts_encrypt(struct skcipher_request *req)

--- 399 unchanged lines hidden ---
245 err = skcipher_walk_done(&walk, 0);
246 }
247 kernel_neon_end();
248
249 return err;
250}
251
252static int xts_encrypt(struct skcipher_request *req)

--- 399 unchanged lines hidden ---