• Home
  • Raw
  • Download

Lines Matching refs:u8

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;
71 pub const KEY_CHARACTERISTICS: u8 = 5;
74 pub const KEY_CHARACTERISTICS_CACHE: u8 = 6;
76 pub const SUPER_KEY_AES256: u8 = 7;
96 Generic(Vec<u8>),
98 Characteristics(Vec<u8>),
101 CharacteristicsCache(Vec<u8>),
106 iv: Vec<u8>,
108 tag: Vec<u8>,
110 data: Vec<u8>,
112 salt: Vec<u8>,
121 iv: Vec<u8>,
123 tag: Vec<u8>,
125 data: Vec<u8>,
138 flags: u8,
149 let mut buffer: [u8; SIZE] = [0; SIZE]; in read_bool()
155 let mut buffer: [u8; SIZE] = [0; SIZE]; in read_ne_u32()
161 let mut buffer: [u8; SIZE] = [0; SIZE]; in read_ne_i32()
167 let mut buffer: [u8; SIZE] = [0; SIZE]; in read_ne_i64()
266 acc.push((b'+' + (c as u8 >> 6)) as char); in encode_alias()
279 let mut multi: Option<u8> = None; in decode_alias()
280 let mut s = Vec::<u8>::new(); in decode_alias()
314 let version: u8 = buffer[Self::VERSION_OFFSET]; in new_from_stream()
316 let flags: u8 = buffer[Self::FLAGS_OFFSET]; in new_from_stream()
317 let blob_type: u8 = buffer[Self::TYPE_OFFSET]; in new_from_stream()
410 F: FnOnce(&[u8], &[u8], &[u8], Option<&[u8]>, Option<usize>) -> Result<ZVec>, in new_from_stream_decrypt_with() argument
468 pub fn read_key_parameters(stream: &mut &[u8]) -> Result<Vec<KeyParameterValue>> { in read_key_parameters()
643 pub fn read_legacy_keystore_entry(&self, uid: u32, alias: &str) -> Result<Option<Vec<u8>>> { in read_legacy_keystore_entry() argument
1008 ) -> Result<(Option<(Blob, Vec<KeyParameter>)>, Option<Vec<u8>>, Option<Vec<u8>>)> { in load_by_uid_alias() argument
1198 assert_eq!(random_alias.to_vec(), decoded.bytes().collect::<Vec<u8>>()); in decode_encode_alias_test()