Skip to content

Commit

Permalink
doc: update timingSafeEqual error case
Browse files Browse the repository at this point in the history
PR-URL: nodejs#41507
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
  • Loading branch information
AlexA-1976 authored and Linkgoron committed Jan 31, 2022
1 parent f92a1f0 commit 6ebdb87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/api/crypto.md
Expand Up @@ -5317,7 +5317,8 @@ comparing HMAC digests or secret values like authentication cookies or
[capability urls](https://www.w3.org/TR/capability-urls/).

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

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

0 comments on commit 6ebdb87

Please sign in to comment.