summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2022-01-25 17:55:39 +0000
committertb <>2022-01-25 17:55:39 +0000
commit2ba6de9045094252ff8e4220fe58be76617bea21 (patch)
tree4d00595257d7268403a134a7c81f36e40d01669b /src
parent37c93f51bfa4f1ae451e4c615e2600cb3099a877 (diff)
downloadopenbsd-2ba6de9045094252ff8e4220fe58be76617bea21.tar.gz
openbsd-2ba6de9045094252ff8e4220fe58be76617bea21.tar.bz2
openbsd-2ba6de9045094252ff8e4220fe58be76617bea21.zip
Remove some HMAC_CTX_init() remnants in HMAC(3).
spotted by/ok jmc
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/HMAC.336
1 files changed, 5 insertions, 31 deletions
diff --git a/src/lib/libcrypto/man/HMAC.3 b/src/lib/libcrypto/man/HMAC.3
index cd1265f703..a0af270c4d 100644
--- a/src/lib/libcrypto/man/HMAC.3
+++ b/src/lib/libcrypto/man/HMAC.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: HMAC.3,v 1.19 2022/01/15 18:16:02 tb Exp $ 1.\" $OpenBSD: HMAC.3,v 1.20 2022/01/25 17:55:39 tb Exp $
2.\" full merge up to: OpenSSL crypto/hmac a528d4f0 Oct 27 13:40:11 2015 -0400 2.\" full merge up to: OpenSSL crypto/hmac a528d4f0 Oct 27 13:40:11 2015 -0400
3.\" selective merge up to: OpenSSL man3/HMAC b3696a55 Sep 2 09:35:50 2017 -0400 3.\" selective merge up to: OpenSSL man3/HMAC b3696a55 Sep 2 09:35:50 2017 -0400
4.\" 4.\"
@@ -52,7 +52,7 @@
52.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 52.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
53.\" OF THE POSSIBILITY OF SUCH DAMAGE. 53.\" OF THE POSSIBILITY OF SUCH DAMAGE.
54.\" 54.\"
55.Dd $Mdocdate: January 15 2022 $ 55.Dd $Mdocdate: January 25 2022 $
56.Dt HMAC 3 56.Dt HMAC 3
57.Os 57.Os
58.Sh NAME 58.Sh NAME
@@ -214,8 +214,6 @@ The
214.Fa ctx 214.Fa ctx
215must have been created with 215must have been created with
216.Fn HMAC_CTX_new 216.Fn HMAC_CTX_new
217or initialized with
218.Fn HMAC_CTX_init
219before the first use in this function. 217before the first use in this function.
220If 218If
221.Fn HMAC_Init_ex 219.Fn HMAC_Init_ex
@@ -233,33 +231,9 @@ different digest is not supported.
233.Pp 231.Pp
234.Fn HMAC_Init 232.Fn HMAC_Init
235is a deprecated wrapper around 233is a deprecated wrapper around
236.Fn HMAC_Init_ex . 234.Fn HMAC_Init_ex
237If called with both 235which performs no longer useful extra initialization in
238.Fa key 236some circumstances.
239and
240.Fa md ,
241it calls
242.Fn HMAC_CTX_init
243first, which only makes sense for an empty, uninitialized
244.Fa ctx ,
245but not for one already initialized with
246.Fn HMAC_CTX_new
247or
248.Fn HMAC_CTX_init .
249If
250.Fa key
251or
252.Fa md
253is
254.Dv NULL ,
255it does not call
256.Fn HMAC_CTX_init ;
257so in this case,
258.Fa ctx
259already needs to be initialized with
260.Fn HMAC_CTX_new
261or
262.Fn HMAC_CTX_init .
263.Pp 237.Pp
264.Fn HMAC_Update 238.Fn HMAC_Update
265can be called repeatedly with chunks of the message to be authenticated 239can be called repeatedly with chunks of the message to be authenticated