Addressed bitrot in keymaster_tests
* Moved sample keys ec_privkey_pk8.der and rsa_privkey_pk8.der into
header file test_keys.h
* Replaced golden key for wrapped import with one that uses RSA with
OAEP/SHA256.
* Adjusted expectations about keymaster and attestation versions.
* Fixed Shared HMAC key computation test that used a bitwise and
instead of modulo for selecting the seed to corrupt.
* TestKeyMasterEnforcement in keymaster_enforcement_test.cpp was
masked by TestKeyMasterEnforcement in android_keymaster_test.cpp
which has a different notion of time and caused the activation
and expiration date tests to fail.
Test: keymaster_tests
Change-Id: Id58fe9dbb60cc0f7a9f2bccfd44b13b7c2bc0635
5 files changed