Skip to content

Commit 8fabca6

Browse files
committed
merge duplicated tables into separate chapter
[skip ci]
1 parent 14b0913 commit 8fabca6

File tree

1 file changed

+38
-48
lines changed

1 file changed

+38
-48
lines changed

doc/crypt.tex

Lines changed: 38 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -4713,30 +4713,7 @@ \subsubsection{Import from standard formats}
47134713
Where \textit{key} is the RSA key structure (uninitialized), \textit{inlen} bytes of \textit{in} buffer is the DER encoded key,
47144714
and \textit{pwdlen} bytes of \textit{pwd} is optional password/secret (use \textit{pwd = NULL} for keys without password protection).
47154715

4716-
The library supports the following encryption algorithms:
4717-
4718-
\begin{table}[H]
4719-
\begin{center}
4720-
\begin{tabular}{|l|l|}
4721-
\hline \textbf{Scheme} & \textbf{Algorithm} \\
4722-
\hline PBES1 & pbeWithMD2AndDES-CBC \\
4723-
\hline PBES1 & pbeWithMD2AndRC2-CBC \\
4724-
\hline PBES1 & pbeWithMD5AndDES-CBC \\
4725-
\hline PBES1 & pbeWithMD5AndRC2-CBC \\
4726-
\hline PBES1 & pbeWithSHA1AndDES-CBC \\
4727-
\hline PBES1 & pbeWithSHA1AndRC2-CBC \\
4728-
\hline PBES1 & pbeWithSHAAnd3-KeyTripleDES-CBC \\
4729-
\hline PBES2 + PBKDF2 & desCBC \\
4730-
\hline PBES2 + PBKDF2 & rc2CBC \\
4731-
\hline PBES2 + PBKDF2 & des-EDE3-CBC \\
4732-
\hline PBES2 + PBKDF2 & aes128-CBC \\
4733-
\hline PBES2 + PBKDF2 & aes192-CBC \\
4734-
\hline PBES2 + PBKDF2 & aes256-CBC \\
4735-
\hline
4736-
\end{tabular}
4737-
\caption{Supported PKCS\#8 encryption algorithms of rsa\_import\_pkcs8()}
4738-
\end{center}
4739-
\end{table}
4716+
For password-protected files all supported encryption algorithms are listed in \ref{fig:pkcs8}.
47404717

47414718
\index{rsa\_import\_x509()}
47424719
\begin{verbatim}
@@ -5415,30 +5392,7 @@ \subsection{Private Key Import -- PKCS\#8}
54155392
Where \textit{key} is the ECC key structure (uninitialized), \textit{inlen} bytes of \textit{in} buffer is the DER encoded key,
54165393
and \textit{pwdlen} bytes of \textit{pwd} is optional password/secret (use \textit{pwd = NULL} for keys without password protection).
54175394

5418-
The library supports the following encryption algorithms:
5419-
5420-
\begin{table}[H]
5421-
\begin{center}
5422-
\begin{tabular}{|l|l|}
5423-
\hline \textbf{Scheme} & \textbf{Algorithm} \\
5424-
\hline PBES1 & pbeWithMD2AndDES-CBC \\
5425-
\hline PBES1 & pbeWithMD2AndRC2-CBC \\
5426-
\hline PBES1 & pbeWithMD5AndDES-CBC \\
5427-
\hline PBES1 & pbeWithMD5AndRC2-CBC \\
5428-
\hline PBES1 & pbeWithSHA1AndDES-CBC \\
5429-
\hline PBES1 & pbeWithSHA1AndRC2-CBC \\
5430-
\hline PBES1 & pbeWithSHAAnd3-KeyTripleDES-CBC \\
5431-
\hline PBES2 + PBKDF2 & desCBC \\
5432-
\hline PBES2 + PBKDF2 & rc2CBC \\
5433-
\hline PBES2 + PBKDF2 & des-EDE3-CBC \\
5434-
\hline PBES2 + PBKDF2 & aes128-CBC \\
5435-
\hline PBES2 + PBKDF2 & aes192-CBC \\
5436-
\hline PBES2 + PBKDF2 & aes256-CBC \\
5437-
\hline
5438-
\end{tabular}
5439-
\caption{Supported PKCS\#8 encryption algorithms of ecc\_import\_pkcs8()}
5440-
\end{center}
5441-
\end{table}
5395+
For password-protected files all supported encryption algorithms are listed in \ref{fig:pkcs8}.
54425396

54435397
\subsection{Key Export -- LTC proprietary (deprecated)}
54445398

@@ -6923,6 +6877,42 @@ \subsection{Algorithm Two}
69236877
}
69246878
\end{verbatim}
69256879

6880+
\mysection{PKCS \#8}
6881+
\index{PKCS \#8}
6882+
6883+
The library has built-in support for PKCS \#8 decoding as specified in RFC 5208.
6884+
6885+
Encoding of private keys into PKCS \#8 is not supported.
6886+
6887+
The library supports the following encryption algorithms:
6888+
6889+
\begin{table}[H]
6890+
\begin{center}
6891+
\begin{tabular}{|l|l|}
6892+
\hline \textbf{Scheme} & \textbf{Algorithm} \\
6893+
\hline PBES1 & pbeWithMD2AndDES-CBC \\
6894+
\hline PBES1 & pbeWithMD2AndRC2-CBC \\
6895+
\hline PBES1 & pbeWithMD5AndDES-CBC \\
6896+
\hline PBES1 & pbeWithMD5AndRC2-CBC \\
6897+
\hline PBES1 & pbeWithSHA1AndDES-CBC \\
6898+
\hline PBES1 & pbeWithSHA1AndRC2-CBC \\
6899+
\hline PBES1 & pbeWithSHAAnd3-KeyTripleDES-CBC \\
6900+
\hline PBES2 + PBKDF2 & desCBC \\
6901+
\hline PBES2 + PBKDF2 & rc2CBC \\
6902+
\hline PBES2 + PBKDF2 & des-EDE3-CBC \\
6903+
\hline PBES2 + PBKDF2 & aes128-CBC \\
6904+
\hline PBES2 + PBKDF2 & aes192-CBC \\
6905+
\hline PBES2 + PBKDF2 & aes256-CBC \\
6906+
\hline
6907+
\end{tabular}
6908+
\caption{Supported PKCS\#8 encryption algorithms}
6909+
\end{center}
6910+
\label{fig:pkcs8}
6911+
\end{table}
6912+
6913+
The PKCS \#8 import has no direct API endpoints, but it is available through Public Key Algorithm-specific
6914+
\textit{pkaX\_import\_pkcs8()} functions.
6915+
69266916
\mysection{Key Derviation Functions}
69276917
\subsection{HKDF}
69286918
\index{HKDF}

0 commit comments

Comments
 (0)