crypto-tester: Use the plugin feature key size to benchmark crypters/aeads
We previously didn't pass the key size during algorithm registration, but this resulted in benchmarking with the "default" key size the crypter uses when passing 0 as key size.
This commit is contained in:
@@ -437,10 +437,12 @@ bool plugin_feature_load(plugin_t *plugin, plugin_feature_t *feature,
|
||||
{
|
||||
case FEATURE_CRYPTER:
|
||||
lib->crypto->add_crypter(lib->crypto, feature->arg.crypter.alg,
|
||||
feature->arg.crypter.key_size,
|
||||
name, reg->arg.reg.f);
|
||||
break;
|
||||
case FEATURE_AEAD:
|
||||
lib->crypto->add_aead(lib->crypto, feature->arg.aead.alg,
|
||||
feature->arg.aead.key_size,
|
||||
name, reg->arg.reg.f);
|
||||
break;
|
||||
case FEATURE_SIGNER:
|
||||
|
||||
Reference in New Issue
Block a user