platform_hardware_interfaces/keymaster/3.0/vts/functional
Iris Chang 926a8e7440 VTS: fix VtsHalKeymasterV3_0Target issue
Failed cases:
AttestationTest.RsaAttestation
AttestationTest.EcAttestation

Analysis:
The verify_attestation_record() in Keymaster_hidl_hal_test.cpp calls
parse_attestation_record() to set the value of att_challenge. It fails
to compare att_challenge with challenge by memcmp.
Because setToExternal() method uses buffer pointer to local variable
(record), not use memcpy to copy into itself buffer in
parse_attestation_record(). When it leaves the parse_attestation_record(),
we will get the att_challenge which is null buffer to compare with challenge
incorrectly.

Fix: use memcpy to copy the buffer.

Bug: 65039571
Test: build passed. VtsHalKeymasterV3_0Target -> PASSED: 106, FAILED: 0.
Change-Id: I700a9242cc9a5f4cb196b62860823601e4088531
Merged-In: I700a9242cc9a5f4cb196b62860823601e4088531
(cherry picked from 54ca32a130)
2017-10-06 09:51:46 +08:00
..
Android.mk Add DeleteKey and DeleteAllKeys test to Keymaster VTS tests 2017-03-31 15:38:27 -07:00
attestation_record.cpp VTS: fix VtsHalKeymasterV3_0Target issue 2017-10-06 09:51:46 +08:00
attestation_record.h Revert "Revert "Add keymaster VTS tests."" 2017-03-30 13:21:54 +00:00
authorization_set.cpp Revert "Revert "Add keymaster VTS tests."" 2017-03-30 13:21:54 +00:00
authorization_set.h Revert "Revert "Add keymaster VTS tests."" 2017-03-30 13:21:54 +00:00
key_param_output.cpp Revert "Revert "Add keymaster VTS tests."" 2017-03-30 13:21:54 +00:00
key_param_output.h Revert "Revert "Add keymaster VTS tests."" 2017-03-30 13:21:54 +00:00
keymaster_hidl_hal_test.cpp Merge "Don't send more than 2K to addRngEntropy" into oc-dev 2017-09-12 16:28:44 +00:00
keymaster_tags.h Revert "Revert "Add keymaster VTS tests."" 2017-03-30 13:21:54 +00:00
keystore_tags_utils.cpp Revert "Revert "Add keymaster VTS tests."" 2017-03-30 13:21:54 +00:00
openssl_utils.h Revert "Revert "Add keymaster VTS tests."" 2017-03-30 13:21:54 +00:00