summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2022-08-31 14:27:34 +0000
committertb <>2022-08-31 14:27:34 +0000
commitcf98f9e716abe3deead192179af160872e58283b (patch)
treeab0a932259fcc74011a81a03a1c6a06c5884a0da
parentdedb6da8796ad12e418baeee8417b3f25a94eb13 (diff)
downloadopenbsd-cf98f9e716abe3deead192179af160872e58283b.tar.gz
openbsd-cf98f9e716abe3deead192179af160872e58283b.tar.bz2
openbsd-cf98f9e716abe3deead192179af160872e58283b.zip
Remove most mentions of contexts on the stack.
-rw-r--r--src/lib/libcrypto/man/EVP_DigestInit.316
-rw-r--r--src/lib/libcrypto/man/EVP_EncryptInit.311
2 files changed, 4 insertions, 23 deletions
diff --git a/src/lib/libcrypto/man/EVP_DigestInit.3 b/src/lib/libcrypto/man/EVP_DigestInit.3
index b9aacf9e9f..209ad0181b 100644
--- a/src/lib/libcrypto/man/EVP_DigestInit.3
+++ b/src/lib/libcrypto/man/EVP_DigestInit.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EVP_DigestInit.3,v 1.23 2022/03/31 17:27:16 naddy Exp $ 1.\" $OpenBSD: EVP_DigestInit.3,v 1.24 2022/08/31 14:27:34 tb Exp $
2.\" full merge up to: OpenSSL 7f572e95 Dec 2 13:57:04 2015 +0000 2.\" full merge up to: OpenSSL 7f572e95 Dec 2 13:57:04 2015 +0000
3.\" selective merge up to: OpenSSL a95d7574 Jul 2 12:16:38 2017 -0400 3.\" selective merge up to: OpenSSL a95d7574 Jul 2 12:16:38 2017 -0400
4.\" 4.\"
@@ -68,7 +68,7 @@
68.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 68.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
69.\" OF THE POSSIBILITY OF SUCH DAMAGE. 69.\" OF THE POSSIBILITY OF SUCH DAMAGE.
70.\" 70.\"
71.Dd $Mdocdate: March 31 2022 $ 71.Dd $Mdocdate: August 31 2022 $
72.Dt EVP_DIGESTINIT 3 72.Dt EVP_DIGESTINIT 3
73.Os 73.Os
74.Sh NAME 74.Sh NAME
@@ -267,8 +267,6 @@ cleans up
267and resets it to the state it had after 267and resets it to the state it had after
268.Fn EVP_MD_CTX_new , 268.Fn EVP_MD_CTX_new ,
269such that it can be reused. 269such that it can be reused.
270It is also suitable for digest contexts on the stack that were
271used and are no longer needed.
272.Pp 270.Pp
273.Fn EVP_MD_CTX_free 271.Fn EVP_MD_CTX_free
274cleans up 272cleans up
@@ -316,11 +314,6 @@ is
316then the default implementation of digest 314then the default implementation of digest
317.Fa type 315.Fa type
318is used. 316is used.
319If
320.Fa ctx
321points to an unused object on the stack, it must be initialized with
322.Fn EVP_MD_CTX_init
323before calling this function.
324.Pp 317.Pp
325.Fn EVP_DigestUpdate 318.Fn EVP_DigestUpdate
326hashes 319hashes
@@ -388,11 +381,6 @@ to
388.Fa out . 381.Fa out .
389This is useful if large amounts of data are to be hashed which only 382This is useful if large amounts of data are to be hashed which only
390differ in the last few bytes. 383differ in the last few bytes.
391If
392.Fa out
393points to an unused object on the stack, it must be initialized with
394.Fn EVP_MD_CTX_init
395before calling this function.
396.Pp 384.Pp
397.Fn EVP_DigestInit 385.Fn EVP_DigestInit
398is a deprecated function behaving like 386is a deprecated function behaving like
diff --git a/src/lib/libcrypto/man/EVP_EncryptInit.3 b/src/lib/libcrypto/man/EVP_EncryptInit.3
index 47527925ba..b4fbfa3730 100644
--- a/src/lib/libcrypto/man/EVP_EncryptInit.3
+++ b/src/lib/libcrypto/man/EVP_EncryptInit.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EVP_EncryptInit.3,v 1.43 2022/03/31 17:27:16 naddy Exp $ 1.\" $OpenBSD: EVP_EncryptInit.3,v 1.44 2022/08/31 14:27:34 tb Exp $
2.\" full merge up to: OpenSSL 5211e094 Nov 11 14:39:11 2014 -0800 2.\" full merge up to: OpenSSL 5211e094 Nov 11 14:39:11 2014 -0800
3.\" EVP_bf_cbc.pod EVP_cast5_cbc.pod EVP_idea_cbc.pod EVP_rc2_cbc.pod 3.\" EVP_bf_cbc.pod EVP_cast5_cbc.pod EVP_idea_cbc.pod EVP_rc2_cbc.pod
4.\" 7c6d372a Nov 20 13:20:01 2018 +0000 4.\" 7c6d372a Nov 20 13:20:01 2018 +0000
@@ -71,7 +71,7 @@
71.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 71.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
72.\" OF THE POSSIBILITY OF SUCH DAMAGE. 72.\" OF THE POSSIBILITY OF SUCH DAMAGE.
73.\" 73.\"
74.Dd $Mdocdate: March 31 2022 $ 74.Dd $Mdocdate: August 31 2022 $
75.Dt EVP_ENCRYPTINIT 3 75.Dt EVP_ENCRYPTINIT 3
76.Os 76.Os
77.Sh NAME 77.Sh NAME
@@ -443,8 +443,6 @@ object itself, such that it can be reused for another series of calls to
443.Fn EVP_CipherUpdate , 443.Fn EVP_CipherUpdate ,
444and 444and
445.Fn EVP_CipherFinal . 445.Fn EVP_CipherFinal .
446It is also suitable for cipher contexts on the stack that were used
447and are no longer needed.
448.Fn EVP_CIPHER_CTX_cleanup 446.Fn EVP_CIPHER_CTX_cleanup
449is a deprecated alias for 447is a deprecated alias for
450.Fn EVP_CIPHER_CTX_reset . 448.Fn EVP_CIPHER_CTX_reset .
@@ -478,11 +476,6 @@ for encryption with cipher
478from 476from
479.Vt ENGINE 477.Vt ENGINE
480.Fa impl . 478.Fa impl .
481If
482.Fa ctx
483points to an unused object on the stack, it must be initialized with
484.Fn EVP_MD_CTX_init
485before calling this function.
486.Fa type 479.Fa type
487is normally supplied by a function such as 480is normally supplied by a function such as
488.Xr EVP_aes_256_cbc 3 . 481.Xr EVP_aes_256_cbc 3 .