function constantTimeEqualBytes
constantTimeEqualBytes(): boolean

Constant-time comparison for Uint8Arrays. Arrays of different lengths are never equal — the length difference seeds the mismatch flags, so no branch on it can leak timing.

Parameters

Return Type

boolean

Usage

import { constantTimeEqualBytes } from "docs/crypto.ts";