Add aead plugin features
This commit is contained in:
@@ -297,6 +297,7 @@ static bool load_feature(private_plugin_loader_t *this, plugin_entry_t *entry,
|
||||
switch (feature->type)
|
||||
{
|
||||
case FEATURE_CRYPTER:
|
||||
case FEATURE_AEAD:
|
||||
case FEATURE_SIGNER:
|
||||
case FEATURE_HASHER:
|
||||
case FEATURE_PRF:
|
||||
@@ -340,6 +341,10 @@ static bool load_feature(private_plugin_loader_t *this, plugin_entry_t *entry,
|
||||
lib->crypto->add_crypter(lib->crypto, feature->crypter.alg,
|
||||
name, reg->reg.f);
|
||||
break;
|
||||
case FEATURE_AEAD:
|
||||
lib->crypto->add_aead(lib->crypto, feature->aead.alg,
|
||||
name, reg->reg.f);
|
||||
break;
|
||||
case FEATURE_SIGNER:
|
||||
lib->crypto->add_signer(lib->crypto, feature->signer,
|
||||
name, reg->reg.f);
|
||||
|
||||
Reference in New Issue
Block a user