if (ops)
{
ops->destroy(ops);
- lib->crypto->add_crypter(lib->crypto, algs[i].id, "af_alg",
+ lib->crypto->add_crypter(lib->crypto, algs[i].id, af_alg_plugin_name,
(crypter_constructor_t)af_alg_crypter_create);
}
}
if (ops)
{
ops->destroy(ops);
- lib->crypto->add_hasher(lib->crypto, algs[i].id, "af_alg",
+ lib->crypto->add_hasher(lib->crypto, algs[i].id, af_alg_plugin_name,
(hasher_constructor_t)af_alg_hasher_create);
}
}
#include <debug.h>
+const char *af_alg_plugin_name = "af-alg";
+
typedef struct private_af_alg_ops_t private_af_alg_ops_t;
/**
#define SOL_ALG 279
#endif /* SOL_ALG */
+extern const char *af_alg_plugin_name;
+
typedef struct af_alg_ops_t af_alg_ops_t;
/**
if (ops)
{
ops->destroy(ops);
- lib->crypto->add_prf(lib->crypto, algs[i].id, "af_alg",
+ lib->crypto->add_prf(lib->crypto, algs[i].id, af_alg_plugin_name,
(prf_constructor_t)af_alg_prf_create);
}
}
if (ops)
{
ops->destroy(ops);
- lib->crypto->add_signer(lib->crypto, algs[i].id, "af_alg",
+ lib->crypto->add_signer(lib->crypto, algs[i].id, af_alg_plugin_name,
(signer_constructor_t)af_alg_signer_create);
}
}
#include <library.h>
#include "fips_prf.h"
-static const char *plugin_name = "fips_prf";
+static const char *plugin_name = "fips-prf";
typedef struct private_fips_prf_plugin_t private_fips_prf_plugin_t;