]>
Commit | Line | Data |
---|---|---|
2b9b579a | 1 | /* |
19ef2aec | 2 | * Copyright (C) 2022 Tobias Brunner |
2b9b579a | 3 | * |
19ef2aec | 4 | * Copyright (C) secunet Security Networks AG |
2b9b579a | 5 | * |
19ef2aec TB |
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>. | |
2b9b579a | 10 | * |
19ef2aec TB |
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. | |
2b9b579a TB |
15 | */ |
16 | ||
17 | /** | |
18 | * Implements key derivation functions (KDF) via OpenSSL, in particular prf+, | |
19 | * which is implemented via OpenSSL's HKDF implementation. | |
20 | * | |
21 | * @defgroup openssl_kdf openssl_kdf | |
22 | * @{ @ingroup openssl_p | |
23 | */ | |
24 | ||
25 | #ifndef OPENSSL_KDF_H_ | |
26 | #define OPENSSL_KDF_H_ | |
27 | ||
28 | #include <crypto/kdfs/kdf.h> | |
29 | ||
30 | /** | |
31 | * Creates a new kdf_t object. | |
32 | * | |
33 | * @param algo algorithm to instantiate | |
34 | * @param args algorithm-specific arguments | |
35 | * @return kdf_t object, NULL if not supported | |
36 | */ | |
37 | kdf_t *openssl_kdf_create(key_derivation_function_t algo, va_list args); | |
38 | ||
39 | #endif /** OPENSSL_KDF_H_ @}*/ |