pub struct GcmLimits;Expand description
Invocation limits an agent must respect for a single GCM key.
From SP 800-38D §8.3 and the AES-GCM analysis behind RFC 8446.
Implementations§
Source§impl GcmLimits
impl GcmLimits
Sourcepub const MAX_PLAINTEXT_BYTES: u64
pub const MAX_PLAINTEXT_BYTES: u64
Maximum plaintext bytes in one invocation: 2^39 - 256 bits.
Sourcepub const MAX_RANDOM_NONCE_INVOCATIONS: u64
pub const MAX_RANDOM_NONCE_INVOCATIONS: u64
Maximum invocations under one key with random 96-bit nonces.
Sourcepub const RECOMMENDED_NONCE_LEN: usize = 12
pub const RECOMMENDED_NONCE_LEN: usize = 12
Recommended nonce length in bytes; other lengths are legal but slower and lose the injectivity guarantee that makes counters safe.
Auto Trait Implementations§
impl Freeze for GcmLimits
impl RefUnwindSafe for GcmLimits
impl Send for GcmLimits
impl Sync for GcmLimits
impl Unpin for GcmLimits
impl UnsafeUnpin for GcmLimits
impl UnwindSafe for GcmLimits
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