pub struct KeyBlockShape {
pub enc_key_len: usize,
pub fixed_iv_len: usize,
pub explicit_nonce_len: usize,
}展开描述
How 一个 TLS1.2 key_block is partitioned.
注:当前不支持 mac_key_length 非零的密码包。
字段§
§enc_key_len: usizeHow long keys are.
enc_key_length terminology is 从 标准 (RFC5246 A.6)。
fixed_iv_len: usizeHow long the fixed part of the ‘IV’ is.
fixed_iv_length terminology is 从 标准 (RFC5246 A.6)。
This isn’t usually an IV, but we continue the terminology misuse 到 match 标准.
§explicit_nonce_len: usizeThis 是 non-标准 extension which extends the key block 到 provide an initial explicit nonce offset, in 一个 deterministic 并 safe way. GCM needs this, chacha20poly1305 works this way by design.
自动 Trait 实现§
impl Freeze for KeyBlockShape
impl RefUnwindSafe for KeyBlockShape
impl Send for KeyBlockShape
impl Sync for KeyBlockShape
impl Unpin for KeyBlockShape
impl UnsafeUnpin for KeyBlockShape
impl UnwindSafe for KeyBlockShape
Blanket 实现§
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 从 an owned value. 更多信息