Module aws_lc_rs::aead::nonce_sequence
source · Expand description
Implementations of NonceSequence for use with BoundKeys.
Structs§
Counter32is an implementation of theNonceSequencetrait. The internal state of aCounter32is a 32-bit unsigned counter that increments on each call toadvanceand an optional 8-byte identifier. Counter and identifier values are used to construct each nonce. A limit can be set on the number of nonces allowed to be generated, by default this limit isu32::MAX.NonceSequenceBuilderfacilitates the building of aCounter32.Counter64is an implementation of theNonceSequencetrait. The internal state of aCounter64is a 64-bit unsigned counter that increments on each call toadvanceand an optional 4-byte identifier. Counter and identifier values are used to construct each nonce. A limit can be set on the number of nonces allowed to be generated, by default this limit isu64::MAX. See Section 3.2 of RFC 5116.NonceSequenceBuilderfacilitates the building of aCounter64.