Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68d62c3c authored by Sami Tolvanen's avatar Sami Tolvanen
Browse files

ANDROID: crypto: aesni: fix function types for aesni_(enc|dec)



Use a prototype that matches the function pointer type to avoid CFI
failures.

Bug: 145297900
Change-Id: I64ac0a4c80e499b74e6416ce6d015f1afc4f0373
Signed-off-by: default avatarSami Tolvanen <samitolvanen@google.com>
parent 09ae6b7b
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -74,10 +74,8 @@ struct aesni_xts_ctx {

asmlinkage int aesni_set_key(struct crypto_aes_ctx *ctx, const u8 *in_key,
			     unsigned int key_len);
asmlinkage void aesni_enc(struct crypto_aes_ctx *ctx, u8 *out,
			  const u8 *in);
asmlinkage void aesni_dec(struct crypto_aes_ctx *ctx, u8 *out,
			  const u8 *in);
asmlinkage void aesni_enc(void *ctx, u8 *out, const u8 *in);
asmlinkage void aesni_dec(void *ctx, u8 *out, const u8 *in);
asmlinkage void aesni_ecb_enc(struct crypto_aes_ctx *ctx, u8 *out,
			      const u8 *in, unsigned int len);
asmlinkage void aesni_ecb_dec(struct crypto_aes_ctx *ctx, u8 *out,