trace back crypto algorithms to the plugins that registered them
This commit is contained in:
@@ -143,7 +143,7 @@ struct crypto_tester_t {
|
||||
*/
|
||||
bool (*test_crypter)(crypto_tester_t *this, encryption_algorithm_t alg,
|
||||
size_t key_size, crypter_constructor_t create,
|
||||
u_int *speed);
|
||||
u_int *speed, const char *plugin_name);
|
||||
|
||||
/**
|
||||
* Test an aead algorithm, optionally using a specified key size.
|
||||
@@ -156,7 +156,7 @@ struct crypto_tester_t {
|
||||
*/
|
||||
bool (*test_aead)(crypto_tester_t *this, encryption_algorithm_t alg,
|
||||
size_t key_size, aead_constructor_t create,
|
||||
u_int *speed);
|
||||
u_int *speed, const char *plugin_name);
|
||||
/**
|
||||
* Test a signer algorithm.
|
||||
*
|
||||
@@ -166,7 +166,8 @@ struct crypto_tester_t {
|
||||
* @return TRUE if test passed
|
||||
*/
|
||||
bool (*test_signer)(crypto_tester_t *this, integrity_algorithm_t alg,
|
||||
signer_constructor_t create, u_int *speed);
|
||||
signer_constructor_t create,
|
||||
u_int *speed, const char *plugin_name);
|
||||
/**
|
||||
* Test a hasher algorithm.
|
||||
*
|
||||
@@ -176,7 +177,8 @@ struct crypto_tester_t {
|
||||
* @return TRUE if test passed
|
||||
*/
|
||||
bool (*test_hasher)(crypto_tester_t *this, hash_algorithm_t alg,
|
||||
hasher_constructor_t create, u_int *speed);
|
||||
hasher_constructor_t create,
|
||||
u_int *speed, const char *plugin_name);
|
||||
/**
|
||||
* Test a PRF algorithm.
|
||||
*
|
||||
@@ -186,7 +188,8 @@ struct crypto_tester_t {
|
||||
* @return TRUE if test passed
|
||||
*/
|
||||
bool (*test_prf)(crypto_tester_t *this, pseudo_random_function_t alg,
|
||||
prf_constructor_t create, u_int *speed);
|
||||
prf_constructor_t create,
|
||||
u_int *speed, const char *plugin_name);
|
||||
/**
|
||||
* Test a RNG implementation.
|
||||
*
|
||||
@@ -196,7 +199,8 @@ struct crypto_tester_t {
|
||||
* @return TRUE if test passed
|
||||
*/
|
||||
bool (*test_rng)(crypto_tester_t *this, rng_quality_t quality,
|
||||
rng_constructor_t create, u_int *speed);
|
||||
rng_constructor_t create,
|
||||
u_int *speed, const char *plugin_name);
|
||||
/**
|
||||
* Add a test vector to test a crypter.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user