Skip to content

Commit 55714cc

Browse files
AlexA-1976danielleadams
authored andcommitted
doc: update timingSafeEqual error case
PR-URL: #41507 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Filip Skokan <[email protected]>
1 parent 122eb51 commit 55714cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/crypto.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5257,7 +5257,8 @@ comparing HMAC digests or secret values like authentication cookies or
52575257
[capability urls](https://www.w3.org/TR/capability-urls/).
52585258

52595259
`a` and `b` must both be `Buffer`s, `TypedArray`s, or `DataView`s, and they
5260-
must have the same byte length.
5260+
must have the same byte length. An error is thrown if `a` and `b` have
5261+
different byte lengths.
52615262

52625263
If at least one of `a` and `b` is a `TypedArray` with more than one byte per
52635264
entry, such as `Uint16Array`, the result will be computed using the platform

0 commit comments

Comments
 (0)