diff options
author | Alex Agranov <v-alagra@microsoft.com> | 2022-01-14 02:49:37 +0300 |
---|---|---|
committer | Filip Skokan <panva.ip@gmail.com> | 2022-01-20 12:55:48 +0300 |
commit | 12608d3dbcd7bdb12012903b44876ea19136f81d (patch) | |
tree | 954b429afae9c32449647815d7734ad604a5490b /doc/api/crypto.md | |
parent | 9318408c49dc23a69dacc926e05290d0b36dbdd5 (diff) |
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>
Diffstat (limited to 'doc/api/crypto.md')
-rw-r--r-- | doc/api/crypto.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/api/crypto.md b/doc/api/crypto.md index e51148d85a7..d886712d46a 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -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 |