| /optee_rust/examples/big_int-rs/proto/src/ |
| A D | lib.rs | 20 pub enum Command { enum 31 impl From<u32> for Command { implementation 33 fn from(value: u32) -> Command { in from() argument 35 0 => Command::Compare, in from() 36 1 => Command::Convert, in from() 37 2 => Command::Add, in from() 38 3 => Command::Sub, in from() 39 4 => Command::Multiply, in from() 40 5 => Command::Divide, in from() 41 6 => Command::Module, in from() [all …]
|
| /optee_rust/examples/acipher-rs/proto/src/ |
| A D | lib.rs | 20 pub enum Command { enum 28 impl From<u32> for Command { implementation 30 fn from(value: u32) -> Command { in from() argument 32 0 => Command::GenKey, in from() 33 1 => Command::GetSize, in from() 34 2 => Command::Encrypt, in from() 35 3 => Command::Decrypt, in from() 36 _ => Command::Unknown, in from()
|
| /optee_rust/examples/secure_storage-rs/proto/src/ |
| A D | lib.rs | 20 pub enum Command { enum 27 impl From<u32> for Command { implementation 29 fn from(value: u32) -> Command { in from() argument 31 0 => Command::Read, in from() 32 1 => Command::Write, in from() 33 2 => Command::Delete, in from() 34 _ => Command::Unknown, in from()
|
| /optee_rust/examples/signature_verification-rs/proto/src/ |
| A D | lib.rs | 20 pub enum Command { enum 26 impl From<u32> for Command { implementation 28 fn from(value: u32) -> Command { in from() argument 30 0 => Command::Sign, in from() 31 1 => Command::Verify, in from() 32 _ => Command::Unknown, in from()
|
| /optee_rust/examples/digest-rs/proto/src/ |
| A D | lib.rs | 20 pub enum Command { enum 26 impl From<u32> for Command { implementation 28 fn from(value: u32) -> Command { in from() argument 30 0 => Command::Update, in from() 31 1 => Command::DoFinal, in from() 32 _ => Command::Unknown, in from()
|
| /optee_rust/examples/hotp-rs/proto/src/ |
| A D | lib.rs | 20 pub enum Command { enum 26 impl From<u32> for Command { implementation 28 fn from(value: u32) -> Command { in from() argument 30 0 => Command::RegisterSharedKey, in from() 31 1 => Command::GetHOTP, in from() 32 _ => Command::Unknown, in from()
|
| /optee_rust/examples/hello_world-rs/proto/src/ |
| A D | lib.rs | 20 pub enum Command { enum 26 impl From<u32> for Command { implementation 28 fn from(value: u32) -> Command { in from() argument 30 0 => Command::IncValue, in from() 31 1 => Command::DecValue, in from() 32 _ => Command::Unknown, in from()
|
| /optee_rust/examples/diffie_hellman-rs/proto/src/ |
| A D | lib.rs | 20 pub enum Command { enum 26 impl From<u32> for Command { implementation 28 fn from(value: u32) -> Command { in from() argument 30 0 => Command::GenerateKey, in from() 31 1 => Command::DeriveKey, in from() 32 _ => Command::Unknown, in from()
|
| /optee_rust/examples/authentication-rs/proto/src/ |
| A D | lib.rs | 20 pub enum Command { enum 28 impl From<u32> for Command { implementation 30 fn from(value: u32) -> Command { in from() argument 32 0 => Command::Prepare, in from() 33 1 => Command::Update, in from() 34 2 => Command::EncFinal, in from() 35 3 => Command::DecFinal, in from() 36 _ => Command::Unknown, in from()
|
| /optee_rust/examples/time-rs/proto/src/ |
| A D | lib.rs | 20 pub enum Command { enum 25 impl From<u32> for Command { implementation 27 fn from(value: u32) -> Command { in from() argument 29 0 => Command::Test, in from() 30 _ => Command::Unknown, in from()
|
| /optee_rust/examples/random-rs/proto/src/ |
| A D | lib.rs | 20 pub enum Command { enum 25 impl From<u32> for Command { implementation 27 fn from(value: u32) -> Command { in from() argument 29 0 => Command::RandomGenerator, in from() 30 _ => Command::Unknown, in from()
|
| /optee_rust/examples/aes-rs/proto/src/ |
| A D | lib.rs | 20 pub enum Command { enum 28 impl From<u32> for Command { implementation 30 fn from(value: u32) -> Command { in from() argument 32 0 => Command::Prepare, in from() 33 1 => Command::SetKey, in from() 34 2 => Command::SetIV, in from() 35 3 => Command::Cipher, in from() 36 _ => Command::Unknown, in from()
|
| /optee_rust/examples/big_int-rs/host/src/ |
| A D | main.rs | 20 use proto::{Command, UUID}; 32 session.invoke_command(Command::Compare as u32, &mut operation)?; in big_int() 33 session.invoke_command(Command::Convert as u32, &mut operation)?; in big_int() 34 session.invoke_command(Command::Add as u32, &mut operation)?; in big_int() 35 session.invoke_command(Command::Sub as u32, &mut operation)?; in big_int() 36 session.invoke_command(Command::Multiply as u32, &mut operation)?; in big_int() 37 session.invoke_command(Command::Divide as u32, &mut operation)?; in big_int() 38 session.invoke_command(Command::Module as u32, &mut operation)?; in big_int()
|
| /optee_rust/examples/supp_plugin-rs/proto/src/ |
| A D | lib.rs | 20 pub enum Command { enum 25 impl From<u32> for Command { implementation 27 fn from(value: u32) -> Command { in from() argument 29 0 => Command::Ping, in from() 30 _ => Command::Unknown, in from()
|
| /optee_rust/examples/big_int-rs/ta/src/ |
| A D | main.rs | 27 use proto::Command; 112 match Command::from(cmd_id) { in invoke_command() 113 Command::Compare => compare(&n0, &n1), in invoke_command() 114 Command::Convert => convert(&n0, &n1), in invoke_command() 115 Command::Add => add(&n0, &n1), in invoke_command() 116 Command::Sub => sub(&n0, &n1), in invoke_command() 117 Command::Multiply => multiply(&n0, &n1), in invoke_command() 118 Command::Divide => divide(&n0, &n1), in invoke_command() 119 Command::Module => module(&n0, &n1), in invoke_command()
|
| /optee_rust/examples/hello_world-rs/ta/src/ |
| A D | main.rs | 26 use proto::Command; 54 match Command::from(cmd_id) { in invoke_command() 55 Command::IncValue => { in invoke_command() 59 Command::DecValue => { in invoke_command()
|
| /optee_rust/examples/hello_world-rs/host/src/ |
| A D | main.rs | 20 use proto::{UUID, Command}; 28 session.invoke_command(Command::IncValue as u32, &mut operation)?; in hello_world() 31 session.invoke_command(Command::DecValue as u32, &mut operation)?; in hello_world()
|
| /optee_rust/examples/acipher-rs/host/src/ |
| A D | main.rs | 20 use proto::{Command, UUID}; 27 session.invoke_command(Command::GenKey as u32, &mut operation)?; in gen_key() 36 session.invoke_command(Command::GetSize as u32, &mut operation)?; in enc_dec() 43 session.invoke_command(Command::Encrypt as u32, &mut operation2)?; in enc_dec() 56 session.invoke_command(Command::Decrypt as u32, &mut operation2)?; in enc_dec()
|
| /optee_rust/examples/time-rs/host/src/ |
| A D | main.rs | 20 use proto::{Command, UUID}; 25 session.invoke_command(Command::Test as u32, &mut operation)?; in time()
|
| /optee_rust/examples/time-rs/ta/src/ |
| A D | main.rs | 27 use proto::Command; 54 match Command::from(cmd_id) { in invoke_command() 55 Command::Test => { in invoke_command()
|
| /optee_rust/examples/random-rs/ta/src/ |
| A D | main.rs | 30 use proto::Command; 68 match Command::from(cmd_id) { in invoke_command() 69 Command::RandomGenerator => { in invoke_command()
|
| /optee_rust/examples/supp_plugin-rs/host/src/ |
| A D | main.rs | 20 use proto::{TA_UUID, Command}; 29 session.invoke_command(Command::Ping as u32, &mut operation)?; in ping_ta()
|
| /optee_rust/examples/acipher-rs/ta/src/ |
| A D | main.rs | 31 use proto::Command; 132 match Command::from(cmd_id) { in invoke_command() 133 Command::GenKey => gen_key(sess_ctx, params), in invoke_command() 134 Command::GetSize => get_size(sess_ctx, params), in invoke_command() 135 Command::Encrypt => encrypt(sess_ctx, params), in invoke_command() 136 Command::Decrypt => decrypt(sess_ctx, params), in invoke_command()
|
| /optee_rust/examples/supp_plugin-rs/ta/src/ |
| A D | main.rs | 29 use proto::{Command, PluginCommand, PLUGIN_SUBCMD_NULL, PLUGIN_UUID}; 61 match Command::from(cmd_id) { in invoke_command() 62 Command::Ping => { in invoke_command()
|
| /optee_rust/examples/hotp-rs/host/src/ |
| A D | main.rs | 22 use proto::{Command, UUID}; 39 session.invoke_command(Command::RegisterSharedKey as u32, &mut operation)?; in register_shared_key() 48 session.invoke_command(Command::GetHOTP as u32, &mut operation)?; in get_hotp()
|