Expand description
Define helpers for working with types in constant time.
Re-exportsยง
use derive_deftly::Deftly;๐use derive_deftly::define_derive_deftly;๐use subtle::Choice;๐use subtle::ConditionallySelectable;๐use subtle::ConstantTimeEq;๐use zeroize::Zeroize;๐use zeroize::Zeroize;๐use tor_memquota_cost::derive_deftly_template_HasMemoryCost;๐pub(crate) use derive_deftly_template_ConstantTimeEq;๐pub(crate) use derive_deftly_template_PartialEqFromCtEq;๐
Structsยง
- CtByte
Array - A byte array of length N for which comparisons are performed in constant time.
Functionsยง
- ct_
lookup - Try to find an item in a slice without leaking where and whether the item was found.