diff options
author | tb <> | 2022-08-31 14:27:34 +0000 |
---|---|---|
committer | tb <> | 2022-08-31 14:27:34 +0000 |
commit | cf98f9e716abe3deead192179af160872e58283b (patch) | |
tree | ab0a932259fcc74011a81a03a1c6a06c5884a0da | |
parent | dedb6da8796ad12e418baeee8417b3f25a94eb13 (diff) | |
download | openbsd-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.3 | 16 | ||||
-rw-r--r-- | src/lib/libcrypto/man/EVP_EncryptInit.3 | 11 |
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 | |||
267 | and resets it to the state it had after | 267 | and resets it to the state it had after |
268 | .Fn EVP_MD_CTX_new , | 268 | .Fn EVP_MD_CTX_new , |
269 | such that it can be reused. | 269 | such that it can be reused. |
270 | It is also suitable for digest contexts on the stack that were | ||
271 | used and are no longer needed. | ||
272 | .Pp | 270 | .Pp |
273 | .Fn EVP_MD_CTX_free | 271 | .Fn EVP_MD_CTX_free |
274 | cleans up | 272 | cleans up |
@@ -316,11 +314,6 @@ is | |||
316 | then the default implementation of digest | 314 | then the default implementation of digest |
317 | .Fa type | 315 | .Fa type |
318 | is used. | 316 | is used. |
319 | If | ||
320 | .Fa ctx | ||
321 | points to an unused object on the stack, it must be initialized with | ||
322 | .Fn EVP_MD_CTX_init | ||
323 | before calling this function. | ||
324 | .Pp | 317 | .Pp |
325 | .Fn EVP_DigestUpdate | 318 | .Fn EVP_DigestUpdate |
326 | hashes | 319 | hashes |
@@ -388,11 +381,6 @@ to | |||
388 | .Fa out . | 381 | .Fa out . |
389 | This is useful if large amounts of data are to be hashed which only | 382 | This is useful if large amounts of data are to be hashed which only |
390 | differ in the last few bytes. | 383 | differ in the last few bytes. |
391 | If | ||
392 | .Fa out | ||
393 | points to an unused object on the stack, it must be initialized with | ||
394 | .Fn EVP_MD_CTX_init | ||
395 | before calling this function. | ||
396 | .Pp | 384 | .Pp |
397 | .Fn EVP_DigestInit | 385 | .Fn EVP_DigestInit |
398 | is a deprecated function behaving like | 386 | is 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 , |
444 | and | 444 | and |
445 | .Fn EVP_CipherFinal . | 445 | .Fn EVP_CipherFinal . |
446 | It is also suitable for cipher contexts on the stack that were used | ||
447 | and are no longer needed. | ||
448 | .Fn EVP_CIPHER_CTX_cleanup | 446 | .Fn EVP_CIPHER_CTX_cleanup |
449 | is a deprecated alias for | 447 | is a deprecated alias for |
450 | .Fn EVP_CIPHER_CTX_reset . | 448 | .Fn EVP_CIPHER_CTX_reset . |
@@ -478,11 +476,6 @@ for encryption with cipher | |||
478 | from | 476 | from |
479 | .Vt ENGINE | 477 | .Vt ENGINE |
480 | .Fa impl . | 478 | .Fa impl . |
481 | If | ||
482 | .Fa ctx | ||
483 | points to an unused object on the stack, it must be initialized with | ||
484 | .Fn EVP_MD_CTX_init | ||
485 | before calling this function. | ||
486 | .Fa type | 479 | .Fa type |
487 | is normally supplied by a function such as | 480 | is normally supplied by a function such as |
488 | .Xr EVP_aes_256_cbc 3 . | 481 | .Xr EVP_aes_256_cbc 3 . |