On Fri, Jul 27, 2012 at 9:00 AM, Abyss Lingvo <xidex...@yahoo.com> wrote: > Hi all! > > The last problem is how to create GOST key pair for certificate. > It is clear how to create RSA keys. > Sample is here : http://www.openssl.org/docs/crypto/EVP_PKEY_keygen.html > > #include <openssl/evp.h> > #include <openssl/rsa.h> > EVP_PKEY_CTX *ctx; > EVP_PKEY *pkey = NULL; > ctx = EVP_PKEY_CTX_new_id(EVP_PKEY_RSA, NULL); > if (!ctx) > /* Error occurred */ > if (EVP_PKEY_keygen_init(ctx) <= 0) > /* Error */ > if (EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, 2048) <= 0) > /* Error */ > /* Generate key */ > if (EVP_PKEY_keygen(ctx, &pkey) <= 0) > /* Error */ > > Unfortunately there is no EVP_PKEY_GOST constant and I can't create EVP_PKEY > containing GOST key pair. > > Does anybody know how to create GOST key pair? GOST is a block cipher. It uses a symmetric key, not public/private keys.
Jeff ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org