pub struct EnrollmentBlob {
pub version: u8,
pub key_fingerprint: String,
pub key_type: SshKeyType,
pub nonce: [u8; 12],
pub ciphertext: Vec<u8>,
}Expand description
Parsed enrollment blob.
Binary format:
Version byte (1 byte): 0x01
Key fingerprint length (2 bytes, BE): N
Key fingerprint (N bytes): SHA256:... (ASCII)
Key type length (1 byte): M
Key type (M bytes): "ssh-ed25519" or "ssh-rsa" (ASCII)
Nonce (12 bytes): random
Ciphertext + GCM tag (48 bytes): AES-256-GCM(kek, master_key)Fields§
§version: u8§key_fingerprint: String§key_type: SshKeyType§nonce: [u8; 12]§ciphertext: Vec<u8>32 bytes master key + 16 bytes GCM tag = 48 bytes.
Implementations§
Auto Trait Implementations§
impl Freeze for EnrollmentBlob
impl RefUnwindSafe for EnrollmentBlob
impl Send for EnrollmentBlob
impl Sync for EnrollmentBlob
impl Unpin for EnrollmentBlob
impl UnwindSafe for EnrollmentBlob
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