aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2020-10-06 12:44:21 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2020-10-06 12:44:21 +0200
commitd470174bc326281c3020252af273181cc58cbf9a (patch)
tree273efde9d278208a979fb0a2b26c4b0c729c8778
parent583e83d24cf94e0842014c5e937d3ffacb4c2634 (diff)
downloadlsd0001-d470174bc326281c3020252af273181cc58cbf9a.tar.gz
lsd0001-d470174bc326281c3020252af273181cc58cbf9a.zip
fix clamping thx bfix
-rw-r--r--draft-schanzen-gns.xml15
1 files changed, 8 insertions, 7 deletions
diff --git a/draft-schanzen-gns.xml b/draft-schanzen-gns.xml
index b439b7b..10c95d0 100644
--- a/draft-schanzen-gns.xml
+++ b/draft-schanzen-gns.xml
@@ -665,10 +665,10 @@ NONCE := HKDF-Expand (PRK_n, label, 32 / 8)
665zk := a * G 665zk := a * G
666PRK_h := HKDF-Extract ("key-derivation", zk) 666PRK_h := HKDF-Extract ("key-derivation", zk)
667h := HKDF-Expand (PRK_h, label | "gns", 512 / 8) 667h := HKDF-Expand (PRK_h, label | "gns", 512 / 8)
668h[0] &= 248;
669h[31] &= 127;
670h[31] |= 64;
671a' := h * a mod L 668a' := h * a mod L
669a'[0] &= 248;
670a'[31] &= 127;
671a'[31] |= 64;
672 ]]></artwork> 672 ]]></artwork>
673 <t> 673 <t>
674 Equally, given a label, the output of the HDKD-Public function is 674 Equally, given a label, the output of the HDKD-Public function is
@@ -677,10 +677,11 @@ a' := h * a mod L
677 <artwork name="" type="" align="left" alt=""><![CDATA[ 677 <artwork name="" type="" align="left" alt=""><![CDATA[
678PRK_h := HKDF-Extract ("key-derivation", zk) 678PRK_h := HKDF-Extract ("key-derivation", zk)
679h := HKDF-Expand (PRK_h, label | "gns", 512 / 8) 679h := HKDF-Expand (PRK_h, label | "gns", 512 / 8)
680h[0] &= 248; 680a' = h mod L
681h[31] &= 127; 681a'[0] &= 248;
682h[31] |= 64; 682a'[31] &= 127;
683zk' := h mod L * zk 683a'[31] |= 64;
684zk' := a' * zk
684 ]]></artwork> 685 ]]></artwork>
685 <t> 686 <t>
686 The EDKEY cryptosystem uses a 687 The EDKEY cryptosystem uses a