/optee_rust/optee-utee/src/ |
A D | net.rs | 35 let addr = match CString::new(address) { in connect_with_ip_version() 66 raw::TEE_ERROR_COMMUNICATION => Err(io::Error::new( in connect_with_ip_version() 122 raw::TEE_ISOCKET_ERROR_TIMEOUT => Err(io::Error::new( in read() 126 raw::TEE_ERROR_COMMUNICATION => Err(io::Error::new( in read() 134 raw::TEE_ISOCKET_ERROR_PROTOCOL => Err(io::Error::new( in read() 164 raw::TEE_ISOCKET_ERROR_TIMEOUT => Err(io::Error::new( in write() 172 raw::TEE_ISOCKET_ERROR_PROTOCOL => Err(io::Error::new( in write() 205 let addr = match CString::new(address) { in connect_with_ip_version() 292 raw::TEE_ISOCKET_ERROR_TIMEOUT => Err(io::Error::new( in read() 296 raw::TEE_ERROR_COMMUNICATION => Err(io::Error::new( in read() [all …]
|
A D | arithmetical.rs | 38 pub fn new(bits: u32) -> Self { in new() method 116 let mut res = Self::new(bits); in add() 123 let mut res = Self::new(bits); in sub() 136 let mut res = Self::new(bits); in multiply() 154 let mut quotient = Self::new(q_bits); in divide() 155 let mut remainder = Self::new(r_bits); in divide() 169 let mut res = Self::new(Self::get_bit_count(n)); in module() 175 let mut res = Self::new(Self::get_bit_count(n)); in add_mod() 188 let mut res = Self::new(Self::get_bit_count(n)); in sub_mod() 201 let mut res = Self::new(Self::get_bit_count(n)); in mul_mod() [all …]
|
A D | trace.rs | 27 fn new() -> Self { in new() method 32 let mut writer = Trace::new(); in _print()
|
/optee_rust/examples/acipher-rs/host/src/ |
A D | main.rs | 24 let p0 = ParamValue::new(key_size, 0, ParamType::ValueInput); in gen_key() 25 let mut operation = Operation::new(0, p0, ParamNone, ParamNone, ParamNone); in gen_key() 33 let p0 = ParamValue::new(0, 0, ParamType::ValueOutput); in enc_dec() 34 let mut operation = Operation::new(0, p0, ParamNone, ParamNone, ParamNone); in enc_dec() 41 let mut operation2 = Operation::new(0, p0, p1, ParamNone, ParamNone); in enc_dec() 54 let mut operation2 = Operation::new(0, p0, p1, ParamNone, ParamNone); in enc_dec() 73 return Err(Error::new(ErrorKind::BadParameters)); in main() 85 let mut ctx = Context::new()?; in main()
|
/optee_rust/examples/hotp-rs/host/src/ |
A D | main.rs | 37 let mut operation = Operation::new(0, p0, ParamNone, ParamNone, ParamNone); in register_shared_key() 44 let p0 = ParamValue::new(0, 0, ParamType::ValueOutput); in get_hotp() 45 let mut operation = Operation::new(0, p0, ParamNone, ParamNone, ParamNone); in get_hotp() 59 return Err(Error::new(ErrorKind::Generic)); in get_hotp() 66 let mut ctx = Context::new()?; in main()
|
/optee_rust/examples/aes-rs/host/src/ |
A D | main.rs | 36 let p0 = ParamValue::new(Algo::CTR as u32, 0, ParamType::ValueInput); in prepare_aes() 37 let p1 = ParamValue::new(KeySize::Bit128 as u32, 0, ParamType::ValueInput); in prepare_aes() 38 let p2 = ParamValue::new(p2_value, 0, ParamType::ValueInput); in prepare_aes() 39 let mut operation = Operation::new(0, p0, p1, p2, ParamNone); in prepare_aes() 48 let mut operation = Operation::new(0, p0, ParamNone, ParamNone, ParamNone); in set_key() 57 let mut operation = Operation::new(0, p0, ParamNone, ParamNone, ParamNone); in set_iv() 70 let mut operation = Operation::new(0, p0, p1, ParamNone, ParamNone); in cipher_buffer() 78 let mut ctx = Context::new()?; in main()
|
/optee_rust/examples/digest-rs/host/src/ |
A D | main.rs | 27 let mut operation = Operation::new(0, p0, ParamNone, ParamNone, ParamNone); in update() 36 let p2 = ParamValue::new(0, 0, ParamType::ValueOutput); in do_final() 37 let mut operation = Operation::new(0, p0, p1, p2, ParamNone); in do_final() 50 return Err(Error::new(ErrorKind::BadParameters)); in main() 53 let mut ctx = Context::new()?; in main()
|
/optee_rust/examples/secure_storage-rs/host/src/ |
A D | main.rs | 31 let mut operation = Operation::new(0, p0, p1, ParamNone, ParamNone); in read_secure_object() 46 let mut operation = Operation::new(0, p0, p1, ParamNone, ParamNone); in write_secure_object() 56 let mut operation = Operation::new(0, p0, ParamNone, ParamNone, ParamNone); in delete_secure_object() 65 let mut ctx = Context::new()?; in main() 69 let obj1_id = CString::new("object#1").unwrap().into_bytes_with_nul(); in main() 84 let obj2_id = CString::new("object#2").unwrap().into_bytes_with_nul(); in main()
|
/optee_rust/examples/hello_world-rs/host/src/ |
A D | main.rs | 23 let p0 = ParamValue::new(29, 0, ParamType::ValueInout); in hello_world() 24 let mut operation = Operation::new(0, p0, ParamNone, ParamNone, ParamNone); in hello_world() 37 let mut ctx = Context::new()?; in main()
|
/optee_rust/examples/diffie_hellman-rs/host/src/ |
A D | main.rs | 31 let p1 = ParamValue::new(0, 0, ParamType::ValueOutput); in generate_key() 38 let mut operation = Operation::new(0, p0, p1, p2, p3); in generate_key() 55 let p2 = ParamValue::new(0, 0, ParamType::ValueOutput); in derive_key() 56 let mut operation = Operation::new(0, p0, p1, p2, ParamNone); in derive_key() 68 let mut ctx = Context::new()?; in main()
|
/optee_rust/optee-utee/optee-utee-sys/ |
A D | build.rs | 24 Ok(ref v) if v == "arm" => Path::new(&optee_os_dir).join("out/arm/export-ta_arm32/lib"), in main() 25 _ => Path::new(&optee_os_dir).join("out/arm/export-ta_arm64/lib"), in main()
|
/optee_rust/optee-utee/systest/ |
A D | build.rs | 25 let mut cfg = ctest::TestGenerator::new(); in main() 82 Command::new("aarch64-linux-gnu-gcc") in main() 87 Command::new("aarch64-linux-gnu-ar") in main() 89 .current_dir(&Path::new(&out_dir)) in main()
|
/optee_rust/examples/authentication-rs/host/src/ |
A D | main.rs | 30 let p0 = ParamValue::new(mode as u32, 0, ParamType::ValueInput); in prepare() 34 let mut operation = Operation::new(0, p0, p1, p2, p3); in prepare() 43 let mut operation = Operation::new(0, p0, p1, ParamNone, ParamNone); in update() 59 let mut operation = Operation::new(0, p0, p1, p2, ParamNone); in encrypt_final() 74 let mut operation = Operation::new(0, p0, p1, p2, ParamNone); in decrypt_final() 81 let mut ctx = Context::new()?; in main()
|
/optee_rust/examples/big_int-rs/host/src/ |
A D | main.rs | 29 let p1 = ParamValue::new(number1, 0, ParamType::ValueInput); in big_int() 30 let mut operation = Operation::new(0, p0, p1, ParamNone, ParamNone); in big_int() 44 let mut ctx = Context::new()?; in main()
|
/optee_rust/examples/time-rs/ta/src/ |
A D | main.rs | 57 _ => Err(Error::new(ErrorKind::BadParameters)), in invoke_command() 62 let mut time = Time::new(); in time() 71 let mut time2 = Time::new(); in time()
|
/optee_rust/optee-teec/src/ |
A D | context.rs | 38 pub fn new() -> Result<Context> { in new() method 83 Session::new( in open_session() 109 Session::new(self, uuid, Some(operation)) in open_session_with_operation()
|
A D | extension.rs | 49 pub fn new(cmd: u32, sub_cmd: u32, inout: &'a mut [u8]) -> Self { in new() method 60 return Err(Error::new(ErrorKind::Security)); in set_buf_from_slice()
|
/optee_rust/examples/tcp_client-rs/host/src/ |
A D | main.rs | 23 let mut operation = Operation::new(0, ParamNone, ParamNone, ParamNone, ParamNone); in tcp_client() 29 let mut ctx = Context::new()?; in main()
|
/optee_rust/examples/time-rs/host/src/ |
A D | main.rs | 23 let mut operation = Operation::new(0, ParamNone, ParamNone, ParamNone, ParamNone); in time() 31 let mut ctx = Context::new()?; in main()
|
/optee_rust/examples/supp_plugin-rs/host/src/ |
A D | main.rs | 25 let mut operation = Operation::new(0, p0, ParamNone, ParamNone, ParamNone); in ping_ta() 36 let mut ctx = Context::new()?; in main()
|
/optee_rust/examples/random-rs/host/src/ |
A D | main.rs | 25 let mut operation = Operation::new(0, p0, ParamNone, ParamNone, ParamNone); in random() 38 let mut ctx = Context::new()?; in main()
|
/optee_rust/examples/serde-rs/host/src/ |
A D | main.rs | 31 let mut operation = Operation::new(0, p0 , ParamNone, ParamNone, ParamNone); in serde() 43 let mut ctx = Context::new()?; in main()
|
/optee_rust/examples/message_passing_interface-rs/host/src/ |
A D | main.rs | 42 let context = Context::new()?; in open_uuid() 56 let p2 = ParamValue::new(0, 0, ParamType::ValueInout); in invoke() 58 let mut operation = Operation::new(0, p0, p1, p2, ParamNone); in invoke()
|
/optee_rust/examples/udp_socket-rs/host/src/ |
A D | main.rs | 26 let mut operation = Operation::new(0, ParamNone, ParamNone, ParamNone, ParamNone); in udp_socket() 34 let mut ctx = Context::new()?; in main()
|
/optee_rust/examples/aes-rs/ta/src/ |
A D | main.rs | 85 return Err(Error::new(ErrorKind::BadParameters)); in invoke_command() 95 _ => Err(Error::new(ErrorKind::BadParameters)), in ta2tee_algo_id() 102 _ => Err(Error::new(ErrorKind::BadParameters)), in ta2tee_key_size() 110 _ => Err(Error::new(ErrorKind::BadParameters)), in ta2tee_mode_id() 144 return Err(Error::new(ErrorKind::BadParameters)); in set_aes_key() 174 return Err(Error::new(ErrorKind::BadParameters)); in cipher_buffer()
|