SHA-512-DIGEST is a fixed-width Value that holds the entire result of SHA-512 of the SHA-2 family. It is Value VALUE-ISSUER-2WORD (0x09DL), Issuer 0x00000015 NIST, codec number 0x0000C000, family BINARY. The Payload is exactly 32 WORD (512 bits), and truncation is not allowed.
Layout
TAG WORD 0x09DE (0000 1001 1101 1110) LLLL=1110
Length ext. TAG 1 WORD 0x0026 (38 WORD in total)
Issuer 2 WORD 0x00000015 (NIST)
Codec number 2 WORD 0x0000C000
Payload 32 WORD SHA-512 Digest
Interpretation and validity
- The 64 Payload octets are read in the SHA-512 output order as is. Within each WORD, the upper octet comes first.
- No separate GEUL endian conversion is applied to the digest bit string. The output octet sequence is merely grouped two octets at a time in order and framed as 16-bit big-endian WORD.
- A representation whose Payload is not 32 WORD, or in which the result is arbitrarily truncated, is rejected. There is no descriptor and no padding.
Standards basis
- The SHA-512 algorithm and the 512-bit result follow NIST FIPS 180-4, Secure Hash Standard (SHS).
- The GEUL TAG, Length, and 16-bit WORD framing are rules added by this format and are not part of the SHA-2 algorithm.
Length
- The total is exactly 38 WORD: TAG 1 WORD, Length extension TAG 1 WORD, Issuer 2 WORD, codec number 2 WORD, and Payload 32 WORD, and it uses
LLLL=1110. There is no descriptor and no padding. - If the Payload is not exactly 32 WORD, it is rejected.
Example
- The digest octets
d[0]throughd[63]are placed in order as the Payload WORD(d[0]<<8)|d[1]through(d[62]<<8)|d[63]. The total Length is always 38 WORD.