Badly implementing encryption: Part V–nonce reuse
February 17, 2022In the previous post, I moved to using HMAC for the key stream generation. Together with a random nonce, we ensure that each time that we encrypt a value, we’ll get a different encrypted value. However, I want to stop for a while and talk about what will happen if we reuse a nonce.
The short answer, a single nonce reuse results in catastrophic…