mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
doc: update timingSafeEqual error case
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
9318408c49
commit
12608d3dbc
1 file changed
+2
-1
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user