@@ -4710,7 +4710,33 @@ \subsubsection{Import from standard formats}
47104710
47114711This 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}
55495575This function creates the same ECDSA signature as \textit {ecc\_ sign\_ hash } only the output format is different.
55505576The 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 }
55545580int ecc_sign_hash_ex(const unsigned char *in,
55555581 unsigned long inlen,
@@ -5595,7 +5621,7 @@ \subsection{Signature Verification}
55955621This function validate the ECDSA signature as \textit {ecc\_ verify\_ hash } only the signature input format
55965622follows \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 }
56005626int ecc_verify_hash_ex(const unsigned char *sig,
56015627 unsigned long siglen,
0 commit comments