Secretkeeper/VTS: Per-connection replay protection
Add test coverage for replay protection in Secretkeeper. Test that: 1. Sk implementation encrypts/decrypts messages using correct sequence_numbers. 2. Out of order messages are not accepted. 3. The sequence numbers are per-connection ie, new SeqNum is used for a fresh connection. Also, refactor code. SeqNumbers are maintained by libsecretkeeper_client. Have sk_client use a handle to SkSession for SecretManagement requests. Replay protection tests however require more fine grained control of SeqNums. For these we have introduced `secret_management_request_custom_aad()` method. Bug: 316126411 Test: atest VtsSecretkeeperTargetTest Change-Id: I385856c04e185d2b300d59a1b54cb8f09cbf836f
Loading
Please register or sign in to comment