Struct chaskey::Tag
[−]
[src]
pub struct Tag(_);
A 128-bit Chaskey tag.
WARNING: This is a wrapper around an [u32; 4]
in order to
provide constant-time equality comparisons. You may unwrap it if
you like, but you need to be very careful what you do with it, or
otherwise you may risk a timing
attack!
Methods
impl Tag
[src]
fn new(words: [u32; 4]) -> Tag
fn raw_words(&self) -> &[u32; 4]
Unwrap a Tag
into its raw word array. Performing
variable-time comparisons of these arrays may expose you to
timing attacks; stick to comparing the Tag
wrappers if you
can.
fn to_u64(&self) -> u64
fn raw_bytes(&self) -> [u8; 16]
Trait Implementations
impl Debug for Tag
[src]
impl PartialEq for Tag
[src]
fn eq(&self, other: &Tag) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.