]>
Commit | Line | Data |
---|---|---|
81f9cd39 | 1 | /* |
8fc6b2d0 | 2 | * Copyright (C) 2013-2019 Tobias Brunner |
19ef2aec TB |
3 | * |
4 | * Copyright (C) secunet Security Networks AG | |
81f9cd39 TB |
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 | |
8 | * Free Software Foundation; either version 2 of the License, or (at your | |
9 | * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. | |
10 | * | |
11 | * This program is distributed in the hope that it will be useful, but | |
12 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
13 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
14 | * for more details. | |
15 | */ | |
16 | ||
17 | /** | |
8fc6b2d0 | 18 | * Implements the aead_t interface using OpenSSL. |
81f9cd39 | 19 | * |
8fc6b2d0 | 20 | * @defgroup openssl_aead openssl_aead |
81f9cd39 TB |
21 | * @{ @ingroup openssl_p |
22 | */ | |
23 | ||
8fc6b2d0 TB |
24 | #ifndef OPENSSL_AEAD_H_ |
25 | #define OPENSSL_AEAD_H_ | |
81f9cd39 TB |
26 | |
27 | #include <crypto/aead.h> | |
28 | ||
29 | /** | |
30 | * Constructor to create aead_t implementation. | |
31 | * | |
32 | * @param algo algorithm to implement | |
33 | * @param key_size key size in bytes | |
e5d73b0d | 34 | * @param salt_size size of implicit salt length |
81f9cd39 TB |
35 | * @return aead_t object, NULL if not supported |
36 | */ | |
8fc6b2d0 | 37 | aead_t *openssl_aead_create(encryption_algorithm_t algo, size_t key_size, |
e5d73b0d | 38 | size_t salt_size); |
81f9cd39 | 39 | |
8fc6b2d0 | 40 | #endif /** OPENSSL_AEAD_H_ @}*/ |