nakov / Practical-Cryptography-for-Developers-Book

Practical Cryptography for Developers: Hashes, MAC, Key Derivation, DHKE, Symmetric and Asymmetric Ciphers, Public Key Cryptosystems, RSA, Elliptic Curves, ECC, secp256k1, ECDH, ECIES, Digital Signatures, ECDSA, EdDSA
https://cryptobook.nakov.com
MIT License
3.42k stars 409 forks source link

Missing ^ ? #67

Open stefaneicher opened 1 year ago

stefaneicher commented 1 year ago

Cool book! By the way chat gpt solves your problems super well!

Here my 5 cents:

In https://github.com/nakov/Practical-Cryptography-for-Developers-Book/blob/a05a5176a5db86885d6119832b73bea93aee45c5/key-exchange/diffie-hellman-key-exchange.md?plain=1#L86

Should it be 5^4 mod 23 = 4 instead of 54 mod 23 = 4?

Same here

https://github.com/nakov/Practical-Cryptography-for-Developers-Book/blob/a05a5176a5db86885d6119832b73bea93aee45c5/key-exchange/diffie-hellman-key-exchange.md?plain=1#L88

Should it be 5^3 mod 23 = 10 instead of 53 mod 23 = 10? See also https://www.wolframalpha.com/input?i=5%5E4+mod+23

Regards stefan