Home
last modified time | relevance | path

Searched refs:Algo (Results 1 – 3 of 3) sorted by relevance

/optee_rust/examples/aes-rs/proto/src/
A Dlib.rs39 pub enum Algo { enum
46 impl From<u32> for Algo { implementation
48 fn from(value: u32) -> Algo { in from() argument
50 0 => Algo::ECB, in from()
51 1 => Algo::CBC, in from()
52 2 => Algo::CTR, in from()
53 _ => Algo::Unknown, in from()
/optee_rust/examples/aes-rs/ta/src/
A Dmain.rs27 use proto::{Algo, Command, KeySize, Mode};
91 match Algo::from(algo_id) { in ta2tee_algo_id()
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/aes-rs/host/src/
A Dmain.rs21 use proto::{Algo, Command, KeySize, Mode, UUID};
36 let p0 = ParamValue::new(Algo::CTR as u32, 0, ParamType::ValueInput); in prepare_aes()

Completed in 702 milliseconds