/system/security/keystore2/src/legacy_blob/test/ |
D | legacy_blob_test_vectors.rs | 15 pub static BLOB: &[u8] = &[ 25 pub static REAL_LEGACY_BLOB: &[u8] = &[ 56 pub static REAL_LEGACY_BLOB_PAYLOAD: &[u8] = &[ 85 pub static AES_KEY: &[u8] = &[ 90 pub static AES_GCM_ENCRYPTED_BLOB: &[u8] = &[ 122 pub static DECRYPTED_PAYLOAD: &[u8] = &[ 152 pub static PASSWORD: &[u8] = &[ 159 pub static SUPERKEY: &[u8] = &[ 167 pub static USRPKEY_AUTHBOUND: &[u8] = &[ 206 pub static USRPKEY_AUTHBOUND_CHR: &[u8] = &[ [all …]
|
/system/security/keystore2/src/ |
D | ec_crypto.rs | 37 pub fn from_private_key(buf: &[u8]) -> Result<ECDHPrivateKey> { in from_private_key() 50 pub fn public_key(&self) -> Result<Vec<u8>> { in public_key() argument 61 salt: &[u8], in agree_key() argument 62 other_public_key: &[u8], in agree_key() argument 63 sender_public_key: &[u8], in agree_key() argument 64 recipient_public_key: &[u8], in agree_key() argument 84 recipient_public_key: &[u8], in encrypt_message() argument 85 message: &[u8], in encrypt_message() argument 86 ) -> Result<(Vec<u8>, Vec<u8>, Vec<u8>, Vec<u8>, Vec<u8>)> { in encrypt_message() argument 105 sender_public_key: &[u8], in decrypt_message() argument [all …]
|
D | remote_provisioning.rs | 281 eek: &[u8], in generate_csr() argument 282 challenge: &[u8], in generate_csr() argument 286 ) -> Result<Vec<u8>> { in generate_csr() argument 310 let mut cose_mac_0: Vec<u8> = vec![ in generate_csr() 311 (0b100_00000 | (keys_to_sign.len() + 1)) as u8, in generate_csr() 313 (mac.len() as u8), in generate_csr() 339 public_key: &[u8], in provision_cert_chain() argument 340 batch_cert: &[u8], in provision_cert_chain() argument 341 certs: &[u8], in provision_cert_chain() argument 378 let mut raw_key: Vec<u8> = vec![0; 64]; in generate_key_pair() [all …]
|
D | legacy_blob.rs | 35 const SUPPORTED_LEGACY_BLOB_VERSION: u8 = 3; 40 pub const ENCRYPTED: u8 = 1 << 0; 45 pub const FALLBACK: u8 = 1 << 1; 49 pub const SUPER_ENCRYPTED: u8 = 1 << 2; 54 pub const CRITICAL_TO_DEVICE_ENCRYPTION: u8 = 1 << 3; 56 pub const STRONGBOX: u8 = 1 << 4; 62 pub const GENERIC: u8 = 1; 65 pub const SUPER_KEY: u8 = 2; 67 const _RESERVED: u8 = 3; 69 pub const KM_BLOB: u8 = 4; [all …]
|
D | attestation_key_utils.rs | 43 blob: Vec<u8>, 45 issuer_subject: Vec<u8>, 89 let issuer_subject: Vec<u8> = parse_subject_from_certificate(&cert).context( in get_user_generated_attestation_key() 100 ) -> Result<(KeyIdGuard, Vec<u8>, Vec<u8>, BlobMetaData)> { in load_attest_key_blob_and_cert() argument
|
D | operation.rs | 342 fn check_input_length(data: &[u8]) -> Result<()> { in check_input_length() 360 fn update_aad(&self, aad_input: &[u8]) -> Result<()> { in update_aad() 386 fn update(&self, input: &[u8]) -> Result<Option<Vec<u8>>> { in update() argument 417 fn finish(&self, input: Option<&[u8]>, signature: Option<&[u8]>) -> Result<Option<Vec<u8>>> { in finish() argument 844 fn updateAad(&self, aad_input: &[u8]) -> binder::public_api::Result<()> { in updateAad() 855 fn update(&self, input: &[u8]) -> binder::public_api::Result<Option<Vec<u8>>> { in update() argument 867 input: Option<&[u8]>, in finish() argument 868 signature: Option<&[u8]>, in finish() argument 869 ) -> binder::public_api::Result<Option<Vec<u8>>> { in finish() argument
|
D | key_parameter.rs | 173 implement_associate_primitive_identity! {Vec<u8>} 186 Vec(Vec<u8>), 199 impl From<Vec<u8>> for Primitive { 200 fn from(v: Vec<u8>) -> Self { in from() 236 impl TryInto<Vec<u8>> for Primitive { 239 fn try_into(self) -> Result<Vec<u8>, Self::Error> { in try_into() argument 880 ApplicationID(Vec<u8>), 884 ApplicationData(Vec<u8>), 893 RootOfTrust(Vec<u8>), 902 UniqueID(Vec<u8>), [all …]
|
D | apc.rs | 185 confirmation_token_sender: Sender<Vec<u8>>, 189 fn new(confirmation_token_sender: Sender<Vec<u8>>) -> Self { in new() 204 confirmation_token_sender: Sender<Vec<u8>>, in new_native_binder() argument 215 data_confirmed: Option<&[u8]>, in result() argument 216 confirmation_token: Option<&[u8]>, in result() argument 272 extra_data: &[u8], in present_prompt() argument 362 extra_data: &[u8], in presentPrompt() argument
|
D | gc.rs | 48 Box<dyn Fn(&Uuid, &[u8]) -> Result<()> + Send + 'static>, in new_init_with() 86 superseded_blobs: Vec<(i64, Vec<u8>, BlobMetaData)>, 87 invalidate_key: Box<dyn Fn(&Uuid, &[u8]) -> Result<()> + Send + 'static>,
|
D | super_key.rs | 163 pub fn aes_gcm_decrypt(&self, data: &[u8], iv: &[u8], tag: &[u8]) -> Result<ZVec> { in aes_gcm_decrypt() argument 178 nonce: Vec<u8>, 179 ciphertext: Vec<u8>, // with tag appended 183 fn new(key: &[u8], to_encrypt: &Arc<SuperKey>) -> Result<Self> { in new() argument 436 blob: &'a [u8], in unwrap_key_if_required() argument 456 fn unwrap_key_with_key(blob: &[u8], metadata: &BlobMetaData, key: &SuperKey) -> Result<ZVec> { in unwrap_key_with_key() argument 661 super_key: &[u8], in encrypt_with_password() argument 663 ) -> Result<(Vec<u8>, BlobMetaData)> { in encrypt_with_password() argument 687 key_blob: &[u8], in super_encrypt_on_key_init() argument 688 ) -> Result<(Vec<u8>, BlobMetaData)> { in super_encrypt_on_key_init() argument [all …]
|
/system/bt/gd/rust/hci/custom_types/ |
D | lib.rs | 16 pub bytes: [u8; 6], 45 impl TryFrom<&[u8]> for Address { 48 fn try_from(slice: &[u8]) -> Result<Self, Self::Error> { in try_from() 50 match <[u8; 6]>::try_from(slice) { in try_from() 60 impl From<Address> for [u8; 6] { implementation 61 fn from(addr: Address) -> [u8; 6] { in from() 70 pub bytes: [u8; 3], 89 impl TryFrom<&[u8]> for ClassOfDevice { 92 fn try_from(slice: &[u8]) -> Result<Self, Self::Error> { in try_from() 94 match <[u8; 3]>::try_from(slice) { in try_from() [all …]
|
/system/nfc/src/include/ |
D | nfc_types.h | 62 #define UINT8_TO_STREAM(p, u8) \ argument 63 { *(p)++ = (uint8_t)(u8); } 64 #define INT8_TO_STREAM(p, u8) \ argument 65 { *(p)++ = (int8_t)(u8); } 76 #define STREAM_TO_UINT8(u8, p) \ argument 78 (u8) = (uint8_t)(*(p)); \ 127 #define UINT8_TO_BE_STREAM(p, u8) \ argument 128 { *(p)++ = (uint8_t)(u8); } 135 #define BE_STREAM_TO_UINT8(u8, p) \ argument 137 (u8) = (uint8_t)(*(p)); \ [all …]
|
/system/nfc/src/nfc/include/ |
D | llcp_defs.h | 40 #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
|
/system/bt/gd/rust/hal/src/ |
D | hidl_hal.rs | 44 fn send_command(data: &[u8]); in send_command() argument 45 fn send_acl(data: &[u8]); in send_acl() argument 46 fn send_sco(data: &[u8]); in send_sco() argument 47 fn send_iso(data: &[u8]); in send_iso() argument 52 fn on_event(data: &[u8]); in on_event() argument 53 fn on_acl(data: &[u8]); in on_acl() argument 54 fn on_sco(data: &[u8]); in on_sco() argument 55 fn on_iso(data: &[u8]); in on_iso() argument 75 fn on_event(data: &[u8]) { in on_event() argument 84 fn on_acl(data: &[u8]) { in on_acl() argument [all …]
|
/system/security/keystore2/src/crypto/ |
D | lib.rs | 60 pub fn generate_salt() -> Result<Vec<u8>, Error> { in generate_salt() 65 pub fn generate_random_data(size: usize) -> Result<Vec<u8>, Error> { in generate_random_data() argument 82 pub fn aes_gcm_decrypt(data: &[u8], iv: &[u8], tag: &[u8], key: &[u8]) -> Result<ZVec, Error> { in aes_gcm_decrypt() argument 124 pub fn aes_gcm_encrypt(plaintext: &[u8], key: &[u8]) -> Result<(Vec<u8>, Vec<u8>, Vec<u8>), Error> { in aes_gcm_encrypt() argument 136 let mut ciphertext: Vec<u8> = vec![0; plaintext.len()]; in aes_gcm_encrypt() 137 let mut tag: Vec<u8> = vec![0; TAG_LENGTH]; in aes_gcm_encrypt() 161 Ref(&'a [u8]), 166 impl<'a> From<&'a [u8]> for Password<'a> { 167 fn from(pw: &'a [u8]) -> Self { in from() 173 fn get_key(&'a self) -> &'a [u8] { in get_key() argument [all …]
|
D | zvec.rs | 28 elems: Box<[u8]>, 35 let v: Vec<u8> = vec![0; size]; in new() 69 type Target = [u8]; 92 impl TryFrom<&[u8]> for ZVec { 95 fn try_from(v: &[u8]) -> Result<Self, Self::Error> { in try_from() 104 impl TryFrom<Vec<u8>> for ZVec { 107 fn try_from(mut v: Vec<u8>) -> Result<Self, Self::Error> { in try_from()
|
/system/bt/gd/rust/shim/src/ |
D | bridge.rs | 27 fn hci_send_command(hci: &mut Hci, data: &[u8], callback: UniquePtr<u8SliceOnceCallback>); in hci_send_command() argument 28 fn hci_send_acl(hci: &mut Hci, data: &[u8]); in hci_send_acl() argument 29 fn hci_register_event(hci: &mut Hci, event: u8); in hci_register_event() argument 30 fn hci_register_le_event(hci: &mut Hci, subevent: u8); in hci_register_le_event() argument 92 fn controller_get_le_supported_advertising_sets(c: &Controller) -> u8; in controller_get_le_supported_advertising_sets() argument 93 fn controller_get_le_periodic_advertiser_list_size(c: &Controller) -> u8; in controller_get_le_periodic_advertiser_list_size() argument 95 fn controller_get_le_buffers(c: &Controller) -> u8; in controller_get_le_buffers() argument 96 fn controller_get_iso_buffers(c: &Controller) -> u8; in controller_get_iso_buffers() argument 97 fn controller_get_le_connect_list_size(c: &Controller) -> u8; in controller_get_le_connect_list_size() argument 98 fn controller_get_le_resolving_list_size(c: &Controller) -> u8; in controller_get_le_resolving_list_size() argument [all …]
|
D | controller.rs | 129 le_supported_advertising_sets: u8, 130 le_periodic_advertiser_list_size: u8, 132 le_buffers: u8, 133 iso_buffers: u8, 134 le_connect_list_size: u8, 135 le_resolving_list_size: u8,
|
D | hci.rs | 19 fn run(&self, data: &[u8]) { in run() argument 37 data: &[u8], in hci_send_command() argument 53 pub fn hci_send_acl(hci: &mut Hci, data: &[u8]) { in hci_send_acl() argument 65 pub fn hci_register_event(hci: &mut Hci, event: u8) { in hci_register_event() argument 72 pub fn hci_register_le_event(hci: &mut Hci, subevent: u8) { in hci_register_le_event() argument
|
/system/security/keystore2/apc_compat/ |
D | apc_compat.rs | 73 type Callback = dyn FnOnce(u32, Option<&[u8]>, Option<&[u8]>); 78 tbs_message: *const u8, in confirmation_result_callback() argument 80 confirmation_token: *const u8, in confirmation_result_callback() argument 151 extra_data: &[u8], in prompt_user_confirmation() argument 157 F: FnOnce(u32, Option<&[u8]>, Option<&[u8]>) + 'static, in prompt_user_confirmation() argument
|
/system/bt/gd/rust/hci/src/ |
D | controller.rs | 88 le_buffers = (acl_buffers / 2) as u8; in provide_controller() 175 let mut page_number: u8 = 0; in read_features() 176 let mut max_page_number: u8 = 1; in read_features() 198 pub sco_buffer_length: u8, 201 pub le_buffers: u8, 203 pub iso_buffers: u8, 206 pub le_connect_list_size: u8, 207 pub le_resolving_list_size: u8, 211 pub le_supported_advertising_sets: u8, 212 pub le_periodic_advertiser_list_size: u8, [all …]
|
/system/bt/stack/include/ |
D | bt_types.h | 173 #define UINT8_TO_STREAM(p, u8) \ argument 174 { *(p)++ = (uint8_t)(u8); } 175 #define INT8_TO_STREAM(p, u8) \ argument 176 { *(p)++ = (int8_t)(u8); } 215 #define STREAM_TO_INT8(u8, p) \ argument 217 (u8) = (*((int8_t*)(p))); \ 220 #define STREAM_TO_UINT8(u8, p) \ argument 222 (u8) = (uint8_t)(*(p)); \ 331 #define UINT8_TO_FIELD(p, u8) \ argument 332 { *(uint8_t*)(p) = (uint8_t)(u8); } [all …]
|
/system/core/libsparse/ |
D | sparse_defs.h | 34 #define __u8 u8 40 typedef unsigned char u8; typedef
|
/system/bt/stack/hid/ |
D | hidh_api.cc | 135 (p_attr->attr_value.v.u8)) { in hidh_search_callback() 141 (p_attr->attr_value.v.u8)) { in hidh_search_callback() 147 (p_attr->attr_value.v.u8)) { in hidh_search_callback() 153 (p_attr->attr_value.v.u8)) { in hidh_search_callback() 159 (p_attr->attr_value.v.u8)) { in hidh_search_callback() 165 (p_attr->attr_value.v.u8)) { in hidh_search_callback() 183 p_nvi->ctry_code = p_attr->attr_value.v.u8; in hidh_search_callback() 188 p_nvi->sub_class = p_attr->attr_value.v.u8; in hidh_search_callback()
|
/system/bt/gd/rust/topshim/src/ |
D | btif.rs | 82 pin: [u8; 16], 88 val: Vec<u8>, 92 uuid: [u8; 16], 96 address: [u8; 6], 143 accept: u8, in PinReply() argument 144 pin_len: u8, in PinReply() argument 151 accept: u8, in SspReply() argument
|