diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 79c4ffdd406ea4..6edf11f704fa5f 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -1848,6 +1848,7 @@ added: v6.6.0 - `a` {Buffer | TypedArray | DataView} - `b` {Buffer | TypedArray | DataView} +This function is based on a constant-time algorithm. Returns true if `a` is equal to `b`, without leaking timing information that would allow an attacker to guess one of the values. This is suitable for comparing HMAC digests or secret values like authentication cookies or