Skip to content

Commit edd6190

Browse files
doc: deprecate hmac public constructor
PR-URL: nodejs#51881 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Adrian Estrada <edsadr@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
1 parent 384fd17 commit edd6190

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
@@ -3588,6 +3588,21 @@ 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+
Type: Documentation-only
3601+
3602+
Calling `Hmac` class directly with `Hmac()` or `new Hmac()` is
3603+
deprecated due to being internals, not intended for public use.
3604+
Please use the [`crypto.createHmac()`][] method to create Hmac instances.
3605+
35913606
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
35923607
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
35933608
[RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4
@@ -3625,6 +3640,7 @@ deprecated due to being internals, not intended for public use.
36253640
[`crypto.createCipheriv()`]: crypto.md#cryptocreatecipherivalgorithm-key-iv-options
36263641
[`crypto.createDecipheriv()`]: crypto.md#cryptocreatedecipherivalgorithm-key-iv-options
36273642
[`crypto.createHash()`]: crypto.md#cryptocreatehashalgorithm-options
3643+
[`crypto.createHmac()`]: crypto.md#cryptocreatehmacalgorithm-key-options
36283644
[`crypto.fips`]: crypto.md#cryptofips
36293645
[`crypto.pbkdf2()`]: crypto.md#cryptopbkdf2password-salt-iterations-keylen-digest-callback
36303646
[`crypto.randomBytes()`]: crypto.md#cryptorandombytessize-callback

0 commit comments

Comments
 (0)