int operation_id,
const int *no_cache)
{
+ switch (operation_id) {
+ case OSSL_OP_CIPHER:
+ return GOST_prov_ciphers;
+ case OSSL_OP_DIGEST:
+ return GOST_prov_digests;
+ case OSSL_OP_MAC:
+ return GOST_prov_macs;
+ }
return NULL;
}
/* The function that tears down this provider */
static void gost_teardown(void *vprovctx)
{
+ GOST_prov_deinit_ciphers();
+ GOST_prov_deinit_digests();
+ GOST_prov_deinit_mac_digests();
provider_ctx_free(vprovctx);
}
# define OSSL_provider_init GOST_provider_init
#endif
+OPENSSL_EXPORT
int OSSL_provider_init(const OSSL_CORE_HANDLE *core,
const OSSL_DISPATCH *in,
const OSSL_DISPATCH **out,