Trait KeyType

Source
pub trait KeyType {
    // Provided methods
    fn new(_max_size: u32) -> TeeResult<Self>
       where Self: Sized { ... }
    fn is_valid_size(_size: u32) -> bool
       where Self: Sized { ... }
    fn size(&self) -> u32 { ... }
    fn max_size(&self) -> u32 { ... }
    fn buffer_attribute(&self, _id: AttributeId) -> Option<BufferAttribute<'_>> { ... }
    fn value_attribute(&self, _id: AttributeId) -> Option<ValueFields> { ... }
    fn reset(&mut self) { ... }
    fn populate(&mut self, _attributes: &[Attribute]) -> TeeResult { ... }
    fn generate(&mut self, _size: u32, _params: &[Attribute]) -> TeeResult { ... }
}

Provided Methods§

Source

fn new(_max_size: u32) -> TeeResult<Self>
where Self: Sized,

Source

fn is_valid_size(_size: u32) -> bool
where Self: Sized,

Source

fn size(&self) -> u32

Source

fn max_size(&self) -> u32

Source

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

Source

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

Source

fn reset(&mut self)

Source

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

Source

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

Implementors§

Source§

impl KeyType for EccKeypair

Source§

impl KeyType for NoKey

Source§

impl KeyType for RsaKeypair

Source§

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