Home
last modified time | relevance | path

Searched refs:KEY_SIZE (Results 1 – 6 of 6) sorted by relevance

/optee_rust/examples/diffie_hellman-rs/ta/src/
A Dmain.rs26 use proto::{Command, KEY_SIZE};
70 let prime_slice = &prime_base_vec[..KEY_SIZE/8]; in generate_key()
71 let base_slice = &prime_base_vec[KEY_SIZE/8..]; in generate_key()
77 dh.key = TransientObject::allocate(TransientObjectType::DhKeypair, KEY_SIZE).unwrap(); in generate_key()
82 .generate_key(KEY_SIZE, &[attr_prime.into(), attr_base.into()])?; in generate_key()
103 match DeriveKey::allocate(AlgorithmId::DhDeriveSharedSecret, KEY_SIZE) { in derive_key()
108 TransientObject::allocate(TransientObjectType::GenericSecret, KEY_SIZE).unwrap(); in derive_key()
/optee_rust/examples/diffie_hellman-rs/host/src/
A Dmain.rs20 use proto::{Command, KEY_SIZE, UUID};
33 let mut public_key = [0u8; KEY_SIZE]; in generate_key()
34 let mut private_key = [0u8; KEY_SIZE]; in generate_key()
53 let mut shared_key = [0u8; KEY_SIZE]; in derive_key()
/optee_rust/examples/diffie_hellman-rs/proto/src/
A Dlib.rs35 pub const KEY_SIZE: usize = 256; consts
/optee_rust/examples/authentication-rs/proto/src/
A Dlib.rs57 pub const KEY_SIZE: usize = 16; consts
/optee_rust/examples/authentication-rs/ta/src/
A Dmain.rs26 use proto::{Command, Mode, AAD_LEN, BUFFER_SIZE, KEY_SIZE, TAG_LEN};
104 ae.op = AE::allocate(AlgorithmId::AesCcm, mode, KEY_SIZE * 8).unwrap(); in prepare()
106 let mut key_object = TransientObject::allocate(TransientObjectType::Aes, KEY_SIZE * 8).unwrap(); in prepare()
/optee_rust/examples/authentication-rs/host/src/
A Dmain.rs21 use proto::{Command, Mode, AAD_LEN, BUFFER_SIZE, KEY_SIZE, TAG_LEN, UUID};
85 let key = [0xa5u8; KEY_SIZE]; in main()

Completed in 9 milliseconds