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

Commit 193188e5 authored by Cristian Stoica's avatar Cristian Stoica Committed by Herbert Xu
Browse files

crypto: chacha20poly1305 - export CHACHAPOLY_IV_SIZE



Move CHACHAPOLY_IV_SIZE to header file, so it can be reused.

Signed-off-by: default avatarCristian Stoica <cristian.stoica@nxp.com>
Signed-off-by: default avatarHoria Geantă <horia.geanta@nxp.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent c99d4a24
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -22,8 +22,6 @@

#include "internal.h"

#define CHACHAPOLY_IV_SIZE	12

struct chachapoly_instance_ctx {
	struct crypto_skcipher_spawn chacha;
	struct crypto_ahash_spawn poly;
+1 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@
#define CHACHA20_IV_SIZE	16
#define CHACHA20_KEY_SIZE	32
#define CHACHA20_BLOCK_SIZE	64
#define CHACHAPOLY_IV_SIZE	12

struct chacha20_ctx {
	u32 key[8];