aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/wireguard/wireguard_hchacha20.h
AgeCommit message (Collapse)AuthorFilesLines
2022-08-03wireguard: add processing of received cookie messagesAlexander Chernavin1-0/+90
Type: feature Currently, if a handshake message is sent and a cookie message is received in reply, the cookie message will be ignored. Thus, further handshake messages will not have valid mac2 and handshake will not be able to be completed. With this change, process received cookie messages to be able to calculate mac2 for further handshake messages sent. Cover this with tests. Signed-off-by: Alexander Chernavin <achernavin@netgate.com> Change-Id: I6d51459778b7145be7077badec479b2aa85960b9