Skip to content

Commit 61547c2

Browse files
doc: deprecate hmac public constructor
1 parent a0c4668 commit 61547c2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc/api/deprecations.md

+14
Original file line numberDiff line numberDiff line change
@@ -3588,6 +3588,19 @@ Type: Documentation-only
35883588
Calling `fs.Stats` class directly with `Stats()` or `new Stats()` is
35893589
deprecated due to being internals, not intended for public use.
35903590

3591+
### DEP0181: `Hmac` constructor
3592+
3593+
<!-- YAML
3594+
changes:
3595+
- version: REPLACEME
3596+
pr-url: https://github.com/nodejs/node/pull/51881
3597+
description: Documentation-only deprecation.
3598+
-->
3599+
3600+
Calling `Hmac` class directly with `Hmac()` or `new Hmac()` is
3601+
deprecated due to being internals, not intended for public use.
3602+
Please use the [`crypto.createHmac()`][] method to create Hmac instances.
3603+
35913604
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
35923605
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
35933606
[RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4
@@ -3625,6 +3638,7 @@ deprecated due to being internals, not intended for public use.
36253638
[`crypto.createCipheriv()`]: crypto.md#cryptocreatecipherivalgorithm-key-iv-options
36263639
[`crypto.createDecipheriv()`]: crypto.md#cryptocreatedecipherivalgorithm-key-iv-options
36273640
[`crypto.createHash()`]: crypto.md#cryptocreatehashalgorithm-options
3641+
[`crypto.createHmac()`]: crypto.md#cryptocreatehmacalgorithm-key-options
36283642
[`crypto.fips`]: crypto.md#cryptofips
36293643
[`crypto.pbkdf2()`]: crypto.md#cryptopbkdf2password-salt-iterations-keylen-digest-callback
36303644
[`crypto.randomBytes()`]: crypto.md#cryptorandombytessize-callback

0 commit comments

Comments
 (0)