Home
last modified time | relevance | path

Searched refs:p1 (Results 1 – 18 of 18) sorted by relevance

/optee_rust/examples/secure_storage-rs/ta/src/
A Dmain.rs93 let mut p1 = unsafe { params.1.as_memref().unwrap() }; in create_raw_object() variables
97 let mut data_buffer = vec![0; p1.buffer().len() as usize]; in create_raw_object()
98 data_buffer.copy_from_slice(p1.buffer()); in create_raw_object()
133 let mut p1 = unsafe { params.1.as_memref().unwrap() }; in read_raw_object() variables
137 let mut data_buffer = vec![0;p1.buffer().len() as usize]; in read_raw_object()
138 data_buffer.copy_from_slice(p1.buffer()); in read_raw_object()
150 if obj_info.data_size() > p1.buffer().len() { in read_raw_object()
151 p1.set_updated_size(obj_info.data_size()); in read_raw_object()
159 p1.set_updated_size(read_bytes as usize); in read_raw_object()
160 p1.buffer().copy_from_slice(&data_buffer); in read_raw_object()
/optee_rust/examples/authentication-rs/ta/src/
A Dmain.rs92 let mut p1 = unsafe { params.1.as_memref().unwrap() }; in prepare() variables
100 let nonce = p1.buffer(); in prepare()
118 let mut p1 = unsafe { params.1.as_memref().unwrap() }; in update() variables
120 let res = p1.buffer(); in update()
127 let mut p1 = unsafe { params.1.as_memref().unwrap() }; in encrypt_final() variables
132 let mut ciph = vec![0; p1.buffer().len() as usize]; in encrypt_final()
133 ciph.copy_from_slice(p1.buffer()); in encrypt_final()
142 p1.buffer().copy_from_slice(&ciph); in encrypt_final()
157 let mut ciph = vec![0; p1.buffer().len() as usize]; in decrypt_final()
158 ciph.copy_from_slice(p1.buffer()); in decrypt_final()
[all …]
/optee_rust/examples/authentication-rs/host/src/
A Dmain.rs31 let p1 = ParamTmpRef::new_input(nonce); in prepare()
34 let mut operation = Operation::new(0, p0, p1, p2, p3); in prepare()
42 let p1 = ParamTmpRef::new_output(res); in update()
43 let mut operation = Operation::new(0, p0, p1, ParamNone, ParamNone); in update()
57 let p1 = ParamTmpRef::new_output(res); in encrypt_final()
59 let mut operation = Operation::new(0, p0, p1, p2, ParamNone); in encrypt_final()
72 let p1 = ParamTmpRef::new_output(res); in decrypt_final()
74 let mut operation = Operation::new(0, p0, p1, p2, ParamNone); in decrypt_final()
/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()
54 let p1 = ParamTmpRef::new_output(&mut shared_key); in derive_key()
56 let mut operation = Operation::new(0, p0, p1, p2, ParamNone); in derive_key()
/optee_rust/examples/secure_storage-rs/host/src/
A Dmain.rs30 let p1 = ParamTmpRef::new_output(obj_data); in read_secure_object()
31 let mut operation = Operation::new(0, p0, p1, ParamNone, ParamNone); in read_secure_object()
45 let p1 = ParamTmpRef::new_input(obj_data); in write_secure_object()
46 let mut operation = Operation::new(0, p0, p1, ParamNone, ParamNone); in write_secure_object()
/optee_rust/examples/acipher-rs/host/src/
A Dmain.rs40 let p1 = ParamTmpRef::new_output(&mut cipher_text); in enc_dec()
41 let mut operation2 = Operation::new(0, p0, p1, ParamNone, ParamNone); in enc_dec()
53 let p1 = ParamTmpRef::new_output(&mut dec_res); in enc_dec()
54 let mut operation2 = Operation::new(0, p0, p1, ParamNone, ParamNone); in enc_dec()
/optee_rust/examples/diffie_hellman-rs/ta/src/
A Dmain.rs64 let mut p1 = unsafe { params.1.as_value().unwrap() }; in generate_key() variables
87 p1.set_a(key_size as u32); in generate_key()
92 p1.set_b(key_size as u32); in generate_key()
98 let mut p1 = unsafe { params.1.as_memref().unwrap() }; in derive_key() variables
111 .ref_attribute(AttributeId::SecretValue, p1.buffer()) in derive_key()
/optee_rust/optee-teec/src/
A Doperation.rs35 pub fn new(started: u32, mut p0: A, mut p1: B, mut p2: C, mut p3: D) -> Operation<A, B, C, D> { in new()
40 p1.param_type(), in new()
45 raw_op.params = [p0.into_raw(), p1.into_raw(), p2.into_raw(), p3.into_raw()]; in new()
A Dparameter.rs219 pub fn new(p0: ParamType, p1: ParamType, p2: ParamType, p3: ParamType) -> Self { in new()
220 ParamTypes((p0 as u32) | (p1 as u32) << 4 | (p2 as u32) << 8 | (p3 as u32) << 12) in new()
/optee_rust/examples/aes-rs/host/src/
A Dmain.rs37 let p1 = ParamValue::new(KeySize::Bit128 as u32, 0, ParamType::ValueInput); in prepare_aes()
39 let mut operation = Operation::new(0, p0, p1, p2, ParamNone); in prepare_aes()
69 let p1 = ParamTmpRef::new_output(outtext); in cipher_buffer()
70 let mut operation = Operation::new(0, p0, p1, ParamNone, ParamNone); in cipher_buffer()
/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()
/optee_rust/examples/acipher-rs/ta/src/
A Dmain.rs86 let mut p1 = unsafe { params.1.as_memref().unwrap() }; in encrypt() variables
97 Ok(cipher_text) => Ok(p1.buffer().clone_from_slice(&cipher_text)), in encrypt()
107 let mut p1 = unsafe { params.1.as_memref().unwrap() }; in decrypt() variables
118 Ok(plain_text) => Ok(p1.buffer().clone_from_slice(&plain_text)), in decrypt()
/optee_rust/examples/digest-rs/host/src/
A Dmain.rs35 let p1 = ParamTmpRef::new_output(res); in do_final()
37 let mut operation = Operation::new(0, p0, p1, p2, ParamNone); in do_final()
/optee_rust/examples/message_passing_interface-rs/ta/src/
A Dmain.rs71 let mut p1 = unsafe { params.1.as_memref().unwrap()}; in invoke_command() variables
78 p1.buffer().write(&output_vec).unwrap(); in invoke_command()
/optee_rust/examples/digest-rs/ta/src/
A Dmain.rs86 let mut p1 = unsafe { params.1.as_memref().unwrap() }; in do_final() variables
89 let output = p1.buffer(); in do_final()
/optee_rust/examples/message_passing_interface-rs/host/src/
A Dmain.rs55 let p1 = ParamTmpRef::new_output(&mut self.buffer); in invoke()
58 let mut operation = Operation::new(0, p0, p1, p2, ParamNone); in invoke()
/optee_rust/optee-utee/src/
A Dparameter.rs28 let p1 = Parameter::from_raw(&mut tee_params[1], f1);
32 Parameters(p0, p1, p2, p3)
/optee_rust/optee-teec/optee-teec-sys/src/
A Dtee_client_api.rs20 pub fn TEEC_PARAM_TYPES(p0:u32, p1:u32, p2:u32, p3:u32) -> u32 { in TEEC_PARAM_TYPES()
21 let tmp = p1 << 4 | p2 << 8 | p3 << 12; in TEEC_PARAM_TYPES()

Completed in 14 milliseconds