platform_hardware_interfaces/keymaster
Ryan Prichard b2c9d5c9a6 Fix nonce uniqueness tests
std::unique consolidates the unique nonces at the start of the `nonces`
vector, but it doesn't modify nonces.size(), so these tests weren't
actually verifying that the nonces were unique. Add a vector::erase
call to shrink the vector.

After upgrading libc++, std::unique is [[nodiscard]] and this bug is
a compiler error.

Bug: 175635923
Test: treehugger
Test: m VtsAidlSharedSecretTargetTest VtsHalKeymasterV4_0TargetTest
Change-Id: I7fd8c40a3920bf3a8988c8065503c78ba36dc742
2023-09-20 16:11:35 -07:00
..
3.0 Use BoringSSL's public API in keymaster_hidl_hal_test 2023-05-15 00:16:39 -04:00
4.0 Fix nonce uniqueness tests 2023-09-20 16:11:35 -07:00
4.1 Coalesce OWNERS and add component 2022-10-13 09:25:48 +01:00
aidl Add @hide to the keymaster interfaces 2022-11-01 20:38:02 +00:00
OWNERS Coalesce OWNERS and add component 2022-10-13 09:25:48 +01:00
TEST_MAPPING Keymaster VTS: add TEST_MAPPING 2023-05-24 16:58:27 -04:00