Skip to content

Commit

Permalink
doc: add added: info for crypto.timingSafeEqual()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
madarche authored and jasnell committed Sep 27, 2016
1 parent bedc6b6 commit bb78f65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -1418,6 +1418,9 @@ keys:
All paddings are defined in `crypto.constants`.

### crypto.timingSafeEqual(a, b)
<!-- YAML
added: v6.6.0
-->

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

0 comments on commit bb78f65

Please sign in to comment.