Searched refs:AlgorithmId (Results 1 – 8 of 8) sorted by relevance
| /optee_rust/examples/signature_verification-rs/ta/src/ |
| A D | main.rs | 28 use optee_utee::{AlgorithmId, AttributeId, AttributeMemref, Digest, Asymmetric, OperationMode}; 93 let dig = Digest::allocate(AlgorithmId::Sha256).unwrap(); in sign() 100 let rsa = Asymmetric::allocate(AlgorithmId::RsassaPkcs1V15Sha256, in sign() 144 let dig = Digest::allocate(AlgorithmId::Sha256).unwrap(); in verify() 150 let rsa = Asymmetric::allocate(AlgorithmId::RsassaPkcs1V15Sha256, in verify()
|
| /optee_rust/examples/aes-rs/ta/src/ |
| A D | main.rs | 30 use optee_utee::{AlgorithmId, ElementId, Cipher, OperationMode}; 95 pub fn ta2tee_algo_id(algo_id: u32) -> Result<AlgorithmId> { in ta2tee_algo_id() argument 97 Algo::ECB => Ok(AlgorithmId::AesEcbNopad), in ta2tee_algo_id() 98 Algo::CBC => Ok(AlgorithmId::AesCbcNopad), in ta2tee_algo_id() 99 Algo::CTR => Ok(AlgorithmId::AesCtr), in ta2tee_algo_id()
|
| /optee_rust/examples/acipher-rs/ta/src/ |
| A D | main.rs | 28 use optee_utee::{AlgorithmId, Asymmetric, OperationMode}; 93 AlgorithmId::RsaesPkcs1V15, in encrypt() 114 AlgorithmId::RsaesPkcs1V15, in decrypt()
|
| /optee_rust/examples/digest-rs/ta/src/ |
| A D | main.rs | 28 use optee_utee::{AlgorithmId, Digest}; 39 op: Digest::allocate(AlgorithmId::Sha256).unwrap(), in default()
|
| /optee_rust/optee-utee/src/ |
| A D | crypto_op.rs | 179 fn allocate(algo: AlgorithmId, mode: OperationMode, max_key_size: usize) -> Result<Self> { in allocate() argument 378 pub fn allocate(algo: AlgorithmId) -> Result<Self> { in allocate() 653 pub fn allocate(algo: AlgorithmId, mode: OperationMode, max_key_size: usize) -> Result<Self> { in allocate() argument 896 pub fn allocate(algo: AlgorithmId, max_key_size: usize) -> Result<Self> { in allocate() argument 1179 pub fn allocate(algo: AlgorithmId, mode: OperationMode, max_key_size: usize) -> Result<Self> { in allocate() argument 1438 pub fn allocate(algo: AlgorithmId, mode: OperationMode, max_key_size: usize) -> Result<Self> { in allocate() argument 1554 pub fn allocate(algo: AlgorithmId, max_key_size: usize) -> Result<Self> { in allocate() argument 1618 pub enum AlgorithmId { enum
|
| /optee_rust/examples/diffie_hellman-rs/ta/src/ |
| A D | main.rs | 28 use optee_utee::{AlgorithmId, DeriveKey}; 108 match DeriveKey::allocate(AlgorithmId::DhDeriveSharedSecret, KEY_SIZE) { in derive_key()
|
| /optee_rust/examples/hotp-rs/ta/src/ |
| A D | main.rs | 28 use optee_utee::{AlgorithmId, Mac}; 122 match Mac::allocate(AlgorithmId::HmacSha1, hotp.key_len * 8) { in hmac_sha1()
|
| /optee_rust/examples/authentication-rs/ta/src/ |
| A D | main.rs | 29 use optee_utee::{AlgorithmId, OperationMode, AE}; 110 ae.op = AE::allocate(AlgorithmId::AesCcm, mode, KEY_SIZE * 8).unwrap(); in prepare()
|
Completed in 40 milliseconds