reticulum-js
    Preparing search index...

    Function bytesEqual

    • Constant-time-ish equality check for two Uint8Arrays.

      Used for comparing hashes / public keys where short-circuiting on the first differing byte would leak timing information. Returns true only when both arrays are the same length and every byte matches.

      Parameters

      • a: Uint8Array<ArrayBufferLike>
      • b: Uint8Array<ArrayBufferLike>

      Returns boolean