diff options
author | Daiki Ueno <dueno@redhat.com> | 2024-05-13 09:07:57 +0900 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-05-14 09:28:26 +0200 |
commit | 7860bca22c404cfd763ae2648d708d5cc4df6c2f (patch) | |
tree | f2dd16c18df0e9ed85f6c86c469e79aa25f4bd97 /doc/man3/EVP_EncryptInit.pod | |
parent | c02f952b48927af9fc4e991d7ead89a4cd1636bc (diff) | |
download | openssl-7860bca22c404cfd763ae2648d708d5cc4df6c2f.tar.gz |
doc: Fix description of EVP_CIPHER_CTX_dup
This fixes a couple of copy and paste error from EVP_MD_CTX_dup,
where: EVP_CIPHER_CTX_dup is useful to avoid multiple
EVP_CIPHER_fetch (instead of EVP_MD_fetch) and returns
EVP_CIPHER_CTX (instead of EVP_MD_CTX).
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/24376)
Diffstat (limited to 'doc/man3/EVP_EncryptInit.pod')
-rw-r--r-- | doc/man3/EVP_EncryptInit.pod | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/man3/EVP_EncryptInit.pod b/doc/man3/EVP_EncryptInit.pod index 0bf10c90d7..357650ac97 100644 --- a/doc/man3/EVP_EncryptInit.pod +++ b/doc/man3/EVP_EncryptInit.pod @@ -287,8 +287,8 @@ remain in memory. =item EVP_CIPHER_CTX_dup() Can be used to duplicate the cipher state from I<in>. This is useful -to avoid multiple EVP_MD_fetch() calls or if large amounts of data are to be -hashed which only differ in the last few bytes. +to avoid multiple EVP_CIPHER_fetch() calls or if large amounts of data are to be +fed which only differ in the last few bytes. =item EVP_CIPHER_CTX_copy() @@ -1241,7 +1241,7 @@ EVP_CIPHER_up_ref() returns 1 for success or 0 otherwise. EVP_CIPHER_CTX_new() returns a pointer to a newly created B<EVP_CIPHER_CTX> for success and B<NULL> for failure. -EVP_CIPHER_CTX_dup() returns a new EVP_MD_CTX if successful or NULL on failure. +EVP_CIPHER_CTX_dup() returns a new EVP_CIPHER_CTX if successful or NULL on failure. EVP_CIPHER_CTX_copy() returns 1 if successful or 0 for failure. |