Corrected exchanged parameters in example for EVP_EncryptInit_ex()
authorLutz Jänicke <jaenicke@openssl.org>
Fri, 18 Oct 2002 09:47:14 +0000 (09:47 +0000)
committerLutz Jänicke <jaenicke@openssl.org>
Fri, 18 Oct 2002 09:47:14 +0000 (09:47 +0000)
Submitted by: "Marcus Carey" <marcus.carey@verizon.net>
Reviewed by:
PR: 265

doc/crypto/EVP_EncryptInit.pod

index 75cceb1..daf57e5 100644 (file)
@@ -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)))
                {