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
2022-03-14 22:10:48 +00:00
2021-12-14 01:45:47 +00:00
2021-11-03 11:23:01 -07:00
2021-06-02 16:01:53 -07:00
2021-12-14 20:25:22 +00:00
2022-04-11 08:35:11 +01:00
2021-12-14 01:45:47 +00:00
2021-12-14 01:45:47 +00:00
2021-12-14 01:45:47 +00:00
2022-04-11 08:35:11 +01:00
2021-12-23 14:36:15 -08:00
2021-12-14 01:45:47 +00:00
2019-12-13 14:24:23 -08:00
2016-08-30 11:28:36 -07:00
2020-12-16 18:09:12 +00:00
2021-01-21 15:06:51 +09:00
Description
No description provided
134 MiB
Languages
C++ 56.3%
AIDL 41.2%
C 1.5%
Rust 0.4%
Java 0.4%
Other 0.1%