Struct yubihsm::wrap::WrapMessage [−][src]
Message (either object or arbitrary data) encrypted under a wrap key
Fields
nonce: WrapNonce
Nonce used to encrypt the wrapped data
ciphertext: Vec<u8>
Ciphertext of the encrypted object
Methods
impl WrapMessage
[src]
impl WrapMessage
pub fn from_vec(vec: Vec<u8>) -> Result<Self, Error>
[src]
pub fn from_vec(vec: Vec<u8>) -> Result<Self, Error>
Load a WrapMessage
from a byte vector
pub fn new<N, V>(nonce: N, ciphertext: V) -> Self where
N: Into<WrapNonce>,
V: Into<Vec<u8>>,
[src]
pub fn new<N, V>(nonce: N, ciphertext: V) -> Self where
N: Into<WrapNonce>,
V: Into<Vec<u8>>,
Create a new WrapMessage
pub fn into_vec(self) -> Vec<u8>
[src]
pub fn into_vec(self) -> Vec<u8>
Convert this message into a byte vector
Trait Implementations
impl Debug for WrapMessage
[src]
impl Debug for WrapMessage
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for WrapMessage
[src]
impl Clone for WrapMessage
fn clone(&self) -> WrapMessage
[src]
fn clone(&self) -> WrapMessage
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Into<Vec<u8>> for WrapMessage
[src]
impl Into<Vec<u8>> for WrapMessage
Auto Trait Implementations
impl Send for WrapMessage
impl Send for WrapMessage
impl Sync for WrapMessage
impl Sync for WrapMessage