Skip to content

Fix up typo: X25519 has 251-bit private keys #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion asymmetric-key-ciphers/elliptic-curve-cryptography-ecc.md
Original file line number Diff line number Diff line change
@@ -592,7 +592,7 @@ pip install pynacl

The [Python binding to the Networking and Cryptography \(NaCl\) library \(PyNaCl\)](https://pynacl.readthedocs.io) implements many modern cryptographic algorithms, including the EC point arithmetic over the **Curve25519** and **Ed25519** signatures.

Next, generate a random 252-bit **private key** and its corresponding **public key** \(EC point\) on the **Curve25519** \(both keys will be encoded internally as **256-bit integers**\):
Next, generate a random 251-bit **private key** and its corresponding **public key** \(EC point\) on the **Curve25519** \(both keys will be encoded internally as **256-bit integers**\):

```python
from nacl.public import PrivateKey