Corrected exchanged parameters in example for EVP_EncryptInit_ex()

Submitted by: "Marcus Carey" <marcus.carey@verizon.net>
Reviewed by:
PR: 265
This commit is contained in:
Lutz Jänicke 2002-10-18 09:46:01 +00:00
parent 3d76ceddff
commit dc74e7d5d7

View file

@ -419,7 +419,7 @@ Encrypt a string using blowfish:
EVP_CIPHER_CTX ctx; EVP_CIPHER_CTX ctx;
FILE *out; FILE *out;
EVP_CIPHER_CTX_init(&ctx); EVP_CIPHER_CTX_init(&ctx);
EVP_EncryptInit_ex(&ctx, NULL, EVP_bf_cbc(), key, iv); EVP_EncryptInit_ex(&ctx, EVP_bf_cbc(), NULL, key, iv);
if(!EVP_EncryptUpdate(&ctx, outbuf, &outlen, intext, strlen(intext))) if(!EVP_EncryptUpdate(&ctx, outbuf, &outlen, intext, strlen(intext)))
{ {