X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_md2012.c;h=3ea1e3642855cb7644001d6e221d886ae198ec84;hb=a708a9784aa06d5daa8ee93aa2612d21ef748791;hp=3900e5a2dcae8a55019643520a95091b6d55b7f4;hpb=522de4bf0a1f1d14228034568dc6a3e74e2ffb08;p=openssl-gost%2Fengine.git diff --git a/gost_md2012.c b/gost_md2012.c index 3900e5a..3ea1e36 100644 --- a/gost_md2012.c +++ b/gost_md2012.c @@ -1,6 +1,7 @@ /********************************************************************** * gost_md2012.c * * Copyright (c) 2013 Cryptocom LTD. * + * Copyright (c) 2020 Vitaly Chikunov * * This file is distributed under the same license as OpenSSL * * * * GOST R 34.11-2012 interface to OpenSSL engine. * @@ -46,16 +47,6 @@ GOST_digest GostR3411_2012_256_digest = { .ctrl = gost_digest_ctrl_256, }; -EVP_MD *digest_gost2012_256(void) -{ - return GOST_init_digest(&GostR3411_2012_256_digest); -} - -void digest_gost2012_256_destroy(void) -{ - GOST_deinit_digest(&GostR3411_2012_256_digest); -} - GOST_digest GostR3411_2012_512_digest = { .nid = NID_id_GostR3411_2012_512, .alias = "streebog512", @@ -65,16 +56,6 @@ GOST_digest GostR3411_2012_512_digest = { .ctrl = gost_digest_ctrl_512, }; -EVP_MD *digest_gost2012_512(void) -{ - return GOST_init_digest(&GostR3411_2012_512_digest); -} - -void digest_gost2012_512_destroy(void) -{ - GOST_deinit_digest(&GostR3411_2012_512_digest); -} - static int gost_digest_init512(EVP_MD_CTX *ctx) { init_gost2012_hash_ctx((gost2012_hash_ctx *) EVP_MD_CTX_md_data(ctx),