Searched refs:AlgorithmId (Results 1 – 7 of 7) sorted by relevance
| /optee_rust/examples/aes-rs/ta/src/ |
| A D | main.rs | 24 use optee_utee::{AlgorithmId, ElementId, Cipher, OperationMode}; 90 pub fn ta2tee_algo_id(algo_id: u32) -> Result<AlgorithmId> { in ta2tee_algo_id() argument 92 Algo::ECB => Ok(AlgorithmId::AesEcbNopad), in ta2tee_algo_id() 93 Algo::CBC => Ok(AlgorithmId::AesCbcNopad), in ta2tee_algo_id() 94 Algo::CTR => Ok(AlgorithmId::AesCtr), in ta2tee_algo_id()
|
| /optee_rust/examples/digest-rs/ta/src/ |
| A D | main.rs | 23 use optee_utee::{AlgorithmId, Digest}; 34 op: Digest::allocate(AlgorithmId::Sha256).unwrap(), in default()
|
| /optee_rust/examples/acipher-rs/ta/src/ |
| A D | main.rs | 23 use optee_utee::{AlgorithmId, Asymmetric, OperationMode}; 88 AlgorithmId::RsaesPkcs1V15, in encrypt() 109 AlgorithmId::RsaesPkcs1V15, in decrypt()
|
| /optee_rust/optee-utee/src/ |
| A D | crypto_op.rs | 175 fn allocate(algo: AlgorithmId, mode: OperationMode, max_key_size: usize) -> Result<Self> { in allocate() argument 374 pub fn allocate(algo: AlgorithmId) -> Result<Self> { in allocate() 649 pub fn allocate(algo: AlgorithmId, mode: OperationMode, max_key_size: usize) -> Result<Self> { in allocate() argument 892 pub fn allocate(algo: AlgorithmId, max_key_size: usize) -> Result<Self> { in allocate() argument 1175 pub fn allocate(algo: AlgorithmId, mode: OperationMode, max_key_size: usize) -> Result<Self> { in allocate() argument 1434 pub fn allocate(algo: AlgorithmId, mode: OperationMode, max_key_size: usize) -> Result<Self> { in allocate() argument 1550 pub fn allocate(algo: AlgorithmId, max_key_size: usize) -> Result<Self> { in allocate() argument 1614 pub enum AlgorithmId { enum
|
| /optee_rust/examples/diffie_hellman-rs/ta/src/ |
| A D | main.rs | 23 use optee_utee::{AlgorithmId, DeriveKey}; 103 match DeriveKey::allocate(AlgorithmId::DhDeriveSharedSecret, KEY_SIZE) { in derive_key()
|
| /optee_rust/examples/hotp-rs/ta/src/ |
| A D | main.rs | 23 use optee_utee::{AlgorithmId, Mac}; 117 match Mac::allocate(AlgorithmId::HmacSha1, hotp.key_len * 8) { in hmac_sha1()
|
| /optee_rust/examples/authentication-rs/ta/src/ |
| A D | main.rs | 23 use optee_utee::{AlgorithmId, OperationMode, AE}; 104 ae.op = AE::allocate(AlgorithmId::AesCcm, mode, KEY_SIZE * 8).unwrap(); in prepare()
|
Completed in 18 milliseconds