]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - include/crypto/authenc.h
scsi: target: iscsi: Wait for all commands to finish before freeing a session
[mirror_ubuntu-bionic-kernel.git] / include / crypto / authenc.h
1 /*
2 * Authenc: Simple AEAD wrapper for IPsec
3 *
4 * Copyright (c) 2007 Herbert Xu <herbert@gondor.apana.org.au>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 2 of the License, or (at your option)
9 * any later version.
10 *
11 */
12 #ifndef _CRYPTO_AUTHENC_H
13 #define _CRYPTO_AUTHENC_H
14
15 #include <linux/types.h>
16
17 enum {
18 CRYPTO_AUTHENC_KEYA_UNSPEC,
19 CRYPTO_AUTHENC_KEYA_PARAM,
20 };
21
22 struct crypto_authenc_key_param {
23 __be32 enckeylen;
24 };
25
26 struct crypto_authenc_keys {
27 const u8 *authkey;
28 const u8 *enckey;
29
30 unsigned int authkeylen;
31 unsigned int enckeylen;
32 };
33
34 int crypto_authenc_extractkeys(struct crypto_authenc_keys *keys, const u8 *key,
35 unsigned int keylen);
36
37 #endif /* _CRYPTO_AUTHENC_H */