pub type Seed = SecretDataSized<32, 49>;
Expand description

Data type for secret seed

Aliased Type§

struct Seed(pub BinDataSized<24>, pub BinDataSized<49>);

Fields§

§0: BinDataSized<24>§1: BinDataSized<49>

Implementations§

§

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>>

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>>

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>

§

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)

Performs copy-assignment from source. Read more
§

impl<const M: usize, const C: usize> Debug for SecretDataSized<M, C>

§

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

Formats the value using the given formatter. Read more
§

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>,

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

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,

Serialize this value into the given Serde serializer. Read more