a94f778f093b80addb280fc372856cf5306c1dae
[openssl.git] / engines / ccgost / pmeth.h
1 #ifndef GOST_PMETH_H
2 #define GOST_PMETH_H
3 /**********************************************************************
4  *                             pmeth.h                                *
5  *             Copyright (c) 2006 Cryptocom LTD                       *
6  *       This file is distributed under the same license as OpenSSL   *
7  *                                                                    *
8  *      Declaration of GOST PKEY context internal data                    *
9  *                                                                                                                                        *
10  *          Requires OpenSSL 0.9.9 for compilation                    *
11  **********************************************************************/
12 #include <openssl/bn.h>
13 #include <openssl/evp.h>
14
15 /* Gost-specific control-function parameters */
16 #define param_ctrl_string "paramset"
17 #define EVP_PKEY_CTRL_GOST_PARAMSET (EVP_PKEY_ALG_CTRL+1)
18
19         struct gost_pmeth_data {
20             int sign_param_nid; /* Should be set whenever parameters are filled */
21                 int crypt_param_nid;
22                 EVP_PKEY *eph_seckey;
23                 EVP_MD *md;
24         };
25
26 #endif