On Mon, Jul 30, 2012 at 5:15 AM, Erwann Abalea
<erwann.aba...@keynectis.com> wrote:
> GOST is not a block cipher, it's the acronym for "GOsudarstvennyi STandard",
> which means "State Standard". It's not dedicated to cryptography.
My apologies. I thought you were referring to the GOST block cipher.
(I've never used it, but knew its been part of Crypto++ for some time:
http://www.cryptopp.com/docs/ref/class_g_o_s_t.html).

Jeff

> Le 28/07/2012 21:31, Jeffrey Walton a écrit :
>
> 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.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to