Searched refs:keyblob (Results 1 – 2 of 2) sorted by relevance
/hardware/interfaces/security/keymint/aidl/vts/functional/ |
D | KeyBlobUpgradeTest.cpp | 126 const vector<uint8_t>& keyblob, in save_keyblob() argument 131 blobfile.write(reinterpret_cast<const char*>(keyblob.data()), keyblob.size()); in save_keyblob() 147 hexfile << bin2hex(keyblob) << "\n"; in save_keyblob() 152 const vector<uint8_t>& keyblob, in save_keyblob_and_cert() argument 155 save_keyblob(subdir, name, keyblob, key_characteristics); in save_keyblob_and_cert() 241 std::vector<uint8_t> keyblob = load_keyblob(subdir, name); in UpgradeKeyBlobs() local 242 if (keyblob.empty()) { in UpgradeKeyBlobs() 256 keymint_->upgradeKey(keyblob, builder.vector_data(), &upgraded_keyblob); in UpgradeKeyBlobs() 266 EXPECT_EQ(ErrorCode::OK, DeleteKey(&keyblob)); in UpgradeKeyBlobs() 391 vector<uint8_t> keyblob; in TEST_P() local [all …]
|
D | AuthTest.cpp | 320 vector<uint8_t> keyblob; in TEST_P() local 324 GenerateKey(builder, std::nullopt, &keyblob, &key_characteristics, &cert_chain)); in TEST_P() 331 Begin(KeyPurpose::ENCRYPT, keyblob, params, &out_params)); in TEST_P() 340 const string ciphertext = EncryptMessage(keyblob, message, params, &out_params, hat.value()); in TEST_P() 341 const string plaintext = DecryptMessage(keyblob, ciphertext, params, hat.value()); in TEST_P() 349 Begin(KeyPurpose::ENCRYPT, keyblob, params, &out_params, dodgy_hat)); in TEST_P() 354 auto begin_result = Begin(KeyPurpose::ENCRYPT, keyblob, params, &out_params, hat); in TEST_P() 396 vector<uint8_t> keyblob; in TEST_P() local 400 GenerateKey(builder, std::nullopt, &keyblob, &key_characteristics, &cert_chain)); in TEST_P() 414 ASSERT_EQ(ErrorCode::OK, Begin(KeyPurpose::ENCRYPT, keyblob, params, &out_params, hat)); in TEST_P() [all …]
|