summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Bauer <joe@johannes-bauer.com>2017-08-03 21:07:21 +0200
committerAndy Polyakov <appro@openssl.org>2017-08-05 20:09:22 +0200
commitc67a2f80ec933465c54138fe829433d535651349 (patch)
tree891baeea883736a7bf0f50409ff9f510105afb6a
parent4c78ba5918daf7965759a720687c58d2ebb0eb1f (diff)
Fix typo in HKDF example documentation
Out-of-bounds array access in the example documentation of EVP_PKEY_CTX_set_hkdf_md fixed. Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Stephen Henson <steve@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4081)
-rw-r--r--doc/man3/EVP_PKEY_CTX_set_hkdf_md.pod2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/man3/EVP_PKEY_CTX_set_hkdf_md.pod b/doc/man3/EVP_PKEY_CTX_set_hkdf_md.pod
index 12843d014e..333b8da0fd 100644
--- a/doc/man3/EVP_PKEY_CTX_set_hkdf_md.pod
+++ b/doc/man3/EVP_PKEY_CTX_set_hkdf_md.pod
@@ -139,7 +139,7 @@ salt value "salt" and info value "label":
/* Error */
if (EVP_PKEY_CTX_set1_hkdf_key(pctx, "secret", 6) <= 0)
/* Error */
- if (EVP_PKEY_CTX_add1_hkdf_info(pctx, "label", 6) <= 0)
+ if (EVP_PKEY_CTX_add1_hkdf_info(pctx, "label", 5) <= 0)
/* Error */
if (EVP_PKEY_derive(pctx, out, &outlen) <= 0)
/* Error */