Expand description
Optional subtle::ConstantTimeEq integration for base64-ng.
The core base64-ng package stays zero-runtime-dependency. This companion
crate exists for applications that already admit subtle and want a
reviewed comparison primitive at the protocol boundary.
Length is treated as public. Mismatched lengths return
[subtle::Choice::from(0)] immediately. Use fixed-size protocol tokens when
length must not vary. When the length itself is secret, compare fixed-size
arrays or fixed-width protocol buffers directly with
subtle::ConstantTimeEq instead of this public-length helper.
Traits§
- Subtle
EqExt - Extension trait for comparing
base64-ngbuffers withsubtle.
Functions§
- subtle_
ct_ eq_ public_ len - Compares two byte slices with public length.