/optee_rust/examples/authentication-rs/ta/src/ |
A D | main.rs | 93 let mut p2 = unsafe { params.2.as_memref().unwrap() }; in prepare() variables 101 let key = p2.buffer(); in prepare() 128 let mut p2 = unsafe { params.2.as_memref().unwrap() }; in encrypt_final() variables 134 let mut tag = vec![0; p2.buffer().len() as usize]; in encrypt_final() 135 tag.copy_from_slice(p2.buffer()); in encrypt_final() 143 p2.buffer().copy_from_slice(&tag); in encrypt_final() 153 let mut p2 = unsafe { params.2.as_memref().unwrap() }; in decrypt_final() variables 159 let mut tag = vec![0; p2.buffer().len() as usize]; in decrypt_final() 160 tag.copy_from_slice(p2.buffer()); in decrypt_final() 167 p2.buffer().copy_from_slice(&tag); in decrypt_final()
|
/optee_rust/examples/authentication-rs/host/src/ |
A D | main.rs | 32 let p2 = ParamTmpRef::new_input(key); in prepare() 34 let mut operation = Operation::new(0, p0, p1, p2, p3); in prepare() 58 let p2 = ParamTmpRef::new_output(tag); in encrypt_final() 59 let mut operation = Operation::new(0, p0, p1, p2, ParamNone); in encrypt_final() 73 let p2 = ParamTmpRef::new_input(tag); 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 D | main.rs | 35 let p2 = ParamTmpRef::new_output(&mut public_key); 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()
|
/optee_rust/optee-teec/src/ |
A D | operation.rs | 35 pub fn new(started: u32, mut p0: A, mut p1: B, mut p2: C, mut p3: D) -> Operation<A, B, C, D> { in new() 41 p2.param_type(), in new() 45 raw_op.params = [p0.into_raw(), p1.into_raw(), p2.into_raw(), p3.into_raw()]; in new()
|
A D | parameter.rs | 219 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/diffie_hellman-rs/ta/src/ |
A D | main.rs | 65 let mut p2 = unsafe { params.2.as_memref().unwrap() }; in generate_key() variables 78 let mut public_buffer = p2.buffer(); in generate_key() 99 let mut p2 = unsafe { params.2.as_value().unwrap() }; in derive_key() variables 113 p2.set_a(key_size as u32); in derive_key()
|
/optee_rust/examples/digest-rs/host/src/ |
A D | main.rs | 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()
|
/optee_rust/examples/message_passing_interface-rs/ta/src/ |
A D | main.rs | 72 let mut p2 = unsafe { params.2.as_value().unwrap() }; in invoke_command() variables 79 p2.set_a(output_vec.len() as u32); in invoke_command()
|
/optee_rust/examples/digest-rs/ta/src/ |
A D | main.rs | 87 let mut p2 = unsafe { params.2.as_value().unwrap() }; in do_final() variables 93 p2.set_a(hash_length as u32); in do_final()
|
/optee_rust/examples/message_passing_interface-rs/host/src/ |
A D | main.rs | 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/aes-rs/host/src/ |
A D | main.rs | 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()
|
/optee_rust/optee-utee/src/ |
A D | parameter.rs | 29 let p2 = Parameter::from_raw(&mut tee_params[2], f2); 32 Parameters(p0, p1, p2, p3)
|
/optee_rust/optee-teec/optee-teec-sys/src/ |
A D | tee_client_api.rs | 20 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()
|