diff options
author | schwarze <> | 2019-08-25 17:08:20 +0000 |
---|---|---|
committer | schwarze <> | 2019-08-25 17:08:20 +0000 |
commit | 533a7ff91759c413fd387c34db7eef7bfcad50eb (patch) | |
tree | 4dbd1974a4c8c960d717ebecbdf99c589d9e6b50 /src | |
parent | eccc4884be142bee5501102fc3155e4ac5c90750 (diff) | |
download | openbsd-533a7ff91759c413fd387c34db7eef7bfcad50eb.tar.gz openbsd-533a7ff91759c413fd387c34db7eef7bfcad50eb.tar.bz2 openbsd-533a7ff91759c413fd387c34db7eef7bfcad50eb.zip |
document EVP_sm3(3) and EVP_whirlpool(3), loosely based on the
OpenSSL 1.1.1 pages, which are still under a free license
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/man/EVP_DigestInit.3 | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/man/EVP_sm3.3 | 82 | ||||
-rw-r--r-- | src/lib/libcrypto/man/EVP_whirlpool.3 | 83 | ||||
-rw-r--r-- | src/lib/libcrypto/man/Makefile | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/man/evp.3 | 8 |
5 files changed, 177 insertions, 6 deletions
diff --git a/src/lib/libcrypto/man/EVP_DigestInit.3 b/src/lib/libcrypto/man/EVP_DigestInit.3 index 496b07632d..cefd546af3 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.17 2019/08/14 14:05:32 schwarze Exp $ | 1 | .\" $OpenBSD: EVP_DigestInit.3,v 1.18 2019/08/25 17:08:20 schwarze 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: August 14 2019 $ | 71 | .Dd $Mdocdate: August 25 2019 $ |
72 | .Dt EVP_DIGESTINIT 3 | 72 | .Dt EVP_DIGESTINIT 3 |
73 | .Os | 73 | .Os |
74 | .Sh NAME | 74 | .Sh NAME |
@@ -678,7 +678,9 @@ main(int argc, char *argv[]) | |||
678 | .Xr EVP_PKEY_CTX_set_signature_md 3 , | 678 | .Xr EVP_PKEY_CTX_set_signature_md 3 , |
679 | .Xr EVP_PKEY_meth_set_signctx 3 , | 679 | .Xr EVP_PKEY_meth_set_signctx 3 , |
680 | .Xr EVP_SignInit 3 , | 680 | .Xr EVP_SignInit 3 , |
681 | .Xr EVP_sm3 3 , | ||
681 | .Xr EVP_VerifyInit 3 , | 682 | .Xr EVP_VerifyInit 3 , |
683 | .Xr EVP_whirlpool 3 , | ||
682 | .Xr HMAC 3 , | 684 | .Xr HMAC 3 , |
683 | .Xr OCSP_basic_sign 3 , | 685 | .Xr OCSP_basic_sign 3 , |
684 | .Xr OCSP_request_sign 3 , | 686 | .Xr OCSP_request_sign 3 , |
diff --git a/src/lib/libcrypto/man/EVP_sm3.3 b/src/lib/libcrypto/man/EVP_sm3.3 new file mode 100644 index 0000000000..aa6789f249 --- /dev/null +++ b/src/lib/libcrypto/man/EVP_sm3.3 | |||
@@ -0,0 +1,82 @@ | |||
1 | .\" $OpenBSD: EVP_sm3.3,v 1.1 2019/08/25 17:08:20 schwarze Exp $ | ||
2 | .\" full merge up to: OpenSSL 21ebd2fc Aug 24 20:38:04 2018 +0800 | ||
3 | .\" | ||
4 | .\" This file was written by Jack Lloyd <jack.lloyd@ribose.com> | ||
5 | .\" and Ronald Tse <ronald.tse@ribose.com>. | ||
6 | .\" Copyright (c) 2017 The OpenSSL Project. All rights reserved. | ||
7 | .\" Copyright (c) 2017 Ribose Inc. All Rights Reserved. | ||
8 | .\" | ||
9 | .\" Redistribution and use in source and binary forms, with or without | ||
10 | .\" modification, are permitted provided that the following conditions | ||
11 | .\" are met: | ||
12 | .\" | ||
13 | .\" 1. Redistributions of source code must retain the above copyright | ||
14 | .\" notice, this list of conditions and the following disclaimer. | ||
15 | .\" | ||
16 | .\" 2. Redistributions in binary form must reproduce the above copyright | ||
17 | .\" notice, this list of conditions and the following disclaimer in | ||
18 | .\" the documentation and/or other materials provided with the | ||
19 | .\" distribution. | ||
20 | .\" | ||
21 | .\" 3. All advertising materials mentioning features or use of this | ||
22 | .\" software must display the following acknowledgment: | ||
23 | .\" "This product includes software developed by the OpenSSL Project | ||
24 | .\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
25 | .\" | ||
26 | .\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
27 | .\" endorse or promote products derived from this software without | ||
28 | .\" prior written permission. For written permission, please contact | ||
29 | .\" openssl-core@openssl.org. | ||
30 | .\" | ||
31 | .\" 5. Products derived from this software may not be called "OpenSSL" | ||
32 | .\" nor may "OpenSSL" appear in their names without prior written | ||
33 | .\" permission of the OpenSSL Project. | ||
34 | .\" | ||
35 | .\" 6. Redistributions of any form whatsoever must retain the following | ||
36 | .\" acknowledgment: | ||
37 | .\" "This product includes software developed by the OpenSSL Project | ||
38 | .\" for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
39 | .\" | ||
40 | .\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
41 | .\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
42 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
43 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
44 | .\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
45 | .\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
46 | .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
47 | .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
48 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
49 | .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
50 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
51 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | ||
52 | .\" | ||
53 | .Dd $Mdocdate: August 25 2019 $ | ||
54 | .Dt EVP_SM3 3 | ||
55 | .Os | ||
56 | .Sh NAME | ||
57 | .Nm EVP_sm3 | ||
58 | .Nd SM3 hash function for EVP | ||
59 | .Sh SYNOPSIS | ||
60 | .In openssl/evp.h | ||
61 | .Ft const EVP_MD * | ||
62 | .Fn EVP_sm3 void | ||
63 | .Sh DESCRIPTION | ||
64 | SM3 is a cryptographic hash function with a 256-bit output. | ||
65 | It is part of the Chinese | ||
66 | .Dq Commercial Cryptography | ||
67 | suite of algorithms which is required | ||
68 | for certain commercial applications in China. | ||
69 | .Sh RETURN VALUES | ||
70 | .Fn EVP_sm3 | ||
71 | returns a pointer to a static | ||
72 | .Vt EVP_MD | ||
73 | object implementing the SM3 hash function. | ||
74 | .Sh SEE ALSO | ||
75 | .Xr evp 3 , | ||
76 | .Xr EVP_DigestInit 3 | ||
77 | .Sh STANDARDS | ||
78 | GB/T 32905-2016 and GM/T 0004-2012 | ||
79 | .Sh HISTORY | ||
80 | .Fn EVP_sm3 | ||
81 | first appeared in OpenSSL 1.1.1 and has been available since | ||
82 | .Ox 6.5 . | ||
diff --git a/src/lib/libcrypto/man/EVP_whirlpool.3 b/src/lib/libcrypto/man/EVP_whirlpool.3 new file mode 100644 index 0000000000..29f85bc1ae --- /dev/null +++ b/src/lib/libcrypto/man/EVP_whirlpool.3 | |||
@@ -0,0 +1,83 @@ | |||
1 | .\" $OpenBSD: EVP_whirlpool.3,v 1.1 2019/08/25 17:08:20 schwarze Exp $ | ||
2 | .\" full merge up to: OpenSSL bbda8ce9 Oct 31 15:43:01 2017 +0800 | ||
3 | .\" | ||
4 | .\" This file was written by Ronald Tse <ronald.tse@ribose.com>. | ||
5 | .\" Copyright (c) 2017 The OpenSSL Project. All rights reserved. | ||
6 | .\" | ||
7 | .\" Redistribution and use in source and binary forms, with or without | ||
8 | .\" modification, are permitted provided that the following conditions | ||
9 | .\" are met: | ||
10 | .\" | ||
11 | .\" 1. Redistributions of source code must retain the above copyright | ||
12 | .\" notice, this list of conditions and the following disclaimer. | ||
13 | .\" | ||
14 | .\" 2. Redistributions in binary form must reproduce the above copyright | ||
15 | .\" notice, this list of conditions and the following disclaimer in | ||
16 | .\" the documentation and/or other materials provided with the | ||
17 | .\" distribution. | ||
18 | .\" | ||
19 | .\" 3. All advertising materials mentioning features or use of this | ||
20 | .\" software must display the following acknowledgment: | ||
21 | .\" "This product includes software developed by the OpenSSL Project | ||
22 | .\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
23 | .\" | ||
24 | .\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
25 | .\" endorse or promote products derived from this software without | ||
26 | .\" prior written permission. For written permission, please contact | ||
27 | .\" openssl-core@openssl.org. | ||
28 | .\" | ||
29 | .\" 5. Products derived from this software may not be called "OpenSSL" | ||
30 | .\" nor may "OpenSSL" appear in their names without prior written | ||
31 | .\" permission of the OpenSSL Project. | ||
32 | .\" | ||
33 | .\" 6. Redistributions of any form whatsoever must retain the following | ||
34 | .\" acknowledgment: | ||
35 | .\" "This product includes software developed by the OpenSSL Project | ||
36 | .\" for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
37 | .\" | ||
38 | .\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
39 | .\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
40 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
41 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
42 | .\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
43 | .\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
44 | .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
45 | .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
46 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
47 | .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | ||
50 | .\" | ||
51 | .Dd $Mdocdate: August 25 2019 $ | ||
52 | .Dt EVP_WHIRLPOOL 3 | ||
53 | .Os | ||
54 | .Sh NAME | ||
55 | .Nm EVP_whirlpool | ||
56 | .Nd WHIRLPOOL hash function for EVP | ||
57 | .Sh SYNOPSIS | ||
58 | .In openssl/evp.h | ||
59 | .Ft const EVP_MD * | ||
60 | .Fn EVP_whirlpool void | ||
61 | .Sh DESCRIPTION | ||
62 | WHIRLPOOL is a cryptographic hash function | ||
63 | producing a message digest of 512 bits. | ||
64 | .Sh RETURN VALUES | ||
65 | .Fn EVP_whirlpool | ||
66 | returns a pointer to a static | ||
67 | .Vt EVP_MD | ||
68 | object implementing the WHIRLPOOL hash function. | ||
69 | .Sh SEE ALSO | ||
70 | .Xr evp 3 , | ||
71 | .Xr EVP_DigestInit 3 | ||
72 | .Sh STANDARDS | ||
73 | ISO/IEC 10118-3:2004 | ||
74 | .Sh HISTORY | ||
75 | .Fn EVP_whirlpool | ||
76 | first appeared in OpenSSL 1.0.0 and has been available since | ||
77 | .Ox 4.9 . | ||
78 | .Sh AUTHORS | ||
79 | .An -nosplit | ||
80 | The WHIRLPOOL algorithm was designed by | ||
81 | .An Vincent Rijmen | ||
82 | and | ||
83 | .An Paulo S. L. M. Barreto . | ||
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index 219450e234..e3e8e710c2 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.155 2019/08/25 06:20:22 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.156 2019/08/25 17:08:20 schwarze Exp $ |
2 | 2 | ||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
4 | 4 | ||
@@ -158,7 +158,9 @@ MAN= \ | |||
158 | EVP_camellia_128_cbc.3 \ | 158 | EVP_camellia_128_cbc.3 \ |
159 | EVP_des_cbc.3 \ | 159 | EVP_des_cbc.3 \ |
160 | EVP_rc4.3 \ | 160 | EVP_rc4.3 \ |
161 | EVP_sm3.3 \ | ||
161 | EVP_sm4_cbc.3 \ | 162 | EVP_sm4_cbc.3 \ |
163 | EVP_whirlpool.3 \ | ||
162 | EXTENDED_KEY_USAGE_new.3 \ | 164 | EXTENDED_KEY_USAGE_new.3 \ |
163 | GENERAL_NAME_new.3 \ | 165 | GENERAL_NAME_new.3 \ |
164 | HMAC.3 \ | 166 | HMAC.3 \ |
diff --git a/src/lib/libcrypto/man/evp.3 b/src/lib/libcrypto/man/evp.3 index 2375a6c217..dad999fc19 100644 --- a/src/lib/libcrypto/man/evp.3 +++ b/src/lib/libcrypto/man/evp.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: evp.3,v 1.13 2019/06/10 09:49:48 schwarze Exp $ | 1 | .\" $OpenBSD: evp.3,v 1.14 2019/08/25 17:08:20 schwarze Exp $ |
2 | .\" OpenSSL a9c85cea Nov 11 09:33:55 2016 +0100 | 2 | .\" OpenSSL a9c85cea Nov 11 09:33:55 2016 +0100 |
3 | .\" | 3 | .\" |
4 | .\" This file was written by Ulf Moeller <ulf@openssl.org>, | 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org>, |
@@ -51,7 +51,7 @@ | |||
51 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 51 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
52 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 52 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
53 | .\" | 53 | .\" |
54 | .Dd $Mdocdate: June 10 2019 $ | 54 | .Dd $Mdocdate: August 25 2019 $ |
55 | .Dt EVP 3 | 55 | .Dt EVP 3 |
56 | .Os | 56 | .Os |
57 | .Sh NAME | 57 | .Sh NAME |
@@ -206,5 +206,7 @@ operations are more efficient using the high level interfaces. | |||
206 | .Xr EVP_rc4 3 , | 206 | .Xr EVP_rc4 3 , |
207 | .Xr EVP_SealInit 3 , | 207 | .Xr EVP_SealInit 3 , |
208 | .Xr EVP_SignInit 3 , | 208 | .Xr EVP_SignInit 3 , |
209 | .Xr EVP_sm3 3 , | ||
209 | .Xr EVP_sm4_cbc 3 , | 210 | .Xr EVP_sm4_cbc 3 , |
210 | .Xr EVP_VerifyInit 3 | 211 | .Xr EVP_VerifyInit 3 , |
212 | .Xr EVP_whirlpool 3 | ||