summaryrefslogtreecommitdiff
path: root/doc/sphinx/cryptography.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/sphinx/cryptography.rst')
-rw-r--r--doc/sphinx/cryptography.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/sphinx/cryptography.rst b/doc/sphinx/cryptography.rst
index 406732a..194b311 100644
--- a/doc/sphinx/cryptography.rst
+++ b/doc/sphinx/cryptography.rst
@@ -132,8 +132,9 @@ HKDF to ensure that the result differs from other cases where we hash
.. code-block:: c
- digest[0] = (digest[0] & 0x7f) | 0x40;
- digest[31] &= 0xf8;
+ digest[0] &= 0xf8;
+ digest[31] &= 0x7f;
+ digest[31] |= 0x40;
**eddsa_priv**: The generated EdDSA private key.