diff options
Diffstat (limited to 'doc/system-documentation/design.tex')
-rw-r--r-- | doc/system-documentation/design.tex | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/doc/system-documentation/design.tex b/doc/system-documentation/design.tex index 650beb1..1fe9134 100644 --- a/doc/system-documentation/design.tex +++ b/doc/system-documentation/design.tex @@ -357,7 +357,7 @@ that the result differs from other cases where we hash {\em kdf id}: eddsa_keys_create (kdf_id, salt, keysize) { ver_secret = HKDF(kdf_id, salt, keysize) - eddsa_priv = eddsa_d_to_a(ver_secret) + eddsa_priv = ver_secret eddsa_pub = get_eddsa_pub(eddsa_priv) return eddsa_priv, eddsa_pub } @@ -369,14 +369,8 @@ eddsa_keys_create (kdf_id, salt, keysize) \item[salt] {Is used that different keys are generated, the salt here is "ver".} \item[key\_size] {Size of the output, here 32 bytes.} \item[ver\_secret] {Derived key from the kdf\_id, serves as intermediate step for the generation of the private key.} - \item[eddsa\_d\_to\_a()] {Function which converts the ver\_key to a valid EdDSA private key. Specifically, assuming the value eddsa\_priv is in a 32-byte array “digest”, the function clears and sets certain bits as follows:} \end{description} -\begin{lstlisting} -digest[0] = (digest[0] & 0x7f) | 0x40; -digest[31] &= 0xf8; -\end{lstlisting} - \begin{description} \item[eddsa\_priv] {The generated EdDSA private key.} \item[eddsa\_pub] {The generated EdDSA public key.} |