pub struct Normalized {
pub domain: &'static str,
pub bytes: Protected<Vec<u8>>,
}Expand description
The normalized bytes for one equality term and the domain they belong to.
The fields are public so an index layer can build a term of its own,
and whatever consumes a Normalized trusts them: a PRF derives under
the domain it is handed. The only way to get the frozen encodings is
through normalize or the per-kind encoders here.
Debug shows the domain and masks the bytes.
Fields§
§domain: &'static strThe frozen domain label, one of the domain constants.
bytes: Protected<Vec<u8>>The normalized plaintext, protected.
Trait Implementations§
Source§impl Debug for Normalized
impl Debug for Normalized
impl OpaqueDebug for Normalized
Auto Trait Implementations§
impl Freeze for Normalized
impl RefUnwindSafe for Normalized
impl Send for Normalized
impl Sync for Normalized
impl Unpin for Normalized
impl UnsafeUnpin for Normalized
impl UnwindSafe for Normalized
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more