Merge tag 'for-linus-20190706' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / include / crypto / authenc.h
blob5f92a986083c66e523bc0260315bc9e746cbbf4d
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Authenc: Simple AEAD wrapper for IPsec
5 * Copyright (c) 2007 Herbert Xu <herbert@gondor.apana.org.au>
6 */
7 #ifndef _CRYPTO_AUTHENC_H
8 #define _CRYPTO_AUTHENC_H
10 #include <linux/types.h>
12 enum {
13 CRYPTO_AUTHENC_KEYA_UNSPEC,
14 CRYPTO_AUTHENC_KEYA_PARAM,
17 struct crypto_authenc_key_param {
18 __be32 enckeylen;
21 struct crypto_authenc_keys {
22 const u8 *authkey;
23 const u8 *enckey;
25 unsigned int authkeylen;
26 unsigned int enckeylen;
29 int crypto_authenc_extractkeys(struct crypto_authenc_keys *keys, const u8 *key,
30 unsigned int keylen);
32 #endif /* _CRYPTO_AUTHENC_H */