Skip to content

std::crypto::subtle

Status: experimental

Constant-time comparison helpers.

API details and source

The implementation source contains the complete declarations and implementation notes. The table below lists canonical Gossamer call signatures; every item name links directly to its implementation file.

Item Canonical signature or declaration Description
constant_time_eq fn constant_time_eq(a: Vec<u8>, b: Vec<u8>) -> bool Compares two byte slices without data-dependent branches.