[][src]Struct xaynet::mask::MaskSeed

pub struct MaskSeed(_);

A seed to generate a mask.

When this goes out of scope, its contents will be zeroed out.

Implementations

impl MaskSeed[src]

pub fn as_array(&self) -> [u8; 32][src]

Gets this seed as an array.

pub fn encrypt(
    &self,
    pk: &SumParticipantEphemeralPublicKey
) -> EncryptedMaskSeed
[src]

Encrypts this seed with the given public key as an EncryptedMaskSeed.

pub fn derive_mask(&self, len: usize, config: MaskConfig) -> MaskObject[src]

Derives a mask of given length from this seed wrt the masking configuration.

Trait Implementations

impl AsMut<Seed> for MaskSeed[src]

impl AsRef<Seed> for MaskSeed[src]

impl ByteObject for MaskSeed[src]

impl Clone for MaskSeed[src]

impl Debug for MaskSeed[src]

impl Eq for MaskSeed[src]

impl PartialEq<MaskSeed> for MaskSeed[src]

impl StructuralEq for MaskSeed[src]

impl StructuralPartialEq for MaskSeed[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

impl<T> WithSubscriber for T[src]