pub struct SealedSecret {
pub server_domain: String,
pub server_pubkey_id: String,
pub ephemeral_pubkey: String,
pub salt: String,
pub nonce: String,
pub ciphertext: String,
}
Fields§
§server_domain: String
Domain of the autoschematic server against which this secret was sealed
server_pubkey_id: String
ID of the public key that was used to seal this secret
ephemeral_pubkey: String
Public part of the ephemeral ECDSA keypair used in conjunction with the server key to derive the shared used to encrypt the secret
salt: String
Salt used for symmetric key derivation
nonce: String
Nonce used for symmetric encryption
ciphertext: String
Resulting ciphertext encrypted with the selected AEAD
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SealedSecret
impl<'de> Deserialize<'de> for SealedSecret
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 SealedSecret
impl RefUnwindSafe for SealedSecret
impl Send for SealedSecret
impl Sync for SealedSecret
impl Unpin for SealedSecret
impl UnwindSafe for SealedSecret
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