aboutsummaryrefslogtreecommitdiff
path: root/draft-schanzen-gns.xml
diff options
context:
space:
mode:
Diffstat (limited to 'draft-schanzen-gns.xml')
-rw-r--r--draft-schanzen-gns.xml14
1 files changed, 13 insertions, 1 deletions
diff --git a/draft-schanzen-gns.xml b/draft-schanzen-gns.xml
index 42f1e4e..961ee7d 100644
--- a/draft-schanzen-gns.xml
+++ b/draft-schanzen-gns.xml
@@ -1287,6 +1287,17 @@ ZKDF-Public(zk,label):
1287 </t> 1287 </t>
1288 <artwork name="" type="" align="left" alt=""><![CDATA[ 1288 <artwork name="" type="" align="left" alt=""><![CDATA[
1289SignDerived(d,label,message): 1289SignDerived(d,label,message):
1290 /* Calculate public key */
1291 a := SHA-512 (d)
1292 a[0] &= 248;
1293 a[31] &= 127;
1294 a[31] |= 64;
1295 zk := a * G
1296
1297 /* Calculate blinding factor */
1298 PRK_h := HKDF-Extract ("key-derivation", zk)
1299 h := HKDF-Expand (PRK_h, label | "gns", 512 / 8)
1300
1290 d' := ZKDF-Private(d,label) 1301 d' := ZKDF-Private(d,label)
1291 dh := SHA-512 (d) 1302 dh := SHA-512 (d)
1292 nonce := SHA-256 (dh[32..63] | h) 1303 nonce := SHA-256 (dh[32..63] | h)
@@ -2934,7 +2945,8 @@ Purpose | Name | References | Comment
2934 <section> 2945 <section>
2935 <name>Test Vectors</name> 2946 <name>Test Vectors</name>
2936 <t> 2947 <t>
2937 2948 The following are test vectors for the Base32 variation of a
2949 Crockford Base32 encoding used for zTLDs.
2938 </t> 2950 </t>
2939 <artwork name="" type="" align="left" alt=""> 2951 <artwork name="" type="" align="left" alt="">
2940 <![CDATA[ 2952 <![CDATA[