Skip to content

Commit 63c8bd2

Browse files
doc: doc-deprecate hmac public constructor
1 parent fc0f2cf commit 63c8bd2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

doc/api/deprecations.md

+16
Original file line numberDiff line numberDiff line change
@@ -3574,6 +3574,21 @@ Calling `Hash` class directly with `Hash()` or `new Hash()` is
35743574
deprecated due to being internals, not intended for public use.
35753575
Please use the [`crypto.createHash()`][] method to create Hash instances.
35763576

3577+
### DEP0181: `Hmac` constructor
3578+
3579+
<!-- YAML
3580+
changes:
3581+
- version: REPLACEME
3582+
pr-url: https://github.com/nodejs/node/pull/51881
3583+
description: Documentation-only deprecation.
3584+
-->
3585+
3586+
Type: Documentation-only
3587+
3588+
Calling `Hmac` class directly with `Hmac()` or `new Hmac()` is
3589+
deprecated due to being internals, not intended for public use.
3590+
Please use the [`crypto.createHmac()`][] method to create Hmac instances.
3591+
35773592
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
35783593
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
35793594
[RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4
@@ -3611,6 +3626,7 @@ Please use the [`crypto.createHash()`][] method to create Hash instances.
36113626
[`crypto.createCipheriv()`]: crypto.md#cryptocreatecipherivalgorithm-key-iv-options
36123627
[`crypto.createDecipheriv()`]: crypto.md#cryptocreatedecipherivalgorithm-key-iv-options
36133628
[`crypto.createHash()`]: crypto.md#cryptocreatehashalgorithm-options
3629+
[`crypto.createHmac()`]: crypto.md#cryptocreatehmacalgorithm-key-options
36143630
[`crypto.fips`]: crypto.md#cryptofips
36153631
[`crypto.pbkdf2()`]: crypto.md#cryptopbkdf2password-salt-iterations-keylen-digest-callback
36163632
[`crypto.randomBytes()`]: crypto.md#cryptorandombytessize-callback

0 commit comments

Comments
 (0)