summaryrefslogtreecommitdiff
path: root/security/keymint/aidl/vts/functional/DeviceUniqueAttestationTest.cpp
AgeCommit message (Collapse)Author
2022-02-14KeyMint: Test generation of asymmetric keys fails with missing parametersPrashant Patil
A VTS testcase is added to validate Asymmetric key generation fails if TAG_CERTIFICATE_NOT_(BEFORE/AFTER) is missing. Also updated DeviceUniqueAttestationTest to set validity in AuthorizationSetBuilder using .SetDefaultValidity(). Bug: 205679495 Test: run vts -m VtsAidlKeyMintTargetTest Change-Id: Ibf63a6c8e173326502c7bf1b8f3af8666ecb1caf
2021-12-15KeyMint: new version number in attestationDavid Drysdale
For the time being, allow the version number in the attestation record to be 100 even if the AIDL version is 2, so that implementations don't have to update both versions simultaneously. Bug: 194358913 Test: TreeHugger, VtsAidlKeyMintTargetTest Change-Id: I9aae69327a62014e286ce30ca2a4d91c4c280714
2021-11-10KeyMint VTS: extra unique ID testDavid Drysdale
Test that specifying RESET_SINCE_ID_ROTATION results in a different unique ID value. Test: VtsAidlKeyMintTargetTest Bug: 202487002 Change-Id: I2aed96514bf9e4802f0ef756f880cac79fa09554
2021-10-12KeyMint VTS: use GTEST_SKIP for optional fnDavid Drysdale
When a KeyMint VTS exercises optional functionality, where possible use GTEST_SKIP() when that functionality is absent, so the test summary includes information about what is present and what isn't. This should not affect the overall test result. Test: VtsAidlKeyMintTargetTest Change-Id: I62d244d2e4ecc67737906009575e64b50450d4c4
2021-07-06KeyMint: Fix device-unique attestation chain specificationEran Messeri
Fix the device-unique attestation chain specification: The chain should have two or three certificates. In case of two certificates, the device-unique key should be used for the self-signed root. In case of three certificates, the device-unique key should be certified by another key (ideally shared by all StrongBox instances from the same manufacturer, to ease validation). Adjust the device-unique attestation tests to accept two or three certificates in the chain. Additionally, the current StrongBox KeyMint implementation can not yet generate fully-valid chains (with matching subjects and issuers), so relax that check. Bug: 191361618 Test: m VtsAidlKeyMintTargetTest Change-Id: I6e6bca33ebb4af67cac8e41a39e9c305d0f1345f
2021-06-17KeyMint VTS: improve attestation testsDavid Drysdale
Check that the various ATTESTATION_ID_* tags are included if they have the correct value, and that keygen fails if they have an invalid value. Also update attestation tags to include vendor/boot patchlevel if they're available. (They always should be, but fixing that is a separate task.) Bug: 190757200 Test: VtsAidlKeyMintTargetTest Merged-In: Ibaed7364c6d08c0982e2a9fb6cb864ae42cf39fe Change-Id: Ibaed7364c6d08c0982e2a9fb6cb864ae42cf39fe
2021-05-27Improve unique attestation docs & testsEran Messeri
Improve the documentation and tests related to device-unique attestation on StrongBox KeyMint devices: * Test that the chain produced is exactly of length 2. * Document how the chain needs to be structured. * Explain the trust properties of the key used for the self-signed root. Test: atest VtsAidlKeyMintTargetTest Bug: 187803288 Change-Id: I09bb16d6938b567c114485d2df00bde9d3e1ccf9
2021-05-19KeyMint: improve HAL spec and testsDavid Drysdale
- clarify & test BIGNUM spec - allow alternative return codes when requesting device unique attestation - use specific error for early boot import failure - test more early boot key scenarios (in post-early-boot mode) Test: VtsAidlKeyMintTargetTest Change-Id: I70a342084a29144aef1ed0ff80fec02cc06ffbc0
2021-05-05Merge "vts: Correct the parameters on strongbox"Tommy Chiu
2021-05-04vts: Correct the parameters on strongboxTommy Chiu
If GenerateKey() with user-provide key_blob, it needs to be specified in the following begin() operations as well. Update the test case just to take key_blob from private member instead of creating a local one. Note: - Remove redudent TAG_NO_AUTH_REQUIRED in DeviceUniqueAttestationTest Change-Id: I81860294e1e7e01a57e66e08e75507a8292ec0c3
2021-05-03Update DeviceUniqueAttestationTest to match specShawn Willden
Test: VtsAidlKeyMintTargetTest Change-Id: Ic8949e223eb7ba2445d4738dcd9b31a1d244bb46
2021-04-21Implement device unique attestation vts tests for keymint.Selene Huang
Test: atest VtsAidlKeyMintTargetTest Change-Id: If271c915d33cece035ab67b9149ae4ba762648b4