pub struct Set {
    pub primary_id: u32,
    pub prfs: HashMap<u32, Box<dyn Prf>>,
}
Expand description

Set is a set of PRFs. A Keyset can be converted into a set of PRFs using this primitive. Every key in the keyset corresponds to a PRF in the prf.Set. Every PRF in the set is given an ID, which is the same ID as the key id in the Keyset.

Fields

primary_id: u32

The key ID marked as primary in the corresponding Keyset.

prfs: HashMap<u32, Box<dyn Prf>>

Map key IDs to their corresponding Prf.

Implementations

Create a Set from the given keyset handle.

Equivalent to self.prfs[set.primary_id].compute_prf(input, output_length).

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.