vici: List drbgs in get_algorithms

This commit is contained in:
Andreas Steffen
2019-10-16 16:46:24 +02:00
parent 6d3a743d90
commit c738704ab6
+10
View File
@@ -1231,6 +1231,7 @@ CALLBACK(get_algorithms, vici_message_t*,
hash_algorithm_t hash;
pseudo_random_function_t prf;
ext_out_function_t xof;
drbg_type_t drbg;
diffie_hellman_group_t group;
rng_quality_t quality;
const char *plugin_name;
@@ -1291,6 +1292,15 @@ CALLBACK(get_algorithms, vici_message_t*,
enumerator->destroy(enumerator);
b->end_section(b);
b->begin_section(b, "drbg");
enumerator = lib->crypto->create_drbg_enumerator(lib->crypto);
while (enumerator->enumerate(enumerator, &drbg, &plugin_name))
{
add_algorithm(b, drbg_type_names, drbg, plugin_name);
}
enumerator->destroy(enumerator);
b->end_section(b);
b->begin_section(b, "dh");
enumerator = lib->crypto->create_dh_enumerator(lib->crypto);
while (enumerator->enumerate(enumerator, &group, &plugin_name))