pub struct KeyBlock {
pub keytype: u16,
pub key: Vec<u8>,
}Expand description
Symmetric key material for the credential — session key for a TGT, service key for a
ticket. MIT stores an etype alongside the keytype for historical reasons; it is
always zero in v4 files and mirrored back on write.
Fields§
§keytype: u16Kerberos encryption type — 17 (AES128-CTS-HMAC-SHA1-96), 18 (AES256-CTS-HMAC-SHA1-96),
23 (RC4-HMAC), … — one of the ETYPE_* constants in krb5.h.
key: Vec<u8>Raw key bytes, length determined by keytype (16 for AES128 / RC4, 32 for AES256).
Trait Implementations§
impl Eq for KeyBlock
impl StructuralPartialEq for KeyBlock
Auto Trait Implementations§
impl Freeze for KeyBlock
impl RefUnwindSafe for KeyBlock
impl Send for KeyBlock
impl Sync for KeyBlock
impl Unpin for KeyBlock
impl UnsafeUnpin for KeyBlock
impl UnwindSafe for KeyBlock
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