Home
last modified time | relevance | path

Searched defs:u8 (Results 1 – 25 of 78) sorted by relevance

1234

/aosp12/system/security/keystore2/src/
H A Dec_crypto.rs61 salt: &[u8], in agree_key()
62 other_public_key: &[u8], in agree_key()
63 sender_public_key: &[u8], in agree_key()
64 recipient_public_key: &[u8], in agree_key()
85 message: &[u8], in encrypt_message()
86 ) -> Result<(Vec<u8>, Vec<u8>, Vec<u8>, Vec<u8>, Vec<u8>)> { in encrypt_message()
105 sender_public_key: &[u8], in decrypt_message()
106 salt: &[u8], in decrypt_message()
107 iv: &[u8], in decrypt_message()
108 ciphertext: &[u8], in decrypt_message()
[all …]
H A Dremote_provisioning.rs281 eek: &[u8], in generate_csr()
282 challenge: &[u8], in generate_csr()
286 ) -> Result<Vec<u8>> { in generate_csr()
339 public_key: &[u8], in provision_cert_chain()
340 batch_cert: &[u8], in provision_cert_chain()
341 certs: &[u8], in provision_cert_chain()
441 eek: &[u8], in generateCsr()
442 challenge: &[u8], in generateCsr()
464 public_key: &[u8], in provisionCertChain()
465 batch_cert: &[u8], in provisionCertChain()
[all …]
H A Dsuper_key.rs163 pub fn aes_gcm_decrypt(&self, data: &[u8], iv: &[u8], tag: &[u8]) -> Result<ZVec> { in aes_gcm_decrypt()
436 blob: &'a [u8], in unwrap_key_if_required()
661 super_key: &[u8], in encrypt_with_password()
663 ) -> Result<(Vec<u8>, BlobMetaData)> { in encrypt_with_password()
687 key_blob: &[u8], in super_encrypt_on_key_init()
688 ) -> Result<(Vec<u8>, BlobMetaData)> { in super_encrypt_on_key_init()
708 key_blob: &[u8], in encrypt_with_aes_super_key()
710 ) -> Result<(Vec<u8>, BlobMetaData)> { in encrypt_with_aes_super_key()
735 key_blob: &[u8], in handle_super_encryption_on_key_init()
736 ) -> Result<(Vec<u8>, BlobMetaData)> { in handle_super_encryption_on_key_init()
[all …]
H A Dattestation_key_utils.rs100 ) -> Result<(KeyIdGuard, Vec<u8>, Vec<u8>, BlobMetaData)> { in load_attest_key_blob_and_cert()
H A Dapc.rs204 confirmation_token_sender: Sender<Vec<u8>>, in new_native_binder()
215 data_confirmed: Option<&[u8]>, in result()
216 confirmation_token: Option<&[u8]>, in result()
272 extra_data: &[u8], in present_prompt()
362 extra_data: &[u8], in presentPrompt()
H A Doperation.rs386 fn update(&self, input: &[u8]) -> Result<Option<Vec<u8>>> { in update()
417 fn finish(&self, input: Option<&[u8]>, signature: Option<&[u8]>) -> Result<Option<Vec<u8>>> { in finish()
855 fn update(&self, input: &[u8]) -> binder::public_api::Result<Option<Vec<u8>>> { in update()
867 input: Option<&[u8]>, in finish()
868 signature: Option<&[u8]>, in finish()
869 ) -> binder::public_api::Result<Option<Vec<u8>>> { in finish()
H A Dservice.rs183 public_cert: Option<&[u8]>, in update_subcomponent()
184 certificate_chain: Option<&[u8]>, in update_subcomponent()
374 public_cert: Option<&[u8]>, in updateSubcomponent()
375 certificate_chain: Option<&[u8]>, in updateSubcomponent()
H A Dsecurity_level.rs497 _entropy: &[u8], in generate_key()
614 key_data: &[u8], in import_key()
672 masking_key: Option<&[u8]>, in import_wrapped_key()
800 upgraded_blob: &[u8], in store_upgraded_keyblob()
1005 entropy: &[u8], in generateKey()
1021 key_data: &[u8], in importKey()
1033 masking_key: Option<&[u8]>, in importWrappedKey()
H A Draw_device.rs307 key_blob: &[u8], in use_key_in_one_step()
311 input: &[u8], in use_key_in_one_step()
312 ) -> Result<Vec<u8>> { in use_key_in_one_step()
/aosp12/system/bt/gd/rust/hal/src/
H A Dhidl_hal.rs45 fn send_acl(data: &[u8]); in send_acl()
46 fn send_sco(data: &[u8]); in send_sco()
47 fn send_iso(data: &[u8]); in send_iso()
52 fn on_event(data: &[u8]); in on_event()
53 fn on_acl(data: &[u8]); in on_acl()
54 fn on_sco(data: &[u8]); in on_sco()
55 fn on_iso(data: &[u8]); in on_iso()
75 fn on_event(data: &[u8]) { in on_event()
84 fn on_acl(data: &[u8]) { in on_acl()
92 fn on_sco(_data: &[u8]) {} in on_sco()
[all …]
/aosp12/system/security/keystore2/src/crypto/
H A Dlib.rs65 pub fn generate_random_data(size: usize) -> Result<Vec<u8>, Error> { in generate_random_data()
82 pub fn aes_gcm_decrypt(data: &[u8], iv: &[u8], tag: &[u8], key: &[u8]) -> Result<ZVec, Error> { in aes_gcm_decrypt()
124 pub fn aes_gcm_encrypt(plaintext: &[u8], key: &[u8]) -> Result<(Vec<u8>, Vec<u8>, Vec<u8>), Error> { in aes_gcm_encrypt()
173 fn get_key(&'a self) -> &'a [u8] { in get_key()
183 pub fn derive_key(&self, salt: Option<&[u8]>, key_length: usize) -> Result<ZVec, Error> { in derive_key()
223 pub fn hkdf_extract(secret: &[u8], salt: &[u8]) -> Result<ZVec, Error> { in hkdf_extract()
253 pub fn hkdf_expand(out_len: usize, prk: &[u8], info: &[u8]) -> Result<ZVec, Error> { in hkdf_expand()
383 pub fn ec_point_point_to_oct(point: &EC_POINT) -> Result<Vec<u8>, Error> { in ec_point_point_to_oct()
413 pub fn parse_subject_from_certificate(cert_buf: &[u8]) -> Result<Vec<u8>, Error> { in parse_subject_from_certificate()
/aosp12/system/bt/gd/rust/shim/src/
H A Dhci.rs19 fn run(&self, data: &[u8]) { in run()
37 data: &[u8], in hci_send_command()
53 pub fn hci_send_acl(hci: &mut Hci, data: &[u8]) { in hci_send_acl()
65 pub fn hci_register_event(hci: &mut Hci, event: u8) { in hci_register_event()
72 pub fn hci_register_le_event(hci: &mut Hci, subevent: u8) { in hci_register_le_event()
H A Dbridge.rs28 fn hci_send_acl(hci: &mut Hci, data: &[u8]); in hci_send_acl()
29 fn hci_register_event(hci: &mut Hci, event: u8); in hci_register_event()
30 fn hci_register_le_event(hci: &mut Hci, subevent: u8); in hci_register_le_event()
92 fn controller_get_le_supported_advertising_sets(c: &Controller) -> u8; in controller_get_le_supported_advertising_sets()
93 fn controller_get_le_periodic_advertiser_list_size(c: &Controller) -> u8; in controller_get_le_periodic_advertiser_list_size()
95 fn controller_get_le_buffers(c: &Controller) -> u8; in controller_get_le_buffers()
96 fn controller_get_iso_buffers(c: &Controller) -> u8; in controller_get_iso_buffers()
97 fn controller_get_le_connect_list_size(c: &Controller) -> u8; in controller_get_le_connect_list_size()
98 fn controller_get_le_resolving_list_size(c: &Controller) -> u8; in controller_get_le_resolving_list_size()
108 fn Run(self: &u8SliceCallback, data: &[u8]); in Run()
[all …]
/aosp12/system/security/keystore2/apc_compat/
H A Dapc_compat.rs78 tbs_message: *const u8, in confirmation_result_callback()
80 confirmation_token: *const u8, in confirmation_result_callback()
151 extra_data: &[u8], in prompt_user_confirmation()
157 F: FnOnce(u32, Option<&[u8]>, Option<&[u8]>) + 'static, in prompt_user_confirmation()
/aosp12/system/nfc/src/include/
H A Dnfc_types.h62 #define UINT8_TO_STREAM(p, u8) \ argument
64 #define INT8_TO_STREAM(p, u8) \ argument
76 #define STREAM_TO_UINT8(u8, p) \ argument
127 #define UINT8_TO_BE_STREAM(p, u8) \ argument
135 #define BE_STREAM_TO_UINT8(u8, p) \ argument
157 #define UINT8_TO_BE_FIELD(p, u8) \ argument
/aosp12/system/bt/gd/rust/hci/custom_types/
H A Dlib.rs60 impl From<Address> for [u8; 6] { implementation
61 fn from(addr: Address) -> [u8; 6] { in from()
104 impl From<ClassOfDevice> for [u8; 3] { implementation
105 fn from(cod: ClassOfDevice) -> [u8; 3] { in from()
/aosp12/packages/modules/Virtualization/authfs/src/
H A Dauth.rs23 fn verify(&self, signature: &[u8], signed_data: &[u8]) -> io::Result<bool>; in verify()
42 fn verify(&self, _signature_pem: &[u8], _signed_data: &[u8]) -> io::Result<bool> { in verify()
H A Dfile.rs39 fn write_at(&self, buf: &[u8], offset: u64) -> io::Result<usize>; in write_at()
42 fn write_all_at(&self, buf: &[u8], offset: u64) -> io::Result<()> { in write_all_at()
H A Dcrypto.rs72 T: AsRef<[u8]>, in update_from()
80 pub fn finalize(&mut self) -> Result<[u8; Self::HASH_SIZE], CryptoError> { in finalize()
/aosp12/packages/modules/Virtualization/authfs/fd_server/src/
H A Dmain.rs113 fn readFile(&self, id: i32, offset: i64, size: i32) -> BinderResult<Vec<u8>> { in readFile()
127 fn readFsverityMerkleTree(&self, id: i32, offset: i64, size: i32) -> BinderResult<Vec<u8>> { in readFsverityMerkleTree()
159 fn readFsveritySignature(&self, id: i32) -> BinderResult<Vec<u8>> { in readFsveritySignature()
188 fn writeFile(&self, id: i32, buf: &[u8], offset: i64) -> BinderResult<i32> { in writeFile()
229 fn read_into_buf(file: &File, max_size: usize, offset: u64) -> io::Result<Vec<u8>> { in read_into_buf()
/aosp12/packages/modules/Virtualization/authfs/src/fsverity/
H A Dverifier.rs34 fn hash_with_padding(chunk: &[u8], pad_to: usize) -> Result<HashBuffer, CryptoError> { in hash_with_padding()
39 fn verity_check<T: ReadByChunk>( in verity_check()
116 ) -> Result<[u8; SIZE_OF_FSVERITY_FORMATTED_DIGEST_SHA256], CryptoError> { in build_fsverity_formatted_digest()
140 sig: Vec<u8>, in new()
H A Deditor.rs100 source: &[u8], in new_hash_for_incomplete_write()
131 source: &[u8], in new_chunk_hash()
159 fn write_at(&self, buf: &[u8], offset: u64) -> io::Result<usize> { in write_at()
286 fn write_at(&self, buf: &[u8], offset: u64) -> io::Result<usize> { in write_at()
602 fn to_u8_vec(hex_str: &str) -> Vec<u8> { in to_u8_vec()
/aosp12/system/security/keystore2/aaid/
H A Dlib.rs23 pub fn get_aaid(uid: u32) -> Result<Vec<u8>, u32> { in get_aaid()
/aosp12/system/nfc/src/nfc/include/
H A Dllcp_defs.h40 #define LLCP_GET_NS(u8) ((uint8_t)(u8) >> 4) argument
41 #define LLCP_GET_NR(u8) ((uint8_t)(u8)&0x0F) argument
88 #define LLCP_GET_MAJOR_VERSION(u8) (((uint8_t)(u8) >> 4) & 0x0F) argument
89 #define LLCP_GET_MINOR_VERSION(u8) ((uint8_t)(u8)&0x0F) argument
/aosp12/hardware/nxp/nfc/snxxx/halimpl/hal/
H A DphNxpNciHal_ext.h43 #define UINT8_TO_STREAM(p, u8) \ argument

1234