summaryrefslogtreecommitdiff
path: root/doc/sphinx
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-10-18 20:24:30 +0200
committerFlorian Dold <florian@dold.me>2021-10-18 20:24:30 +0200
commit3a9e7d47e8c0d8b5cc172d48c44afdeed6414429 (patch)
treed35a86889c25c202b986fc4a5fe037e953f94eec /doc/sphinx
parent708b89e8c6878b5bae23ab8f371c9b7984b71c2a (diff)
downloadanastasis-3a9e7d47e8c0d8b5cc172d48c44afdeed6414429.tar.gz
anastasis-3a9e7d47e8c0d8b5cc172d48c44afdeed6414429.tar.bz2
anastasis-3a9e7d47e8c0d8b5cc172d48c44afdeed6414429.zip
do bit twiddling correctly, it's little-endian
Diffstat (limited to 'doc/sphinx')
-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.