Type Alias holochain::prelude::kitsune_p2p::dependencies::kitsune_p2p_types::dependencies::lair_keystore_api::lair_api::DeepLockPassphraseBytes
pub type DeepLockPassphraseBytes = SecretDataSized<64, 81>;
Expand description
The secret bytes of the passphrase
Aliased Type§
struct DeepLockPassphraseBytes(pub BinDataSized<24>, pub BinDataSized<81>);
Fields§
§0: BinDataSized<24>
§1: BinDataSized<81>
Implementations§
§impl<const M: usize, const C: usize> SecretDataSized<M, C>
impl<const M: usize, const C: usize> SecretDataSized<M, C>
pub async fn encrypt(
key: BufReadSized<32>,
data: BufReadSized<M>
) -> impl Future<Output = Result<SecretDataSized<M, C>, OneErr>>
pub async fn encrypt( key: BufReadSized<32>, data: BufReadSized<M> ) -> impl Future<Output = Result<SecretDataSized<M, C>, OneErr>>
Encrypt some data as a ‘SecretDataSized’ object with given context key.
pub async fn decrypt(
&self,
key: BufReadSized<32>
) -> impl Future<Output = Result<BufReadSized<M>, OneErr>>
pub async fn decrypt( &self, key: BufReadSized<32> ) -> impl Future<Output = Result<BufReadSized<M>, OneErr>>
Decrypt some data as a ‘SecretDataSized’ object with given context key.
Trait Implementations§
§impl<const M: usize, const C: usize> Clone for SecretDataSized<M, C>
impl<const M: usize, const C: usize> Clone for SecretDataSized<M, C>
§fn clone(&self) -> SecretDataSized<M, C>
fn clone(&self) -> SecretDataSized<M, C>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl<const M: usize, const C: usize> Debug for SecretDataSized<M, C>
impl<const M: usize, const C: usize> Debug for SecretDataSized<M, C>
§impl<'de, const M: usize, const C: usize> Deserialize<'de> for SecretDataSized<M, C>
impl<'de, const M: usize, const C: usize> Deserialize<'de> for SecretDataSized<M, C>
§fn deserialize<__D>(
__deserializer: __D
) -> Result<SecretDataSized<M, C>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<SecretDataSized<M, C>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<const M: usize, const C: usize> Serialize for SecretDataSized<M, C>
impl<const M: usize, const C: usize> Serialize for SecretDataSized<M, C>
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more