Skip to content

Commit 6ebdb87

Browse files
AlexA-1976Linkgoron
authored andcommitted
doc: update timingSafeEqual error case
PR-URL: nodejs#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 f92a1f0 commit 6ebdb87

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
@@ -5317,7 +5317,8 @@ comparing HMAC digests or secret values like authentication cookies or
53175317
[capability urls](https://www.w3.org/TR/capability-urls/).
53185318

53195319
`a` and `b` must both be `Buffer`s, `TypedArray`s, or `DataView`s, and they
5320-
must have the same byte length.
5320+
must have the same byte length. An error is thrown if `a` and `b` have
5321+
different byte lengths.
53215322

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

0 commit comments

Comments
 (0)