stroke: List registered KDFs
This commit is contained in:
@@ -849,6 +849,7 @@ static void list_algs(FILE *out)
|
|||||||
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;
|
||||||
@@ -905,6 +906,14 @@ static void list_algs(FILE *out)
|
|||||||
print_alg(out, &len, ext_out_function_names, xof, plugin_name);
|
print_alg(out, &len, ext_out_function_names, xof, plugin_name);
|
||||||
}
|
}
|
||||||
enumerator->destroy(enumerator);
|
enumerator->destroy(enumerator);
|
||||||
|
fprintf(out, "\n kdf: ");
|
||||||
|
len = 13;
|
||||||
|
enumerator = lib->crypto->create_kdf_enumerator(lib->crypto);
|
||||||
|
while (enumerator->enumerate(enumerator, &kdf, &plugin_name))
|
||||||
|
{
|
||||||
|
print_alg(out, &len, key_derivation_function_names, kdf, plugin_name);
|
||||||
|
}
|
||||||
|
enumerator->destroy(enumerator);
|
||||||
fprintf(out, "\n drbg: ");
|
fprintf(out, "\n drbg: ");
|
||||||
len = 13;
|
len = 13;
|
||||||
enumerator = lib->crypto->create_drbg_enumerator(lib->crypto);
|
enumerator = lib->crypto->create_drbg_enumerator(lib->crypto);
|
||||||
|
|||||||
Reference in New Issue
Block a user