pub struct LairApiReqCryptoBoxXSalsaOpenByPubKey {
pub msg_id: Arc<str>,
pub sender_pub_key: X25519PubKey,
pub recipient_pub_key: X25519PubKey,
pub deep_lock_passphrase: Option<SecretDataSized<64, 81>>,
pub nonce: [u8; 24],
pub cipher: Arc<[u8]>,
}
Expand description
Request “crypto_box_open” decryption.
Fields§
§msg_id: Arc<str>
Msg id to relate request / response.
sender_pub_key: X25519PubKey
The pub key representing the sender.
recipient_pub_key: X25519PubKey
The pub key of the recipient.
deep_lock_passphrase: Option<SecretDataSized<64, 81>>
If this new seed is to be deep_locked, the passphrase for that.
nonce: [u8; 24]
The nonce associated with the cipher.
cipher: Arc<[u8]>
The data to decrypt.
Implementations§
source§impl LairApiReqCryptoBoxXSalsaOpenByPubKey
impl LairApiReqCryptoBoxXSalsaOpenByPubKey
sourcepub fn new(
sender_pub_key: X25519PubKey,
recipient_pub_key: X25519PubKey,
deep_lock_passphrase: Option<SecretDataSized<64, 81>>,
nonce: [u8; 24],
cipher: Arc<[u8]>
) -> Self
pub fn new( sender_pub_key: X25519PubKey, recipient_pub_key: X25519PubKey, deep_lock_passphrase: Option<SecretDataSized<64, 81>>, nonce: [u8; 24], cipher: Arc<[u8]> ) -> Self
Make a crypto_box_open request.
Trait Implementations§
source§impl AsLairCodec for LairApiReqCryptoBoxXSalsaOpenByPubKey
impl AsLairCodec for LairApiReqCryptoBoxXSalsaOpenByPubKey
source§fn into_api_enum(self) -> LairApiEnum
fn into_api_enum(self) -> LairApiEnum
Convert this individual lair serialization object
into a combined API enum instance variant.
source§impl AsLairRequest for LairApiReqCryptoBoxXSalsaOpenByPubKey
impl AsLairRequest for LairApiReqCryptoBoxXSalsaOpenByPubKey
§type Response = LairApiResCryptoBoxXSalsaOpenByPubKey
type Response = LairApiResCryptoBoxXSalsaOpenByPubKey
The “Response” type associated with this request type.
source§impl<'de> Deserialize<'de> for LairApiReqCryptoBoxXSalsaOpenByPubKey
impl<'de> Deserialize<'de> for LairApiReqCryptoBoxXSalsaOpenByPubKey
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 RefUnwindSafe for LairApiReqCryptoBoxXSalsaOpenByPubKey
impl Send for LairApiReqCryptoBoxXSalsaOpenByPubKey
impl Sync for LairApiReqCryptoBoxXSalsaOpenByPubKey
impl Unpin for LairApiReqCryptoBoxXSalsaOpenByPubKey
impl UnwindSafe for LairApiReqCryptoBoxXSalsaOpenByPubKey
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