vici: Report registered KDFs
This commit is contained in:
@@ -1303,6 +1303,7 @@ CALLBACK(get_algorithms, vici_message_t*,
|
|||||||
hash_algorithm_t hash;
|
hash_algorithm_t hash;
|
||||||
pseudo_random_function_t prf;
|
pseudo_random_function_t prf;
|
||||||
ext_out_function_t xof;
|
ext_out_function_t xof;
|
||||||
|
key_derivation_function_t kdf;
|
||||||
drbg_type_t drbg;
|
drbg_type_t drbg;
|
||||||
diffie_hellman_group_t group;
|
diffie_hellman_group_t group;
|
||||||
rng_quality_t quality;
|
rng_quality_t quality;
|
||||||
@@ -1364,6 +1365,15 @@ CALLBACK(get_algorithms, vici_message_t*,
|
|||||||
enumerator->destroy(enumerator);
|
enumerator->destroy(enumerator);
|
||||||
b->end_section(b);
|
b->end_section(b);
|
||||||
|
|
||||||
|
b->begin_section(b, "kdf");
|
||||||
|
enumerator = lib->crypto->create_kdf_enumerator(lib->crypto);
|
||||||
|
while (enumerator->enumerate(enumerator, &kdf, &plugin_name))
|
||||||
|
{
|
||||||
|
add_algorithm(b, key_derivation_function_names, kdf, plugin_name);
|
||||||
|
}
|
||||||
|
enumerator->destroy(enumerator);
|
||||||
|
b->end_section(b);
|
||||||
|
|
||||||
b->begin_section(b, "drbg");
|
b->begin_section(b, "drbg");
|
||||||
enumerator = lib->crypto->create_drbg_enumerator(lib->crypto);
|
enumerator = lib->crypto->create_drbg_enumerator(lib->crypto);
|
||||||
while (enumerator->enumerate(enumerator, &drbg, &plugin_name))
|
while (enumerator->enumerate(enumerator, &drbg, &plugin_name))
|
||||||
|
|||||||
Reference in New Issue
Block a user