diff options
author | Richard Levitte <richard@levitte.org> | 2021-04-05 08:08:10 +0200 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@users.noreply.github.com> | 2021-10-11 19:34:09 +0300 |
commit | 0d53de14d01e8e079e5b5b4e08ec6e9f063139cc (patch) | |
tree | 9bb645b510faf4a06084c58138347684b75445f0 /gost_lcl.h | |
parent | dd645e71d12ec790dc6c2e1c44163e2683ae4c6a (diff) | |
download | gost-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |