4d48337ffd
- Generate EC/RSA attestation keys and use it for signing RSA and EC keys. Test should be able to use the attest keys for signing the generated keys successfully. - Generate EC-CURVE_25519 attestation key and use it for signing RSA key. Test should be able to generate RSA key with EC-CURVE_25519 key as attestation key. - Generate an asymmetric key which doesn't possess ATTEST_KEY purpose. Use this key for attesting asymmetric key. It should fail to generate key with incompatible purpose error. - Generate a symmetric key. Try to use this symmetric key as attestation key while generating asymmetric key. It should fail to generate a key with system error. - Try to generate symmetric key with valid attestation key, attstation-challenge and attestation-app-id. Test should generate a key without attestation record. - Try to generate RSA/EC attestation keys with multiple purpose. Test should fail to generate keys with incompatible purpose error code. - Generate an attestation key and try to use it for signing a key without providing attestation challenge. Test should fail with missing attestation challenge error. Note: These tests are executed on devices where `android.hardware.keystore.app_attest_key` feature is enabled, otherwise tests are skipped. Bug: 194359114 Test: atest keystore2_client_test Change-Id: I4228dc5fe5e207995472c3425d5f2696ef95249f |
||
---|---|---|
.. | ||
authorizations.rs | ||
key_generations.rs | ||
lib.rs | ||
run_as.rs |