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:
parent
3d76ceddff
commit
dc74e7d5d7
1 changed files with 1 additions and 1 deletions
|
@ -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)))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue