aboutsummaryrefslogtreecommitdiff
path: root/gost_lcl.h
diff options
context:
space:
mode:
authorRichard Levitte <richard@levitte.org>2021-04-05 08:08:10 +0200
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>2021-10-11 19:34:09 +0300
commit0d53de14d01e8e079e5b5b4e08ec6e9f063139cc (patch)
tree9bb645b510faf4a06084c58138347684b75445f0 /gost_lcl.h
parentdd645e71d12ec790dc6c2e1c44163e2683ae4c6a (diff)
downloadgost-engine-0d53de14d01e8e079e5b5b4e08ec6e9f063139cc.zip
gost-engine-0d53de14d01e8e079e5b5b4e08ec6e9f063139cc.tar.gz
gost-engine-0d53de14d01e8e079e5b5b4e08ec6e9f063139cc.tar.bz2
Making a gost provider - Add the macs
We add the macs for the provider as wrappers around the EVP_MD implementations designed for ENGINEs. This is not the most elegant, but it does the job. When an algorithm has an OID, it's included in the OSSL_ALGORITHM name as an alias. This is the way to avoid having to register the OIDs in OpenSSL proper.
Diffstat (limited to 'gost_lcl.h')
-rw-r--r--gost_lcl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gost_lcl.h b/gost_lcl.h
index 0e544ee..e785404 100644
--- a/gost_lcl.h
+++ b/gost_lcl.h
@@ -53,6 +53,10 @@ void gost_param_free(void);
/* method registration */
+/* Provider implementation data */
+extern const OSSL_ALGORITHM GOST_prov_macs[];
+void GOST_prov_deinit_mac_digests(void);
+
int register_ameth_gost(int nid, EVP_PKEY_ASN1_METHOD **ameth,
const char *pemstr, const char *info);
int register_pmeth_gost(int id, EVP_PKEY_METHOD **pmeth, int flags);