/**********************************************************************
* gost_md2012.c *
* Copyright (c) 2013 Cryptocom LTD. *
+ * Copyright (c) 2020 Vitaly Chikunov <vt@altlinux.org> *
* This file is distributed under the same license as OpenSSL *
* *
* GOST R 34.11-2012 interface to OpenSSL engine. *
.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",
.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),