Searched refs:AttributeId (Results 1 – 6 of 6) sorted by relevance
| /optee_rust/examples/diffie_hellman-rs/ta/src/ |
| A D | main.rs | 29 use optee_utee::{AttributeId, AttributeMemref, TransientObject, TransientObjectType}; 78 let attr_prime = AttributeMemref::from_ref(AttributeId::DhPrime, prime_slice); in generate_key() 79 let attr_base = AttributeMemref::from_ref(AttributeId::DhBase, base_slice); in generate_key() 90 .ref_attribute(AttributeId::DhPublicValue, &mut public_buffer) in generate_key() 95 .ref_attribute(AttributeId::DhPrivateValue, &mut private_buffer) in generate_key() 106 let received_public = AttributeMemref::from_ref(AttributeId::DhPublicValue, p0.buffer()); in derive_key() 116 .ref_attribute(AttributeId::SecretValue, p1.buffer()) in derive_key()
|
| /optee_rust/examples/signature_verification-rs/ta/src/ |
| A D | main.rs | 28 use optee_utee::{AlgorithmId, AttributeId, AttributeMemref, Digest, Asymmetric, OperationMode}; 80 match rsa_key.ref_attribute(AttributeId::RsaModulus, &mut p1.buffer()) { in sign() 85 match rsa_key.ref_attribute(AttributeId::RsaPublicExponent, &mut p1.buffer()[pub_key_size..]) { in sign() 138 let mod_attr = AttributeMemref::from_ref(AttributeId::RsaModulus, &pub_key_mod); in verify() 139 let exp_attr = AttributeMemref::from_ref(AttributeId::RsaPublicExponent, &pub_key_exp); in verify()
|
| /optee_rust/examples/aes-rs/ta/src/ |
| A D | main.rs | 31 use optee_utee::{AttributeId, AttributeMemref, TransientObject, TransientObjectType}; 137 let attr = AttributeMemref::from_ref(AttributeId::SecretValue, &key); in alloc_resources() 152 let attr = AttributeMemref::from_ref(AttributeId::SecretValue, &key); in set_aes_key()
|
| /optee_rust/optee-utee/src/ |
| A D | object.rs | 95 pub fn from_ref(id: AttributeId, buffer: &'attrref [u8]) -> Self { in from_ref() argument 142 pub fn from_value(id: AttributeId, a: u32, b: u32) -> Self { in from_value() argument 246 fn ref_attribute(&self, id: AttributeId, buffer: &mut [u8]) -> Result<usize> { in ref_attribute() argument 363 pub enum AttributeId { enum 692 pub fn ref_attribute(&self, id: AttributeId, buffer: &mut [u8]) -> Result<usize> { in ref_attribute() argument 1145 pub fn ref_attribute(&self, id: AttributeId, buffer: &mut [u8]) -> Result<usize> { in ref_attribute() argument
|
| /optee_rust/examples/hotp-rs/ta/src/ |
| A D | main.rs | 29 use optee_utee::{AttributeId, AttributeMemref, TransientObject, TransientObjectType}; 131 let attr = AttributeMemref::from_ref(AttributeId::SecretValue, &tmp_key); in hmac_sha1()
|
| /optee_rust/examples/authentication-rs/ta/src/ |
| A D | main.rs | 30 use optee_utee::{AttributeId, AttributeMemref, TransientObject, TransientObjectType}; 113 let attr = AttributeMemref::from_ref(AttributeId::SecretValue, key); in prepare()
|
Completed in 33 milliseconds