Type Alias HmacSha512Key

Source
pub type HmacSha512Key = SimpleSymmetricKey<256, 512, 8>;

Aliased Type§

struct HmacSha512Key {
    pub secret: Vec<u8>,
}

Fields§

§secret: Vec<u8>

Trait Implementations

Source§

impl<const SIZE_MIN: u32, const SIZE_MAX: u32, const SIZE_MULTIPLE: u32> Clone for SimpleSymmetricKey<SIZE_MIN, SIZE_MAX, SIZE_MULTIPLE>

Source§

fn clone(&self) -> SimpleSymmetricKey<SIZE_MIN, SIZE_MAX, SIZE_MULTIPLE>

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

impl<const SIZE_MIN: u32, const SIZE_MAX: u32, const SIZE_MULTIPLE: u32> KeyType for SimpleSymmetricKey<SIZE_MIN, SIZE_MAX, SIZE_MULTIPLE>

Source§

fn new(max_size: u32) -> TeeResult<Self>

Source§

fn is_valid_size(size: u32) -> bool

Source§

fn size(&self) -> u32

Source§

fn max_size(&self) -> u32

Source§

fn buffer_attribute(&self, id: AttributeId) -> Option<BufferAttribute<'_>>

Source§

fn reset(&mut self)

Source§

fn populate(&mut self, attributes: &[Attribute]) -> TeeResult

Source§

fn generate(&mut self, size: u32, params: &[Attribute]) -> TeeResult

Source§

fn value_attribute(&self, _id: AttributeId) -> Option<ValueFields>