X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=providers%2Fdefault%2Fdefltprov.c;h=3f2ad610a9080854713291d6c0de246dbbba2d0c;hp=c481171a789378e8c16e0111a431a3906f57f8c2;hb=69333af49d8ddba6b551506ddbbccea73aee4a6b;hpb=cb1548bc5f207978f6ba287040eaea25c34b5786 diff --git a/providers/default/defltprov.c b/providers/default/defltprov.c index c481171a78..3f2ad610a9 100644 --- a/providers/default/defltprov.c +++ b/providers/default/defltprov.c @@ -211,6 +211,22 @@ static const OSSL_ALGORITHM deflt_macs[] = { { NULL, NULL, NULL } }; +static const OSSL_ALGORITHM deflt_kdfs[] = { + { OSSL_KDF_NAME_HKDF, "default=yes", kdf_hkdf_functions }, + { OSSL_KDF_NAME_SSKDF, "default=yes", kdf_sskdf_functions }, + { OSSL_KDF_NAME_PBKDF2, "default=yes", kdf_pbkdf2_functions }, + { OSSL_KDF_NAME_SSHKDF, "default=yes", kdf_sshkdf_functions }, + { OSSL_KDF_NAME_X963KDF, "default=yes", kdf_x963_kdf_functions }, + { OSSL_KDF_NAME_TLS1_PRF, "default=yes", kdf_tls1_prf_functions }, +#ifndef OPENSSL_NO_CMS + { OSSL_KDF_NAME_X942KDF, "default=yes", kdf_x942_kdf_functions }, +#endif +#ifndef OPENSSL_NO_SCRYPT + { OSSL_KDF_NAME_SCRYPT, "default=yes", kdf_scrypt_functions }, +#endif + { NULL, NULL, NULL } +}; + static const OSSL_ALGORITHM deflt_keyexch[] = { #ifndef OPENSSL_NO_DH { "dhKeyAgreement", "default=yes", dh_keyexch_functions }, @@ -218,9 +234,20 @@ static const OSSL_ALGORITHM deflt_keyexch[] = { { NULL, NULL, NULL } }; +static const OSSL_ALGORITHM deflt_signature[] = { +#ifndef OPENSSL_NO_DSA + { "DSA", "default=yes", dsa_signature_functions }, +#endif + { NULL, NULL, NULL } +}; + + static const OSSL_ALGORITHM deflt_keymgmt[] = { #ifndef OPENSSL_NO_DH { "dhKeyAgreement", "default=yes", dh_keymgmt_functions }, +#endif +#ifndef OPENSSL_NO_DSA + { "DSA", "default=yes", dsa_keymgmt_functions }, #endif { NULL, NULL, NULL } }; @@ -237,10 +264,14 @@ static const OSSL_ALGORITHM *deflt_query(OSSL_PROVIDER *prov, return deflt_ciphers; case OSSL_OP_MAC: return deflt_macs; + case OSSL_OP_KDF: + return deflt_kdfs; case OSSL_OP_KEYMGMT: return deflt_keymgmt; case OSSL_OP_KEYEXCH: return deflt_keyexch; + case OSSL_OP_SIGNATURE: + return deflt_signature; } return NULL; }