xref: /linux/include/crypto/internal/geniv.h (revision aec2f682d47c54ef434b2d440992626d80b1ebdc)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * geniv: IV generation
4  *
5  * Copyright (c) 2015 Herbert Xu <herbert@gondor.apana.org.au>
6  */
7 
8 #ifndef _CRYPTO_INTERNAL_GENIV_H
9 #define _CRYPTO_INTERNAL_GENIV_H
10 
11 #include <crypto/internal/aead.h>
12 #include <linux/types.h>
13 
14 struct aead_geniv_ctx {
15 	struct crypto_aead *child;
16 	u8 salt[] __attribute__ ((aligned(__alignof__(u32))));
17 };
18 
19 struct aead_instance *aead_geniv_alloc(struct crypto_template *tmpl,
20 				       struct rtattr **tb);
21 int aead_init_geniv(struct crypto_aead *tfm);
22 void aead_exit_geniv(struct crypto_aead *tfm);
23 
24 #endif	/* _CRYPTO_INTERNAL_GENIV_H */
25