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

source

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

source§

fn into_api_enum(self) -> LairApiEnum

Convert this individual lair serialization object into a combined API enum instance variant.
source§

impl AsLairRequest for LairApiReqCryptoBoxXSalsaOpenByPubKey

§

type Response = LairApiResCryptoBoxXSalsaOpenByPubKey

The “Response” type associated with this request type.
source§

impl Debug for LairApiReqCryptoBoxXSalsaOpenByPubKey

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for LairApiReqCryptoBoxXSalsaOpenByPubKey

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for LairApiReqCryptoBoxXSalsaOpenByPubKey

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<LairApiEnum> for LairApiReqCryptoBoxXSalsaOpenByPubKey

§

type Error = OneErr

The type returned in the event of a conversion error.
source§

fn try_from(e: LairApiEnum) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,