}
/* unmasked private key */
- const char *pk_param = get_gost_engine_param(GOST_PARAM_PK_PARAMS);
- if(pk_param != NULL && strcmp(pk_param, PK_WRAP_PARAM) == 0) {
+ const char *pk_format = get_gost_engine_param(GOST_PARAM_PK_FORMAT);
+ if(pk_format != NULL && strcmp(pk_format, PK_WRAP_PARAM) == 0) {
ASN1_STRING *octet = NULL;
int priv_len = 0;
unsigned char *priv_buf = NULL;
#include "gost_lcl.h"
static char *gost_params[GOST_PARAM_MAX + 1] = { NULL };
-static const char *gost_envnames[] = { "CRYPT_PARAMS", "GOST_PBE_HMAC", "PK_PARAMS" };
+static const char *gost_envnames[] = { "CRYPT_PARAMS", "GOST_PBE_HMAC", "GOST_PK_FORMAT" };
const ENGINE_CMD_DEFN gost_cmds[] = {
{GOST_CTRL_CRYPT_PARAMS,
"PBE_PARAMS",
"Shortname of default digest alg for PBE",
ENGINE_CMD_FLAG_STRING},
- {GOST_CTRL_PK_PARAMS,
- "PK_PARAMS",
+ {GOST_CTRL_PK_FORMAT,
+ "GOST_PK_FORMAT",
"Private key format params",
ENGINE_CMD_FLAG_STRING},
{0, NULL, NULL, 0}
/* Control commands */
# define GOST_PARAM_CRYPT_PARAMS 0
# define GOST_PARAM_PBE_PARAMS 1
-# define GOST_PARAM_PK_PARAMS 2
+# define GOST_PARAM_PK_FORMAT 2
# define GOST_PARAM_MAX 2
# define GOST_CTRL_CRYPT_PARAMS (ENGINE_CMD_BASE+GOST_PARAM_CRYPT_PARAMS)
# define GOST_CTRL_PBE_PARAMS (ENGINE_CMD_BASE+GOST_PARAM_PBE_PARAMS)
-# define GOST_CTRL_PK_PARAMS (ENGINE_CMD_BASE+GOST_PARAM_PK_PARAMS)
+# define GOST_CTRL_PK_FORMAT (ENGINE_CMD_BASE+GOST_PARAM_PK_FORMAT)
typedef struct R3410_ec {
int nid;