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

doc/crypto/EVP_EncryptInit.pod

index 75cceb1ca264ea7af9e695ba4d8c39a717ff5497..daf57e5895f1cdb4ed3e0dc15798f697ac995095 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)))
                {