Home
last modified time | relevance | path

Searched defs:Result (Results 1 – 25 of 44) sorted by relevance

12

/optee_rust/examples/big_int-rs/ta/src/
A Dmain.rs34 fn open_session(_params: &mut Parameters) -> Result<()> { in open_session()
49 fn compare(n0: &BigInt, n1: &BigInt) -> Result<()> { in compare()
58 fn convert(n0: &BigInt, n1: &BigInt) -> Result<()> { in convert()
68 fn add(n0: &BigInt, n1: &BigInt) -> Result<()> { in add()
74 fn sub(n0: &BigInt, n1: &BigInt) -> Result<()> { in sub()
80 fn multiply(n0: &BigInt, n1: &BigInt) -> Result<()> { in multiply()
86 fn divide(n0: &BigInt, n1: &BigInt) -> Result<()> { in divide()
92 fn module(n0: &BigInt, n1: &BigInt) -> Result<()> { in module()
99 fn invoke_command(cmd_id: u32, params: &mut Parameters) -> Result<()> { in invoke_command()
/optee_rust/optee-utee/src/
A Dtime.rs82 pub fn wait(timeout: u32) -> Result<()> { in wait()
113 pub fn ta_time(&mut self) -> Result<()> { in ta_time()
130 pub fn set_ta_time(&self) -> Result<()> { in set_ta_time()
151 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
/optee_rust/examples/secure_storage-rs/ta/src/
A Dmain.rs34 fn open_session(_params: &mut Parameters) -> Result<()> { in open_session()
50 fn invoke_command(cmd_id: u32, params: &mut Parameters) -> Result<()> { in invoke_command()
68 pub fn delete_object(params: &mut Parameters) -> Result<()> { in delete_object()
91 pub fn create_raw_object(params: &mut Parameters) -> Result<()> { in create_raw_object()
131 pub fn read_raw_object(params: &mut Parameters) -> Result<()> { in read_raw_object()
/optee_rust/examples/acipher-rs/ta/src/
A Dmain.rs47 fn open_session(_params: &mut Parameters, _sess_ctx: &mut RsaCipher) -> Result<()> { in open_session()
62 fn gen_key(rsa: &mut RsaCipher, params: &mut Parameters) -> Result<()> { in gen_key()
70 fn get_size(rsa: &mut RsaCipher, params: &mut Parameters) -> Result<()> { in get_size()
82 fn encrypt(rsa: &mut RsaCipher, params: &mut Parameters) -> Result<()> { in encrypt()
103 fn decrypt(rsa: &mut RsaCipher, params: &mut Parameters) -> Result<()> { in decrypt()
125 fn invoke_command(sess_ctx: &mut RsaCipher, cmd_id: u32, params: &mut Parameters) -> Result<()> { in invoke_command()
/optee_rust/examples/aes-rs/host/src/
A Dmain.rs30 fn prepare_aes(session: &mut Session, encode: i8) -> optee_teec::Result<()> { in prepare_aes()
46 fn set_key(session: &mut Session, key: &[u8]) -> optee_teec::Result<()> { in set_key()
55 fn set_iv(session: &mut Session, iv: &[u8]) -> optee_teec::Result<()> { in set_iv()
67 ) -> optee_teec::Result<()> { in cipher_buffer()
/optee_rust/examples/secure_storage-rs/host/src/
A Dmain.rs28 ) -> optee_teec::Result<()> { in read_secure_object()
43 ) -> optee_teec::Result<()> { in write_secure_object()
54 fn delete_secure_object(session: &mut Session, obj_id: &[u8]) -> optee_teec::Result<()> { in delete_secure_object()
/optee_rust/examples/aes-rs/ta/src/
A Dmain.rs53 fn open_session(_params: &mut Parameters, _sess_ctx: &mut AesCipher) -> Result<()> { in open_session()
69 fn invoke_command(sess_ctx: &mut AesCipher, cmd_id: u32, params: &mut Parameters) -> Result<()> { in invoke_command()
114 pub fn alloc_resources(aes: &mut AesCipher, params: &mut Parameters) -> Result<()> { in alloc_resources()
138 pub fn set_aes_key(aes: &mut AesCipher, params: &mut Parameters) -> Result<()> { in set_aes_key()
156 pub fn reset_aes_iv(aes: &mut AesCipher, params: &mut Parameters) -> Result<()> { in reset_aes_iv()
166 pub fn cipher_buffer(aes: &mut AesCipher, params: &mut Parameters) -> Result<()> { in cipher_buffer()
/optee_rust/examples/random-rs/ta/src/
A Dmain.rs34 fn open_session(_params: &mut Parameters) -> Result<()> { in open_session()
49 pub fn random_number_generate(params: &mut Parameters) -> Result<()> { in random_number_generate()
61 fn invoke_command(cmd_id: u32, params: &mut Parameters) -> Result<()> { in invoke_command()
/optee_rust/examples/hotp-rs/host/src/
A Dmain.rs30 fn register_shared_key(session: &mut Session) -> optee_teec::Result<()> { in register_shared_key()
43 fn get_hotp(session: &mut Session) -> optee_teec::Result<()> { in get_hotp()
/optee_rust/examples/authentication-rs/ta/src/
A Dmain.rs49 fn open_session(_params: &mut Parameters, _sess_ctx: &mut AEOp) -> Result<()> { in open_session()
65 fn invoke_command(sess_ctx: &mut AEOp, cmd_id: u32, params: &mut Parameters) -> Result<()> { in invoke_command()
90 pub fn prepare(ae: &mut AEOp, params: &mut Parameters) -> Result<()> { in prepare()
116 pub fn update(digest: &mut AEOp, params: &mut Parameters) -> Result<()> { in update()
125 pub fn encrypt_final(digest: &mut AEOp, params: &mut Parameters) -> Result<()> { in encrypt_final()
150 pub fn decrypt_final(digest: &mut AEOp, params: &mut Parameters) -> Result<()> { in decrypt_final()
/optee_rust/examples/digest-rs/ta/src/
A Dmain.rs46 fn open_session(_params: &mut Parameters, _sess_ctx: &mut DigestOp) -> Result<()> { in open_session()
62 fn invoke_command(sess_ctx: &mut DigestOp, cmd_id: u32, params: &mut Parameters) -> Result<()> { in invoke_command()
77 pub fn update(digest: &mut DigestOp, params: &mut Parameters) -> Result<()> { in update()
84 pub fn do_final(digest: &mut DigestOp, params: &mut Parameters) -> Result<()> { in do_final()
/optee_rust/examples/authentication-rs/host/src/
A Dmain.rs29 ) -> optee_teec::Result<()> { in prepare()
40 fn update(session: &mut Session, src: &[u8], res: &mut [u8]) -> optee_teec::Result<()> { in update()
55 ) -> optee_teec::Result<()> { in encrypt_final()
70 ) -> optee_teec::Result<()> { in decrypt_final()
/optee_rust/examples/acipher-rs/host/src/
A Dmain.rs23 fn gen_key(session: &mut Session, key_size: u32) -> optee_teec::Result<()> { in gen_key()
32 fn enc_dec(session: &mut Session, plain_text: &[u8]) -> optee_teec::Result<()> { in enc_dec()
/optee_rust/examples/diffie_hellman-rs/ta/src/
A Dmain.rs47 fn open_session(_params: &mut Parameters, _sess_ctx: &mut DiffieHellman) -> Result<()> { in open_session()
62 fn generate_key(dh: &mut DiffieHellman, params: &mut Parameters) -> Result<()> { in generate_key()
96 fn derive_key(dh: &mut DiffieHellman, params: &mut Parameters) -> Result<()> { in derive_key()
124 ) -> Result<()> { in invoke_command()
/optee_rust/examples/hello_world-rs/ta/src/
A Dmain.rs33 fn open_session(_params: &mut Parameters) -> Result<()> { in open_session()
49 fn invoke_command(cmd_id: u32, params: &mut Parameters) -> Result<()> { in invoke_command()
/optee_rust/examples/supp_plugin-rs/ta/src/
A Dmain.rs34 fn open_session(_params: &mut Parameters) -> Result<()> { in open_session()
50 fn invoke_command(cmd_id: u32, params: &mut Parameters) -> Result<()> { in invoke_command()
/optee_rust/examples/hotp-rs/ta/src/
A Dmain.rs56 fn open_session(_params: &mut Parameters, _sess_ctx: &mut HmacOtp) -> Result<()> { in open_session()
72 fn invoke_command(sess_ctx: &mut HmacOtp, cmd_id: u32, params: &mut Parameters) -> Result<()> { in invoke_command()
87 pub fn register_shared_key(hotp: &mut HmacOtp, params: &mut Parameters) -> Result<()> { in register_shared_key()
95 pub fn get_hotp(hotp: &mut HmacOtp, params: &mut Parameters) -> Result<()> { in get_hotp()
/optee_rust/examples/time-rs/ta/src/
A Dmain.rs34 fn open_session(_params: &mut Parameters) -> Result<()> { in open_session()
50 fn invoke_command(cmd_id: u32, _params: &mut Parameters) -> Result<()> { in invoke_command()
/optee_rust/examples/tcp_client-rs/host/src/
A Dmain.rs22 fn tcp_client(session: &mut Session) -> optee_teec::Result<()> { in tcp_client()
/optee_rust/examples/hello_world-rs/host/src/
A Dmain.rs22 fn hello_world(session: &mut Session) -> optee_teec::Result<()> { in hello_world()
/optee_rust/examples/time-rs/host/src/
A Dmain.rs22 fn time(session: &mut Session) -> optee_teec::Result<()> { in time()
/optee_rust/examples/big_int-rs/host/src/
A Dmain.rs22 fn big_int(session: &mut Session) -> optee_teec::Result<()> { in big_int()
/optee_rust/examples/supp_plugin-rs/host/src/
A Dmain.rs22 fn ping_ta(session: &mut Session) -> optee_teec::Result<()> { in ping_ta()
/optee_rust/examples/tcp_client-rs/ta/src/
A Dmain.rs36 fn open_session(_params: &mut Parameters) -> Result<()> { in open_session()
52 fn invoke_command(cmd_id: u32, _params: &mut Parameters) -> Result<()> { in invoke_command()
/optee_rust/examples/udp_socket-rs/ta/src/
A Dmain.rs36 fn open_session(_params: &mut Parameters) -> Result<()> { in open_session()
52 fn invoke_command(cmd_id: u32, _params: &mut Parameters) -> Result<()> { in invoke_command()

Completed in 23 milliseconds

12