| 1 |
|
| 2 | |
| 3 | * geniv: IV generation
|
| 4 | *
|
| 5 | * Copyright (c) 2015 Herbert Xu <[email protected]>
|
| 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
|