Searched refs:TransientObjectType (Results 1 – 7 of 7) sorted by relevance
| /optee_rust/examples/diffie_hellman-rs/ta/src/ |
| A D | main.rs | 29 use optee_utee::{AttributeId, AttributeMemref, TransientObject, TransientObjectType}; 82 dh.key = TransientObject::allocate(TransientObjectType::DhKeypair, KEY_SIZE).unwrap(); in generate_key() 113 TransientObject::allocate(TransientObjectType::GenericSecret, KEY_SIZE).unwrap(); in derive_key()
|
| /optee_rust/examples/signature_verification-rs/ta/src/ |
| A D | main.rs | 30 use optee_utee::{TransientObject, TransientObjectType}; 76 TransientObject::allocate(TransientObjectType::RsaKeypair, 2048 as usize).unwrap(); in sign() 136 TransientObject::allocate(TransientObjectType::RsaPublicKey, 2048 as usize).unwrap(); in verify()
|
| /optee_rust/examples/acipher-rs/ta/src/ |
| A D | main.rs | 30 use optee_utee::{TransientObject, TransientObjectType}; 70 TransientObject::allocate(TransientObjectType::RsaKeypair, key_size as usize).unwrap(); in gen_key()
|
| /optee_rust/examples/hotp-rs/ta/src/ |
| A D | main.rs | 29 use optee_utee::{AttributeId, AttributeMemref, TransientObject, TransientObjectType}; 125 match TransientObject::allocate(TransientObjectType::HmacSha1, hotp.key_len * 8) { in hmac_sha1()
|
| /optee_rust/examples/aes-rs/ta/src/ |
| A D | main.rs | 31 use optee_utee::{AttributeId, AttributeMemref, TransientObject, TransientObjectType}; 135 aes.key_object = TransientObject::allocate(TransientObjectType::Aes, aes.key_size * 8).unwrap(); in alloc_resources()
|
| /optee_rust/examples/authentication-rs/ta/src/ |
| A D | main.rs | 30 use optee_utee::{AttributeId, AttributeMemref, TransientObject, TransientObjectType}; 112 let mut key_object = TransientObject::allocate(TransientObjectType::Aes, KEY_SIZE * 8).unwrap(); in prepare()
|
| /optee_rust/optee-utee/src/ |
| A D | object.rs | 418 pub enum TransientObjectType { enum 532 pub fn allocate(object_type: TransientObjectType, max_object_size: usize) -> Result<Self> { in allocate() argument
|
Completed in 20 milliseconds