@@ -3574,6 +3574,21 @@ Calling `Hash` class directly with `Hash()` or `new Hash()` is
3574
3574
deprecated due to being internals, not intended for public use.
3575
3575
Please use the [ ` crypto.createHash() ` ] [ ] method to create Hash instances.
3576
3576
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
+
3577
3592
[ NIST SP 800-38D ] : https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
3578
3593
[ RFC 6066 ] : https://tools.ietf.org/html/rfc6066#section-3
3579
3594
[ 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.
3611
3626
[ `crypto.createCipheriv()` ] : crypto.md#cryptocreatecipherivalgorithm-key-iv-options
3612
3627
[ `crypto.createDecipheriv()` ] : crypto.md#cryptocreatedecipherivalgorithm-key-iv-options
3613
3628
[ `crypto.createHash()` ] : crypto.md#cryptocreatehashalgorithm-options
3629
+ [ `crypto.createHmac()` ] : crypto.md#cryptocreatehmacalgorithm-key-options
3614
3630
[ `crypto.fips` ] : crypto.md#cryptofips
3615
3631
[ `crypto.pbkdf2()` ] : crypto.md#cryptopbkdf2password-salt-iterations-keylen-digest-callback
3616
3632
[ `crypto.randomBytes()` ] : crypto.md#cryptorandombytessize-callback
0 commit comments