diff options
| author | tb <> | 2022-01-25 17:55:39 +0000 |
|---|---|---|
| committer | tb <> | 2022-01-25 17:55:39 +0000 |
| commit | 2ba6de9045094252ff8e4220fe58be76617bea21 (patch) | |
| tree | 4d00595257d7268403a134a7c81f36e40d01669b /src | |
| parent | 37c93f51bfa4f1ae451e4c615e2600cb3099a877 (diff) | |
| download | openbsd-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.3 | 36 |
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 |
| 215 | must have been created with | 215 | must have been created with |
| 216 | .Fn HMAC_CTX_new | 216 | .Fn HMAC_CTX_new |
| 217 | or initialized with | ||
| 218 | .Fn HMAC_CTX_init | ||
| 219 | before the first use in this function. | 217 | before the first use in this function. |
| 220 | If | 218 | If |
| 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 |
| 235 | is a deprecated wrapper around | 233 | is a deprecated wrapper around |
| 236 | .Fn HMAC_Init_ex . | 234 | .Fn HMAC_Init_ex |
| 237 | If called with both | 235 | which performs no longer useful extra initialization in |
| 238 | .Fa key | 236 | some circumstances. |
| 239 | and | ||
| 240 | .Fa md , | ||
| 241 | it calls | ||
| 242 | .Fn HMAC_CTX_init | ||
| 243 | first, which only makes sense for an empty, uninitialized | ||
| 244 | .Fa ctx , | ||
| 245 | but not for one already initialized with | ||
| 246 | .Fn HMAC_CTX_new | ||
| 247 | or | ||
| 248 | .Fn HMAC_CTX_init . | ||
| 249 | If | ||
| 250 | .Fa key | ||
| 251 | or | ||
| 252 | .Fa md | ||
| 253 | is | ||
| 254 | .Dv NULL , | ||
| 255 | it does not call | ||
| 256 | .Fn HMAC_CTX_init ; | ||
| 257 | so in this case, | ||
| 258 | .Fa ctx | ||
| 259 | already needs to be initialized with | ||
| 260 | .Fn HMAC_CTX_new | ||
| 261 | or | ||
| 262 | .Fn HMAC_CTX_init . | ||
| 263 | .Pp | 237 | .Pp |
| 264 | .Fn HMAC_Update | 238 | .Fn HMAC_Update |
| 265 | can be called repeatedly with chunks of the message to be authenticated | 239 | can be called repeatedly with chunks of the message to be authenticated |
