blob: 6775059539b56f2ffe870d28c4d2ab35821c013a [file] [log] [blame]
Herbert Xue236d4a2007-11-22 23:11:53 +08001/*
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
17enum {
18 CRYPTO_AUTHENC_KEYA_UNSPEC,
19 CRYPTO_AUTHENC_KEYA_PARAM,
20};
21
22struct crypto_authenc_key_param {
23 __be32 enckeylen;
24};
25
Mathias Krausebc6e2bd2013-10-15 13:49:30 +020026struct crypto_authenc_keys {
27 const u8 *authkey;
28 const u8 *enckey;
Herbert Xue236d4a2007-11-22 23:11:53 +080029
Mathias Krausebc6e2bd2013-10-15 13:49:30 +020030 unsigned int authkeylen;
31 unsigned int enckeylen;
32};
33
34int crypto_authenc_extractkeys(struct crypto_authenc_keys *keys, const u8 *key,
35 unsigned int keylen);
36
37#endif /* _CRYPTO_AUTHENC_H */