microsoft / go-crypto-winnative

Go crypto backend for Windows using CNG
MIT License
28 stars 3 forks source link

HMAC should produce correct hashes when key is empty #17

Closed qmuntal closed 2 years ago

qmuntal commented 2 years ago

We should set bcrypt.ALG_HANDLE_HMAC_FLAG when creating a new hash to be used as an HMAC, even if the key is empty.