Home
last modified time | relevance | path

Searched refs:key_slot (Results 1 – 7 of 7) sorted by relevance

/system/keymaster/include/keymaster/key_blob_utils/
Dauth_encrypted_key_blob.h66 uint32_t key_slot = 0; member
82 uint32_t key_slot; member
110 uint32_t key_slot);
/system/keymint/tests/src/bin/
Dencrypted-keyblob-parse.rs60 if let Some(key_slot) = keyblob.key_slot { in process()
61 println!(" key_slot={}", key_slot); in process()
/system/keymaster/include/keymaster/
Dsecure_deletion_secret_storage.h81 virtual SecureDeletionData GetDataForKey(uint32_t key_slot) const = 0;
86 virtual void DeleteKey(uint32_t key_slot) const = 0;
/system/keymint/common/src/keyblob/legacy/
Dtests.rs99 key_slot: None, in test_serialize_encrypted_keyblob()
132 key_slot: Some(6), in test_serialize_encrypted_keyblob()
167 key_slot: Some(6), in test_serialize_encrypted_keyblob()
/system/keymaster/key_blob_utils/
Dauth_encrypted_key_blob.cpp64 sizeof(secure_deletion_data.key_slot); in BuildDerivationInfo()
80 static_assert(std::is_same_v<decltype(secure_deletion_data.key_slot), uint32_t>); in BuildDerivationInfo()
81 buf = append_uint32_to_buf(buf, end, secure_deletion_data.key_slot); in BuildDerivationInfo()
208 uint32_t key_slot) { in SerializeAuthEncryptedBlob() argument
214 if (use_key_slot) size += sizeof(key_slot); in SerializeAuthEncryptedBlob()
235 if (use_key_slot) buf = append_uint32_to_buf(buf, end, key_slot); in SerializeAuthEncryptedBlob()
272 if (!copy_uint32_from_buf(buf_ptr, end, &retval.key_slot)) { in DeserializeAuthEncryptedBlob()
/system/keymint/common/src/keyblob/
Dlegacy.rs59 pub key_slot: Option<u32>, field
98 if let Some(slot) = self.key_slot { in serialize()
135 let key_slot = match data.len() { in deserialize() localVariable
150 key_slot, in deserialize()
/system/keymaster/tests/
Dkey_blob_test.cpp126 uint32_t key_slot = static_cast<uint32_t>(rand()); in TEST_P() local
129 ASSERT_EQ(KM_ERROR_OK, Serialize(key_slot)); in TEST_P()
144 EXPECT_EQ(key_slot, deserialized->key_slot); in TEST_P()
146 EXPECT_EQ(0U, deserialized->key_slot); in TEST_P()
459 ++wrong_secure_deletion.key_slot; in TEST_P()