Struct yubihsm::wrap::WrapMessage[][src]

pub struct WrapMessage {
    pub nonce: WrapNonce,
    pub ciphertext: Vec<u8>,
}

Message (either object or arbitrary data) encrypted under a wrap key

Fields

Nonce used to encrypt the wrapped data

Ciphertext of the encrypted object

Methods

impl WrapMessage
[src]

Load a WrapMessage from a byte vector

Create a new WrapMessage

Important traits for Vec<u8>

Convert this message into a byte vector

Trait Implementations

impl Debug for WrapMessage
[src]

Formats the value using the given formatter. Read more

impl Clone for WrapMessage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Into<Vec<u8>> for WrapMessage
[src]

Important traits for Vec<u8>

Performs the conversion.

Auto Trait Implementations

impl Send for WrapMessage

impl Sync for WrapMessage