提交 284b216b 编写于 作者: L Lutz Jänicke

Corrected exchanged parameters in example for EVP_EncryptInit_ex()

Submitted by: "Marcus Carey" <marcus.carey@verizon.net>
Reviewed by:
PR: 265
上级 05dbe6ee
......@@ -419,7 +419,7 @@ Encrypt a string using blowfish:
EVP_CIPHER_CTX ctx;
FILE *out;
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)))
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册