From 0d53de14d01e8e079e5b5b4e08ec6e9f063139cc Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 5 Apr 2021 08:08:10 +0200 Subject: 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. --- gost_lcl.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gost_lcl.h') 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); -- cgit v1.1