]> git.deb.at Git - rhonda/impostor.hazel.git/commit
Do not compute HMAC for zero-length cookies
authorMatthew Endsley <mendsley@gmail.com>
Wed, 3 Feb 2021 21:23:33 +0000 (13:23 -0800)
committerMatthew Endsley <mendsley@gmail.com>
Wed, 3 Feb 2021 22:40:59 +0000 (14:40 -0800)
commit4b223b14cd5d719e9378d89710ffa7e6ee11bfea
tree65d6ff0fe6e7dde7ef8e95a9456bdbb79c40540a
parent2092d5fa4f6b4d6acfb8e3314022794349968332
Do not compute HMAC for zero-length cookies

This is a common case since all clients send a non-signed ClientHello
message to initiate a new session. There is no need to perform the
hash+hmac for signatures that will always fail verification due to a
mismatched size.
Hazel/Dtls/Handshake.cs