Knowledge check
10 questions testing what you just read — no login, no tracking, just immediate feedback.
Alice and Bob share an HMAC key. Bob receives a message with a valid tag. What can he prove to a third party?
Why does HMAC nest two hash calls instead of computing SHA-256(key ‖ message)?
With HMAC-SHA256, what happens to a key longer than 64 bytes?
An attacker knows the plain CBC-MAC tag t of a one-block message m. Which message can they forge a valid tag for, without the key?
In AES-CMAC, when is the subkey K2 used instead of K1?
What happens if two different messages are authenticated with GMAC under the same key and the same nonce?
How do you compute a GMAC tag with WebCrypto, which has no 'GMAC' algorithm name?
Poly1305 does its arithmetic modulo which prime?
In ChaCha20-Poly1305, where does the per-message Poly1305 key come from?
A MAC uses 64-bit tags. Roughly what is an attacker's chance of forging one with a single random guess?