11.07.2015 Views

acknowledgements for ansi/nist-itl 1-2011 - NIST Visual Image ...

acknowledgements for ansi/nist-itl 1-2011 - NIST Visual Image ...

acknowledgements for ansi/nist-itl 1-2011 - NIST Visual Image ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ANSI/<strong>NIST</strong>-ITL 1-<strong>2011</strong> - UPDATE 2013 DRAFT VERSIONthe bit stream shall be ordered with the most significant bit first. The character “=” is used<strong>for</strong> padding. Any characters outside of the Base-64 alphabet shall be ignored in in<strong>for</strong>mationitems designated as using Base-64 input. Text line breaks in the input being translated toBase-64 shall be converted to CRLF sequences prior to Base-64 encoding. An example ofBase-64 encoding is shown below.Table 109: Base-64 conversion exampleText M A ßBinary encoding of 0 1 0 0 1 1 0 1 0 1 0 0 0 0 0 1 1 1 0 1 1 1 1 1input (8-bits)6-bit binary 0 1 0 0 1 1 0 1 0 1 0 0 0 0 0 1 1 1 0 1 1 1 1 1Base- 64 code 19 20 7 31Base-64 value T U H fTable 110: Base-64 alphabetCode Value Code Value Code Value Code Value0 A 18 S 35 j 52 01 B 19 T 36 k 53 12 C 20 U 37 l 54 23 D 21 V 38 m 55 34 E 22 W 39 n 56 45 F 23 X 40 o 57 56 G 24 Y 41 p 58 67 H 25 Z 42 q 59 78 I 26 a 43 r 60 89 J 27 b 44 s 61 910 K 28 c 45 t 62 +11 L 29 d 46 u 63 /12 M 30 e 47 v (pad) =13 N 31 f 48 w14 O 32 g 49 x15 P 33 h 50 y16 Q 34 I 51 z17 RSpecial processing is per<strong>for</strong>med if fewer than 24 bits are available at the end of the databeing encoded. A full encoding quantum is always completed at the end of a body. Since allbase-64 input is an integral number of octets, only the following cases can arise:(1) the final quantum of encoding input is an integral multiple of 24 bits; here, thefinal unit of encoded output will be an integral multiple of four characterswith no “=” padding,(2) the final quantum of encoding input is exactly 8 bits; here, the final unit of442

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!