Skip to content

Commit bb78f65

Browse files
madarchejasnell
authored andcommitted
doc: add added: info for crypto.timingSafeEqual()
crypto.timingSafeEqual() has been added in v6.6.0 cf. #8304 This commit adds the metadata that will display "Added in: v6.6.0" and that can later be checked on https://nodejs.org/api/crypto.html#crypto_crypto_timingsafeequal_a_b PR-URL: #8796 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Teddy Katz <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent bedc6b6 commit bb78f65

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/crypto.md

+3
Original file line numberDiff line numberDiff line change
@@ -1418,6 +1418,9 @@ keys:
14181418
All paddings are defined in `crypto.constants`.
14191419

14201420
### crypto.timingSafeEqual(a, b)
1421+
<!-- YAML
1422+
added: v6.6.0
1423+
-->
14211424

14221425
Returns true if `a` is equal to `b`, without leaking timing information that
14231426
would allow an attacker to guess one of the values. This is suitable for

0 commit comments

Comments
 (0)