pub struct EncryptedBlob {
pub ephemeral_public: Vec<u8>,
pub ciphertext: Vec<u8>,
pub nonce: Vec<u8>,
pub tag: Vec<u8>,
}Expand description
ECIES-encrypted blob.
Fields§
§ephemeral_public: Vec<u8>Ephemeral public key R (uncompressed, 65 bytes).
ciphertext: Vec<u8>AEAD ciphertext.
nonce: Vec<u8>AEAD nonce (12 bytes for AES-GCM).
tag: Vec<u8>AEAD tag (16 bytes for AES-256-GCM).
Trait Implementations§
Source§impl Clone for EncryptedBlob
impl Clone for EncryptedBlob
Source§fn clone(&self) -> EncryptedBlob
fn clone(&self) -> EncryptedBlob
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncryptedBlob
impl Debug for EncryptedBlob
Source§impl<'de> Deserialize<'de> for EncryptedBlob
impl<'de> Deserialize<'de> for EncryptedBlob
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EncryptedBlob
impl RefUnwindSafe for EncryptedBlob
impl Send for EncryptedBlob
impl Sync for EncryptedBlob
impl Unpin for EncryptedBlob
impl UnsafeUnpin for EncryptedBlob
impl UnwindSafe for EncryptedBlob
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