X-Git-Url: https://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_crypt.c;h=52aad0a2a59d08eecd2190dc2811e530779374c9;hb=b13fa6d0cdd810841c3bbac1899f7a3b4083f23f;hp=d1e8113b4159fb63d37d4d4d511a5bf23b6e20e1;hpb=be94de0b86a7ac68bfe5949e113ad08fd444f374;p=openssl-gost%2Fengine.git diff --git a/gost_crypt.c b/gost_crypt.c index d1e8113..52aad0a 100644 --- a/gost_crypt.c +++ b/gost_crypt.c @@ -537,8 +537,7 @@ int gost_cipher_ctl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) case EVP_CTRL_RAND_KEY: { if (RAND_bytes((unsigned char *)ptr, ctx->key_len) <= 0) { - GOSTerr(GOST_F_GOST_CIPHER_CTL, - GOST_R_RANDOM_GENERATOR_ERROR); + GOSTerr(GOST_F_GOST_CIPHER_CTL, GOST_R_RNG_ERROR); return -1; } break;