Enum optee_utee::object::TransientObjectType [−][src]
#[repr(u32)]
pub enum TransientObjectType {
Show 21 variants
Aes,
Des,
Des3,
HmacMd5,
HmacSha1,
HmacSha224,
HmacSha256,
HmacSha384,
HmacSha512,
RsaPublicKey,
RsaKeypair,
DsaPublicKey,
DsaKeypair,
DhKeypair,
EcdsaPublicKey,
EcdsaKeypair,
EcdhPublicKey,
EcdhKeypair,
GenericSecret,
CorruptedObject,
Data,
}
Expand description
Define types of TransientObject with predefined maximum sizes.
Variants
128, 192, or 256 bits
Always 64 bits including the parity bits. This gives an effective key size of 56 bits
128 or 192 bits including the parity bits. This gives effective key sizes of 112 or 168 bits
Between 64 and 512 bits, multiple of 8 bits
Between 80 and 512 bits, multiple of 8 bits
Between 112 and 512 bits, multiple of 8 bits
Between 192 and 1024 bits, multiple of 8 bits
Between 256 and 1024 bits, multiple of 8 bits
Between 256 and 1024 bits, multiple of 8 bits
The number of bits in the modulus. 256, 512, 768, 1024, 1536 and 2048 bit keys SHALL be supported. Support for other key sizes including bigger key sizes is implementation-dependent. Minimum key size is 256 bits
Same as RsaPublicKey key size.
Depends on Algorithm:
Same as DsaPublicKey key size.
From 256 to 2048 bits, multiple of 8 bits.
Between 160 and 521 bits. Conditional: Available only if at least one of the ECC the curves defined in Table 6-14 with “generic” equal to “Y” is supported.
Between 160 and 521 bits. Conditional: Available only if at least one of the ECC curves defined in Table 6-14 with “generic” equal to “Y” is supported. SHALL be same value as for ECDSA public key size.
Between 160 and 521 bits. Conditional: Available only if at least one of the ECC curves defined in Table 6-14 with “generic” equal to “Y” is supported.
Between 160 and 521 bits. Conditional: Available only if at least one of the ECC curves defined in Table 6-14 with “generic” equal to “Y” is supported. SHALL be same value as for ECDH public key size
Multiple of 8 bits, up to 4096 bits. This type is intended for secret data that has been derived from a key derivation scheme.
Object is corrupted.
0 – All data is in the associated data stream.
Auto Trait Implementations
impl RefUnwindSafe for TransientObjectType
impl Send for TransientObjectType
impl Sync for TransientObjectType
impl Unpin for TransientObjectType
impl UnwindSafe for TransientObjectType
Blanket Implementations
pub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
pub fn from(t: T) -> T
pub fn from(t: T) -> T
Performs the conversion.
pub fn into(self) -> U
pub fn into(self) -> U
Performs the conversion.