/* SPDX-License-Identifier: GPL-2.0-or-later */1/*2* geniv: IV generation3*4* Copyright (c) 2015 Herbert Xu <[email protected]>5*/67#ifndef _CRYPTO_INTERNAL_GENIV_H8#define _CRYPTO_INTERNAL_GENIV_H910#include <crypto/internal/aead.h>11#include <linux/spinlock.h>12#include <linux/types.h>1314struct aead_geniv_ctx {15spinlock_t lock;16struct crypto_aead *child;17u8 salt[] __attribute__ ((aligned(__alignof__(u32))));18};1920struct aead_instance *aead_geniv_alloc(struct crypto_template *tmpl,21struct rtattr **tb);22int aead_init_geniv(struct crypto_aead *tfm);23void aead_exit_geniv(struct crypto_aead *tfm);2425#endif /* _CRYPTO_INTERNAL_GENIV_H */262728