Skip to content

Commit 4780449

Browse files
AlexA-1976BethGriggs
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 62e1a68 commit 4780449

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/crypto.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -5313,7 +5313,8 @@ comparing HMAC digests or secret values like authentication cookies or
53135313
[capability urls](https://www.w3.org/TR/capability-urls/).
53145314

53155315
`a` and `b` must both be `Buffer`s, `TypedArray`s, or `DataView`s, and they
5316-
must have the same byte length.
5316+
must have the same byte length. An error is thrown if `a` and `b` have
5317+
different byte lengths.
53175318

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

0 commit comments

Comments
 (0)