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.xml102
1 files changed, 58 insertions, 44 deletions
diff --git a/draft-schanzen-gns.xml b/draft-schanzen-gns.xml
index 9813cb2..e9429d3 100644
--- a/draft-schanzen-gns.xml
+++ b/draft-schanzen-gns.xml
@@ -452,56 +452,16 @@
452 namespace in the process of name resolution. 452 namespace in the process of name resolution.
453 To encode the zone key, a zone key label zkl is derived from a 453 To encode the zone key, a zone key label zkl is derived from a
454 concatenation of the zone type and zone key (see <xref target="figure_zid"/>). 454 concatenation of the zone type and zone key (see <xref target="figure_zid"/>).
455 The result is encoded using a variation of the Crockford Base32 encoding <xref target="CrockfordB32"/>. 455 The result is encoded using a variation of the Crockford Base32 encoding <xref target="CrockfordB32"/>
456 called Base32GNS.
456 In order to further increase tolerance for failures in character 457 In order to further increase tolerance for failures in character
457 recognition, the letter "U" MUST be decoded to the same Base32 value as the 458 recognition, the letter "U" MUST be decoded to the same Base32 value as the
458 letter "V". 459 letter "V" in Base32GNS.
459 The encoding and decoding symbols for Crockford Base32 including this modification are defined in 460 The encoding and decoding symbols for Base32GNS including this modification are defined in
460 <xref target="CrockfordB32Encode"/>. 461 <xref target="CrockfordB32Encode"/>.
461 The functions for encoding and decoding based on this table are called 462 The functions for encoding and decoding based on this table are called
462 Base32GNS-Encode and Base32GNS-Decode, respectively. 463 Base32GNS-Encode and Base32GNS-Decode, respectively.
463 </t> 464 </t>
464 <figure anchor="CrockfordB32Encode">
465 <artwork name="" type="" align="left" alt=""><![CDATA[
466Symbol Decode Encode
467Value Symbol Symbol
4680 0 O o 0
4691 1 I i L l 1
4702 2 2
4713 3 3
4724 4 4
4735 5 5
4746 6 6
4757 7 7
4768 8 8
4779 9 9
47810 A a A
47911 B b B
48012 C c C
48113 D d D
48214 E e E
48315 F f F
48416 G g G
48517 H h H
48618 J j J
48719 K k K
48820 M m M
48921 N n N
49022 P p P
49123 Q q Q
49224 R r R
49325 S s S
49426 T t T
49527 V v U u V
49628 W w W
49729 X x X
49830 Y y Y
49931 Z z Z
500 ]]></artwork>
501 </figure>
502 <t>
503 The Base32GNS Alphabet Including the Additional U Encode Symbol.
504 </t>
505 <t> 465 <t>
506 For the string representation of a zTLD we define: 466 For the string representation of a zTLD we define:
507 </t> 467 </t>
@@ -2945,6 +2905,60 @@ Purpose | Name | References | Comment
2945 2905
2946 </references> 2906 </references>
2947 <section> 2907 <section>
2908 <name>Base32GNS</name>
2909 <t>
2910 This table defines the encode symbol and decode symbol for a given
2911 symbol value.
2912 It can be used to implement the encoding by reading it as:
2913 A character "A" or "a" it is decoded to the value 10 when decoding.
2914 A 5 bit block with a value of 18 is encoded to the character "J" when encoding.
2915 If the bit length of the byte string to encode is not a multiple of 5
2916 it is padded to the next multiple with zeros.
2917 </t>
2918 <figure anchor="CrockfordB32Encode">
2919 <artwork name="" type="" align="left" alt=""><![CDATA[
2920Symbol Decode Encode
2921Value Symbol Symbol
29220 0 O o 0
29231 1 I i L l 1
29242 2 2
29253 3 3
29264 4 4
29275 5 5
29286 6 6
29297 7 7
29308 8 8
29319 9 9
293210 A a A
293311 B b B
293412 C c C
293513 D d D
293614 E e E
293715 F f F
293816 G g G
293917 H h H
294018 J j J
294119 K k K
294220 M m M
294321 N n N
294422 P p P
294523 Q q Q
294624 R r R
294725 S s S
294826 T t T
294927 V v U u V
295028 W w W
295129 X x X
295230 Y y Y
295331 Z z Z
2954 ]]></artwork>
2955 </figure>
2956 <t>
2957 The Base32GNS Alphabet Including the Additional U Encode Symbol.
2958 </t>
2959
2960 </section>
2961 <section>
2948 <name>Test Vectors</name> 2962 <name>Test Vectors</name>
2949 <t> 2963 <t>
2950 The following are test vectors for the Base32 variation of a 2964 The following are test vectors for the Base32 variation of a