Christian Heimes added the comment:

It's not a bug, but indented behavior. It does not make any sense to use SHAKE 
with the HMAC construct. In fact it does not make sense to combine Keccak 
sponge or Blake2 with HMAC at all. HMAC is only necessary for old, 
Merkle-Damgard hashing algorithms like MD5, SHA1 and SHA2, because they are 
subject to length extension attacks.

The correct solution is
4. improve documentation


Python tracker <>
Python-bugs-list mailing list

Reply via email to