Home
last modified time | relevance | path

Searched refs:Command (Results 1 – 25 of 49) sorted by relevance

12

/optee_rust/examples/big_int-rs/proto/src/
A Dlib.rs18 pub enum Command { enum
29 impl From<u32> for Command { implementation
31 fn from(value: u32) -> Command { in from() argument
33 0 => Command::Compare, in from()
34 1 => Command::Convert, in from()
35 2 => Command::Add, in from()
36 3 => Command::Sub, in from()
37 4 => Command::Multiply, in from()
38 5 => Command::Divide, in from()
39 6 => Command::Module, in from()
[all …]
/optee_rust/examples/acipher-rs/proto/src/
A Dlib.rs18 pub enum Command { enum
26 impl From<u32> for Command { implementation
28 fn from(value: u32) -> Command { in from() argument
30 0 => Command::GenKey, in from()
31 1 => Command::GetSize, in from()
32 2 => Command::Encrypt, in from()
33 3 => Command::Decrypt, in from()
34 _ => Command::Unknown, in from()
/optee_rust/examples/secure_storage-rs/proto/src/
A Dlib.rs18 pub enum Command { enum
25 impl From<u32> for Command { implementation
27 fn from(value: u32) -> Command { in from() argument
29 0 => Command::Read, in from()
30 1 => Command::Write, in from()
31 2 => Command::Delete, in from()
32 _ => Command::Unknown, in from()
/optee_rust/examples/hotp-rs/proto/src/
A Dlib.rs18 pub enum Command { enum
24 impl From<u32> for Command { implementation
26 fn from(value: u32) -> Command { in from() argument
28 0 => Command::RegisterSharedKey, in from()
29 1 => Command::GetHOTP, in from()
30 _ => Command::Unknown, in from()
/optee_rust/examples/digest-rs/proto/src/
A Dlib.rs18 pub enum Command { enum
24 impl From<u32> for Command { implementation
26 fn from(value: u32) -> Command { in from() argument
28 0 => Command::Update, in from()
29 1 => Command::DoFinal, in from()
30 _ => Command::Unknown, in from()
/optee_rust/examples/hello_world-rs/proto/src/
A Dlib.rs18 pub enum Command { enum
24 impl From<u32> for Command { implementation
26 fn from(value: u32) -> Command { in from() argument
28 0 => Command::IncValue, in from()
29 1 => Command::DecValue, in from()
30 _ => Command::Unknown, in from()
/optee_rust/examples/authentication-rs/proto/src/
A Dlib.rs18 pub enum Command { enum
26 impl From<u32> for Command { implementation
28 fn from(value: u32) -> Command { in from() argument
30 0 => Command::Prepare, in from()
31 1 => Command::Update, in from()
32 2 => Command::EncFinal, in from()
33 3 => Command::DecFinal, in from()
34 _ => Command::Unknown, in from()
/optee_rust/examples/diffie_hellman-rs/proto/src/
A Dlib.rs18 pub enum Command { enum
24 impl From<u32> for Command { implementation
26 fn from(value: u32) -> Command { in from() argument
28 0 => Command::GenerateKey, in from()
29 1 => Command::DeriveKey, in from()
30 _ => Command::Unknown, in from()
/optee_rust/examples/message_passing_interface-rs/proto/src/
A Dlib.rs22 pub enum Command { enum
30 pub command: Command,
39 impl From<u32> for Command { implementation
41 fn from(value: u32) -> Command { in from() argument
43 0 => Command::Hello, in from()
44 1 => Command::Bye, in from()
45 _ => Command::Unknown, in from()
/optee_rust/examples/tcp_client-rs/proto/src/
A Dlib.rs18 pub enum Command { enum
23 impl From<u32> for Command { implementation
25 fn from(value: u32) -> Command { in from() argument
27 0 => Command::Start, in from()
28 _ => Command::Unknown, in from()
/optee_rust/examples/udp_socket-rs/proto/src/
A Dlib.rs18 pub enum Command { enum
23 impl From<u32> for Command { implementation
25 fn from(value: u32) -> Command { in from() argument
27 0 => Command::Start, in from()
28 _ => Command::Unknown, in from()
/optee_rust/examples/time-rs/proto/src/
A Dlib.rs18 pub enum Command { enum
23 impl From<u32> for Command { implementation
25 fn from(value: u32) -> Command { in from() argument
27 0 => Command::Test, in from()
28 _ => Command::Unknown, in from()
/optee_rust/examples/serde-rs/proto/src/
A Dlib.rs18 pub enum Command { enum
23 impl From<u32> for Command { implementation
25 fn from(value: u32) -> Command { in from() argument
27 0 => Command::DefaultOp, in from()
28 _ => Command::Unknown, in from()
/optee_rust/examples/random-rs/proto/src/
A Dlib.rs18 pub enum Command { enum
23 impl From<u32> for Command { implementation
25 fn from(value: u32) -> Command { in from() argument
27 0 => Command::RandomGenerator, in from()
28 _ => Command::Unknown, in from()
/optee_rust/examples/aes-rs/proto/src/
A Dlib.rs18 pub enum Command { enum
26 impl From<u32> for Command { implementation
28 fn from(value: u32) -> Command { in from() argument
30 0 => Command::Prepare, in from()
31 1 => Command::SetKey, in from()
32 2 => Command::SetIV, in from()
33 3 => Command::Cipher, in from()
34 _ => Command::Unknown, in from()
/optee_rust/examples/big_int-rs/host/src/
A Dmain.rs20 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 Dlib.rs19 pub enum Command { enum
24 impl From<u32> for Command { implementation
26 fn from(value: u32) -> Command { in from() argument
28 0 => Command::Ping, in from()
29 _ => Command::Unknown, in from()
/optee_rust/examples/big_int-rs/ta/src/
A Dmain.rs25 use proto::Command;
110 match Command::from(cmd_id) { in invoke_command()
111 Command::Compare => compare(&n0, &n1), in invoke_command()
112 Command::Convert => convert(&n0, &n1), in invoke_command()
113 Command::Add => add(&n0, &n1), in invoke_command()
114 Command::Sub => sub(&n0, &n1), in invoke_command()
115 Command::Multiply => multiply(&n0, &n1), in invoke_command()
116 Command::Divide => divide(&n0, &n1), in invoke_command()
117 Command::Module => module(&n0, &n1), in invoke_command()
/optee_rust/examples/hello_world-rs/ta/src/
A Dmain.rs24 use proto::Command;
52 match Command::from(cmd_id) { in invoke_command()
53 Command::IncValue => { in invoke_command()
57 Command::DecValue => { in invoke_command()
/optee_rust/examples/message_passing_interface-rs/ta/src/
A Dmain.rs25 use proto::{self, Command};
27 fn handle_invoke(command: Command, input: proto::EnclaveInput) -> Result<proto::EnclaveOutput> { in handle_invoke() argument
29 Command::Hello => { in handle_invoke()
35 Command::Bye => { in handle_invoke()
75 let output = handle_invoke(Command::from(cmd_id), input).unwrap(); in invoke_command()
/optee_rust/examples/hello_world-rs/host/src/
A Dmain.rs20 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 Dmain.rs20 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/digest-rs/ta/src/
A Dmain.rs25 use proto::Command;
64 match Command::from(cmd_id) { in invoke_command()
65 Command::Update => { in invoke_command()
68 Command::DoFinal => { in invoke_command()
/optee_rust/examples/acipher-rs/ta/src/
A Dmain.rs26 use proto::Command;
127 match Command::from(cmd_id) { in invoke_command()
128 Command::GenKey => gen_key(sess_ctx, params), in invoke_command()
129 Command::GetSize => get_size(sess_ctx, params), in invoke_command()
130 Command::Encrypt => encrypt(sess_ctx, params), in invoke_command()
131 Command::Decrypt => decrypt(sess_ctx, params), in invoke_command()
/optee_rust/examples/random-rs/ta/src/
A Dmain.rs25 use proto::Command;
63 match Command::from(cmd_id) { in invoke_command()
64 Command::RandomGenerator => { in invoke_command()

Completed in 51 milliseconds

12