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.rs41 pub enum Algo { enum
48 impl From<u32> for Algo { implementation
50 fn from(value: u32) -> Algo { in from() argument
52 0 => Algo::ECB, in from()
53 1 => Algo::CBC, in from()
54 2 => Algo::CTR, in from()
55 _ => Algo::Unknown, in from()
/optee_rust/examples/aes-rs/ta/src/
A Dmain.rs33 use proto::{Algo, Command, KeySize, Mode};
96 match Algo::from(algo_id) { in ta2tee_algo_id()
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/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 20 milliseconds