Skip to content

Commit 14b0913

Browse files
karel-msjaeckel
authored andcommitted
doc update
[skip ci]
1 parent 8349eda commit 14b0913

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

doc/crypt.tex

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4710,7 +4710,33 @@ \subsubsection{Import from standard formats}
47104710

47114711
This function can import RSA private keys serialized in PKCS\#8 format.
47124712

4713-
It provides a \textit{password} parameter for the encrypted PKCS\#8 format, but this functionality is currently NOT implemented.
4713+
Where \textit{key} is the RSA key structure (uninitialized), \textit{inlen} bytes of \textit{in} buffer is the DER encoded key,
4714+
and \textit{pwdlen} bytes of \textit{pwd} is optional password/secret (use \textit{pwd = NULL} for keys without password protection).
4715+
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}
47144740

47154741
\index{rsa\_import\_x509()}
47164742
\begin{verbatim}
@@ -5549,7 +5575,7 @@ \subsection{Signature Generation}
55495575
This function creates the same ECDSA signature as \textit{ecc\_sign\_hash} only the output format is different.
55505576
The format follows \url{https://tools.ietf.org/html/rfc7518#section-3.4}, sometimes it is also called plain signature.
55515577

5552-
\index{ecc\_sign\_hash_ex()}
5578+
\index{ecc\_sign\_hash\_ex()}
55535579
\begin{verbatim}
55545580
int ecc_sign_hash_ex(const unsigned char *in,
55555581
unsigned long inlen,
@@ -5595,7 +5621,7 @@ \subsection{Signature Verification}
55955621
This function validate the ECDSA signature as \textit{ecc\_verify\_hash} only the signature input format
55965622
follows \url{https://tools.ietf.org/html/rfc7518#section-3.4}.
55975623

5598-
\index{ecc\_verify\_hash_ex()}
5624+
\index{ecc\_verify\_hash\_ex()}
55995625
\begin{verbatim}
56005626
int ecc_verify_hash_ex(const unsigned char *sig,
56015627
unsigned long siglen,

0 commit comments

Comments
 (0)