Closed topiolli closed 1 year ago
Thanks, I think I got the idea, broadly.
"It’s actually not too complicated once you realise what it is doing" is however an understatement to me. :smile:
So, nothing to worry about. This is expected, and still plenty secure.
I'm not sure if this is a bug or a feature, but it is worrying. I was writing unit tests for a C++ program that uses the crypto_box functions and noticed that I can change some bits of the recipient's private key and still get the plaintext back.
Here's a repro in Python (
pip3 install pysodium
):I can flip any combination of the three LSBs of the first byte of the secret key, and the decryption still works. Why?