Home
last modified time | relevance | path

Searched refs:new (Results 1 – 25 of 69) sorted by relevance

123

/optee_rust/optee-utee/src/
A Dnet.rs35 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 Darithmetical.rs38 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 Dtrace.rs27 fn new() -> Self { in new() method
32 let mut writer = Trace::new(); in _print()
/optee_rust/examples/acipher-rs/host/src/
A Dmain.rs24 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 Dmain.rs37 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 Dmain.rs36 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 Dmain.rs27 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 Dmain.rs31 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 Dmain.rs23 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 Dmain.rs31 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 Dbuild.rs24 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 Dbuild.rs25 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 Dmain.rs30 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 Dmain.rs29 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 Dmain.rs57 _ => 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 Dcontext.rs38 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 Dextension.rs49 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 Dmain.rs23 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 Dmain.rs23 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 Dmain.rs25 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 Dmain.rs25 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 Dmain.rs31 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 Dmain.rs42 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 Dmain.rs26 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 Dmain.rs85 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()

Completed in 41 milliseconds

123