Skip to content

Commit 16a690d

Browse files
committed
Add a sentence about the origins of the CHC hash.
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
1 parent f518d17 commit 16a690d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

doc/crypt.tex

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3027,18 +3027,23 @@ \subsection{Hash Registration}
30273027
applicable block ciphers (such as AES) can be turned into hash functions that other LTC functions can use. In
30283028
particular this allows a cryptosystem to be designed using very few moving parts.
30293029

3030+
The \code{CHC} mode implements a Miyaguchi–Preneel Hash Construction
3031+
\footnote{\href{https://en.wikipedia.org/wiki/One-way_compression_function\#Miyaguchi–Preneel}{\nolinkurl{https://en.wikipedia.org/wiki/One-way_compression_function\#Miyaguchi-Preneel}}}
3032+
(MPHC), but provides an improved, \code{chc\_done()} implementation.
3033+
3034+
30303035
In order to use the CHC system the developer will have to take a few extra steps. First the \textit{chc\_desc} hash
3031-
descriptor must be registered with register\_hash(). At this point the CHC hash cannot be used to hash
3036+
descriptor must be registered with \code{register\_hash()}. At this point the CHC hash cannot be used to hash
30323037
data. While it is in the hash system you still have to tell the CHC code which cipher to use. This is accomplished
3033-
via the chc\_register() function.
3038+
via the \code{chc\_register()} function.
30343039

30353040
\index{chc\_register()}
30363041
\begin{verbatim}
30373042
int chc_register(int cipher);
30383043
\end{verbatim}
30393044

30403045
A cipher has to be registered with CHC (and also in the cipher descriptor tables with
3041-
register\_cipher()). The chc\_register() function will bind a cipher to the CHC system. Only one cipher can
3046+
\code{register\_cipher()}). The \code{chc\_register()} function will bind a cipher to the CHC system. Only one cipher can
30423047
be bound to the CHC hash at a time. There are additional requirements for the system to work.
30433048

30443049
\begin{enumerate}

0 commit comments

Comments
 (0)