platform_hardware_interfaces/keymaster
David Drysdale b809329dc7 Fix AES corrupt padding test
The AesEcbPkcs7PaddingCorrupted test has been incorrect since it was
originally introduced -- it was feeding the original message as input to
the decryption operation, rather than the corrupted ciphertext.  As a
result, the expected error code was also wrong -- INVALID_INPUT_LENGTH
is appropriate for a too-short cipher text (length 1 in this case),
whereas a corrupt-but-correct-length cipher text should give
INVALID_ARGUMENT.

Fix the test, and add a separate test to cover what was inadvertently
being tested before. Add a sentence to the HAL spec to describe what
expected and tested by CTS/VTS.

Bug: 194126736
Test: VtsAidlKeyMintTargetTest, VtsHalKeymasterV4_0TargetTest
Change-Id: Iaa5e42768814197f373797831093cf344d342b77
2022-04-11 08:35:11 +01:00
..
3.0 Add OWNER for keymaster VTS 2022-03-14 14:28:27 +00:00
4.0 Fix AES corrupt padding test 2022-04-11 08:35:11 +01:00
4.1 Add OWNER for keymaster VTS 2022-03-14 14:28:27 +00:00
aidl Freeze AIDL APIs for SC 2021-05-25 10:13:26 +09:00