3 /**********************************************************************
5 * Copyright (c) 2005-2006 Cryptocom LTD *
6 * This file is distributed under the same license as OpenSSL *
8 * Declaration of GOST R 34.11 bindings to OpenSSL *
10 * Requires OpenSSL 0.9.9 for compilation *
11 **********************************************************************/
13 #include <openssl/err.h>
14 #include <openssl/evp.h>
21 /* Structure used as EVP_MD_CTX-md_data.
22 * It allows to avoid storing in the md-data pointers to
23 * dynamically allocated memory.
25 * I cannot invent better way to avoid memory leaks, because
26 * openssl insist on invoking Init on Final-ed digests, and there
27 * is no reliable way to find out whether pointer in the passed
28 * md_data is valid or not.
30 struct ossl_gost_digest_ctx {
35 extern EVP_MD digest_gost;