Struct aws_lc_rs::aead::nonce_sequence::Counter64Builder
source · pub struct Counter64Builder { /* private fields */ }Expand description
NonceSequenceBuilder facilitates the building of a Counter64.
Implementations§
source§impl Counter64Builder
impl Counter64Builder
sourcepub fn new() -> Counter64Builder
pub fn new() -> Counter64Builder
Constructs a Counter64Builder with all default values.
sourcepub fn identifier<T: Into<[u8; 4]>>(self, identifier: T) -> Counter64Builder
pub fn identifier<T: Into<[u8; 4]>>(self, identifier: T) -> Counter64Builder
The identifier for the Counter64 - this value helps differentiate nonce
sequences.
sourcepub fn counter(self, counter: u64) -> Counter64Builder
pub fn counter(self, counter: u64) -> Counter64Builder
The starting counter value for the Counter64.
sourcepub fn limit(self, limit: u64) -> Counter64Builder
pub fn limit(self, limit: u64) -> Counter64Builder
The limit for the number of nonces the Counter64 can produce.