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