Lines Matching refs:BlobValue
94 pub enum BlobValue { enum
139 value: BlobValue,
196 pub fn value(&self) -> &BlobValue { in value() argument
201 pub fn take_value(self) -> BlobValue { in take_value() argument
345 Ok(Blob { flags, value: BlobValue::Generic(value.to_vec()) }) in new_from_stream()
348 Ok(Blob { flags, value: BlobValue::Characteristics(value.to_vec()) }) in new_from_stream()
351 Ok(Blob { flags, value: BlobValue::CharacteristicsCache(value.to_vec()) }) in new_from_stream()
355 value: BlobValue::PwEncrypted { in new_from_stream()
365 value: BlobValue::PwEncrypted { in new_from_stream()
375 value: BlobValue::Encrypted { in new_from_stream()
383 value: BlobValue::Decrypted(value.try_into().context("In new_from_stream.")?), in new_from_stream()
416 BlobValue::Encrypted { iv, tag, data } => Ok(Blob { in new_from_stream_decrypt_with()
418 value: BlobValue::Decrypted( in new_from_stream_decrypt_with()
423 BlobValue::PwEncrypted { iv, tag, data, salt, key_size } => Ok(Blob { in new_from_stream_decrypt_with()
425 value: BlobValue::Decrypted( in new_from_stream_decrypt_with()
565 BlobValue::Characteristics(data) => &data[..], in read_characteristics_file()
566 BlobValue::CharacteristicsCache(data) => &data[..], in read_characteristics_file()
578 BlobValue::CharacteristicsCache(_) => Some( in read_characteristics_file()
653 BlobValue::Generic(blob) => Some(blob), in read_legacy_keystore_entry()
1014 Blob { flags: _, value: BlobValue::Decrypted(_) } => km_blob, in load_by_uid_alias()
1016 Blob { flags, value: BlobValue::Encrypted { ref iv, ref tag, ref data } } => { in load_by_uid_alias()
1034 Blob { flags, value: BlobValue::Decrypted(decrypted) } in load_by_uid_alias()
1062 Some(Blob { value: BlobValue::Generic(data), .. }) => Some(data), in load_by_uid_alias()
1074 Some(Blob { value: BlobValue::Generic(data), .. }) => Some(data), in load_by_uid_alias()
1098 Blob { flags, value: BlobValue::PwEncrypted { iv, tag, data, salt, key_size } } => { in load_super_key()
1211 assert_eq!(blob.value(), &BlobValue::Generic([0xde, 0xed, 0xbe, 0xef].to_vec())); in read_golden_key_blob_test()
1223 &BlobValue::Decrypted(REAL_LEGACY_BLOB_PAYLOAD.try_into().unwrap()) in read_golden_key_blob_test()
1258 assert_eq!(blob.value(), &BlobValue::Decrypted(DECRYPTED_PAYLOAD.try_into().unwrap())); in read_aes_gcm_encrypted_key_blob_test()
1372 assert_eq!(value, BlobValue::Decrypted(LOADED_USRPKEY_NON_AUTHBOUND.try_into()?)); in test_legacy_blobs()