Searched refs:key_size (Results 1 – 8 of 8) sorted by relevance
/optee_rust/examples/acipher-rs/host/src/ |
A D | main.rs | 23 fn gen_key(session: &mut Session, key_size: u32) -> optee_teec::Result<()> { in gen_key() 24 let p0 = ParamValue::new(key_size, 0, ParamType::ValueInput); in gen_key() 76 let mut key_size = args[1].parse::<u32>().unwrap(); in main() variables 77 if key_size < 256 { in main() 80 key_size in main() 82 key_size = 256; in main() 89 gen_key(&mut session, key_size)?; in main()
|
/optee_rust/examples/diffie_hellman-rs/ta/src/ |
A D | main.rs | 83 let mut key_size = dh in generate_key() variables 87 p1.set_a(key_size as u32); in generate_key() 88 key_size = dh in generate_key() 92 p1.set_b(key_size as u32); in generate_key() 110 let key_size = derived_key in derive_key() 113 p2.set_a(key_size as u32); in derive_key()
|
/optee_rust/examples/aes-rs/ta/src/ |
A D | main.rs | 31 pub key_size: usize, field 39 key_size: 0, in default() 119 aes.key_size = ta2tee_key_size(key_size_value).unwrap(); in alloc_resources() 127 aes.key_size * 8, in alloc_resources() 130 aes.key_object = TransientObject::allocate(TransientObjectType::Aes, aes.key_size * 8).unwrap(); in alloc_resources() 131 let key = vec![0u8; aes.key_size as usize]; in alloc_resources() 142 if key.len() != aes.key_size { in set_aes_key()
|
/optee_rust/examples/diffie_hellman-rs/host/src/ |
A D | main.rs | 60 let key_size = operation.parameters().2.a() as usize; in derive_key() 61 let mut derive_res = vec![0u8; key_size]; in derive_key() 62 derive_res.copy_from_slice(&shared_key[..key_size]); in derive_key()
|
/optee_rust/examples/acipher-rs/ta/src/ |
A D | main.rs | 63 let key_size = unsafe { params.0.as_value().unwrap().a() }; in gen_key() 65 TransientObject::allocate(TransientObjectType::RsaKeypair, key_size as usize).unwrap(); in gen_key() 66 rsa.key.generate_key(key_size as usize, &[])?; in gen_key()
|
/optee_rust/optee-utee/src/ |
A D | crypto_op.rs | 77 pub fn key_size(&self) -> u32 { in key_size() method 1273 let mut res_size: u32 = self.info().key_size(); in encrypt() 1316 let mut res_size: u32 = self.info().key_size(); in decrypt()
|
A D | object.rs | 811 pub fn generate_key(&self, key_size: usize, params: &[Attribute]) -> Result<()> { in generate_key() 816 key_size as u32, in generate_key()
|
/optee_rust/optee-utee/optee-utee-sys/src/ |
A D | utee_syscalls.rs | 117 key_size: c_ulong, in _utee_cryp_obj_generate_key()
|
Completed in 13 milliseconds