aboutsummaryrefslogtreecommitdiffstats
path: root/engines/ccgost/pmeth.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/ccgost/pmeth.h')
-rw-r--r--engines/ccgost/pmeth.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/engines/ccgost/pmeth.h b/engines/ccgost/pmeth.h
new file mode 100644
index 0000000000..a94f778f09
--- /dev/null
+++ b/engines/ccgost/pmeth.h
@@ -0,0 +1,26 @@
+#ifndef GOST_PMETH_H
+#define GOST_PMETH_H
+/**********************************************************************
+ * pmeth.h *
+ * Copyright (c) 2006 Cryptocom LTD *
+ * This file is distributed under the same license as OpenSSL *
+ * *
+ * Declaration of GOST PKEY context internal data *
+ * *
+ * Requires OpenSSL 0.9.9 for compilation *
+ **********************************************************************/
+#include <openssl/bn.h>
+#include <openssl/evp.h>
+
+/* Gost-specific control-function parameters */
+#define param_ctrl_string "paramset"
+#define EVP_PKEY_CTRL_GOST_PARAMSET (EVP_PKEY_ALG_CTRL+1)
+
+ struct gost_pmeth_data {
+ int sign_param_nid; /* Should be set whenever parameters are filled */
+ int crypt_param_nid;
+ EVP_PKEY *eph_seckey;
+ EVP_MD *md;
+ };
+
+#endif