openssl: Implement HMAC-based IKEv2 PRFs via OpenSSL's HKDF implementation

This commit is contained in:
Tobias Brunner
2022-04-14 19:02:56 +02:00
parent 0339ce34f6
commit e0fc786ecd
2 changed files with 47 additions and 9 deletions
@@ -658,6 +658,7 @@ METHOD(plugin_t, get_features, int,
#if OPENSSL_VERSION_NUMBER >= 0x10101000L
/* HKDF is available since 1.1.0, expand-only mode only since 1.1.1 */
PLUGIN_REGISTER(KDF, openssl_kdf_create),
PLUGIN_PROVIDE(KDF, KDF_PRF),
PLUGIN_PROVIDE(KDF, KDF_PRF_PLUS),
#endif
#endif /* OPENSSL_NO_HMAC */