Home
last modified time | relevance | path

Searched refs:allocate (Results 1 – 8 of 8) sorted by relevance

/optee_rust/optee-utee/src/
A Dcrypto_op.rs175 fn allocate(algo: AlgorithmId, mode: OperationMode, max_key_size: usize) -> Result<Self> { in allocate() method
374 pub fn allocate(algo: AlgorithmId) -> Result<Self> { in allocate() method
375 match OperationHandle::allocate(algo, OperationMode::Digest, 0) { in allocate()
649 pub fn allocate(algo: AlgorithmId, mode: OperationMode, max_key_size: usize) -> Result<Self> { in allocate() method
650 match OperationHandle::allocate(algo, mode, max_key_size) { in allocate()
892 pub fn allocate(algo: AlgorithmId, max_key_size: usize) -> Result<Self> { in allocate() method
893 match OperationHandle::allocate(algo, OperationMode::Mac, max_key_size) { in allocate()
1176 match OperationHandle::allocate(algo, mode, max_key_size) { in allocate()
1435 match OperationHandle::allocate(algo, mode, max_key_size) { in allocate()
1550 pub fn allocate(algo: AlgorithmId, max_key_size: usize) -> Result<Self> { in allocate() method
[all …]
A Dobject.rs528 pub fn allocate(object_type: TransientObjectType, max_object_size: usize) -> Result<Self> { in allocate() method
1373 pub fn allocate() -> Result<Self> { in allocate() method
/optee_rust/examples/diffie_hellman-rs/ta/src/
A Dmain.rs77 dh.key = TransientObject::allocate(TransientObjectType::DhKeypair, KEY_SIZE).unwrap(); in generate_key()
103 match DeriveKey::allocate(AlgorithmId::DhDeriveSharedSecret, KEY_SIZE) { in derive_key()
108 TransientObject::allocate(TransientObjectType::GenericSecret, KEY_SIZE).unwrap(); in derive_key()
/optee_rust/examples/acipher-rs/ta/src/
A Dmain.rs65 TransientObject::allocate(TransientObjectType::RsaKeypair, key_size as usize).unwrap(); in gen_key()
87 match Asymmetric::allocate( in encrypt()
108 match Asymmetric::allocate( in decrypt()
/optee_rust/examples/hotp-rs/ta/src/
A Dmain.rs117 match Mac::allocate(AlgorithmId::HmacSha1, hotp.key_len * 8) { in hmac_sha1()
120 match TransientObject::allocate(TransientObjectType::HmacSha1, hotp.key_len * 8) { in hmac_sha1()
/optee_rust/examples/digest-rs/ta/src/
A Dmain.rs34 op: Digest::allocate(AlgorithmId::Sha256).unwrap(), in default()
/optee_rust/examples/aes-rs/ta/src/
A Dmain.rs124 aes.cipher = Cipher::allocate( in alloc_resources()
130 aes.key_object = TransientObject::allocate(TransientObjectType::Aes, aes.key_size * 8).unwrap(); in alloc_resources()
/optee_rust/examples/authentication-rs/ta/src/
A Dmain.rs104 ae.op = AE::allocate(AlgorithmId::AesCcm, mode, KEY_SIZE * 8).unwrap(); in prepare()
106 let mut key_object = TransientObject::allocate(TransientObjectType::Aes, KEY_SIZE * 8).unwrap(); in prepare()

Completed in 13 milliseconds