I have following code:

EVP_CIPHER_CTX ctx;
const EVP_CIPHER * cipher = EVP_get_cipherbyname(SN_gost89_cnt);
...

EVP_CIPHER_CTX_init(&ctx);
EVP_EncryptInit_ex(&ctx, cipher, e, key, iv);

Now I want to encrypt data with custom paramset. To be specifically: gost89-cnt 
uses "id-Gost28147-89-CryptoPro-A-ParamSet" paramset and I want to use, for 
example, "id-Gost28147-89-CryptoPro-D-ParamSet".

I've tried to set it using EVP_CIPHER_param_to_asn1, EVP_CIPHER_asn1_to_param 
and couple of other functions, but still no luck.

So, how can I set custom paramset?


Shirov Grigory
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to