Skip to content

Commit

Permalink
Fix typos in doc/man3/EVP_EncryptInit.pod
Browse files Browse the repository at this point in the history
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 #19753)

(cherry picked from commit 0dbd3a8)
  • Loading branch information
marcoabbadini authored and t8m committed Nov 25, 2022
1 parent 2c3ea16 commit d0f33da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/man3/EVP_EncryptInit.pod
Expand Up @@ -1655,9 +1655,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:
Expand Down

0 comments on commit d0f33da

Please sign in to comment.