Add aead plugin features

This commit is contained in:
Martin Willi
2011-10-14 10:05:46 +02:00
parent 02572b84f9
commit 3cd28acce0
3 changed files with 26 additions and 0 deletions
@@ -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);