doc: update preliminaries endianness

This commit is contained in:
lohhiiccc 2026-05-19 14:50:55 +02:00
parent a9a76d67f9
commit 27d2c8d21a

View file

@ -21,6 +21,15 @@ stored first. This distinction matters when serializing the internal state to
produce the final digest --- MD5 uses little-endian, while SHA-256 and produce the final digest --- MD5 uses little-endian, while SHA-256 and
Whirlpool use big-endian. Whirlpool use big-endian.
\[
\text{Value}\; 0xD41D8CD9:
\begin{cases}
\text{Big-endian: } & \text{d4}\;\mid\;\text{1d}\;\mid\;\text{8c}\;\mid\;\text{d9}\\
\text{Little-endian: } & \text{d9}\;\mid\;\text{8c}\;\mid\;\text{1d}\;\mid\;\text{d4}
\end{cases}
\]
\vspace{1em} \vspace{1em}
A \textbf{message} is the arbitrary-length input fed to a hash function. The A \textbf{message} is the arbitrary-length input fed to a hash function. The