]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix typos in doc/man3/EVP_EncryptInit.pod
authorMarco Abbadini <39488007+marcoabbadini@users.noreply.github.com>
Thu, 24 Nov 2022 01:11:25 +0000 (02:11 +0100)
committerTomas Mraz <tomas@openssl.org>
Fri, 25 Nov 2022 12:10:12 +0000 (13:10 +0100)
Fixes #19728

CLA: trivial

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19753)

doc/man3/EVP_EncryptInit.pod

index 2b75b71b048dd10ed5a0590c42ca8deffa8164ba..1fa31d3f5322d18c70cb9a965d0ef6e46b6187f5 100644 (file)
@@ -1657,9 +1657,9 @@ Encryption using AES-CBC with a 256-bit key with "CS1" ciphertext stealing.
          goto err;
 
      /* NOTE: CTS mode does not support multiple calls to EVP_CipherUpdate() */
-     if (!EVP_CipherUpdate(ctx, encrypted, &outlen, msg, msglen))
+     if (!EVP_CipherUpdate(ctx, out, &outlen, msg, msg_len))
          goto err;
-      if (!EVP_CipherFinal_ex(ctx, encrypted + outlen, &len))
+      if (!EVP_CipherFinal_ex(ctx, out + outlen, &len))
          goto err;
      ret = 1;
  err: