You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The \textit{keysize} maps to the specific curve according to table \ref{fig:legacy-curve-names}.
5593
5593
5594
-
\subsection{Key Free}
5595
-
To free the memory allocated by one of \textit{ecc\_generate\_key()}, \textit{ecc\_make\_key()}, \textit{ecc\_make\_key\_ex()}, \textit{ecc\_import()},
The imported key is stored in the ECC key pointed to by \textit{key}. The function will free any allocated memory upon error.
5851
5841
5852
5842
5843
+
\mysection{Key Free}
5844
+
Any ECC API function which imports, generates, or finds (part of) a key with an argument of type
5845
+
\code{ecc\_key*} must upon success call the following function to free the memory allocated.
5846
+
5847
+
\index{ecc\_free()}
5848
+
\begin{verbatim}
5849
+
void ecc_free(ecc_key *key);
5850
+
\end{verbatim}
5851
+
5852
+
The following list of API functions must call \code{ecc\_free()} upon success:
5853
+
5854
+
\code{ecc\_ansi\_x963\_import()},
5855
+
\code{ecc\_ansi\_x963\_import\_ex()},
5856
+
\code{ecc\_copy\_curve()},
5857
+
\code{ecc\_generate\_key()},
5858
+
\code{ecc\_import()},
5859
+
\code{ecc\_import\_ex()},
5860
+
\code{ecc\_import\_openssl()},
5861
+
\code{ecc\_import\_pkcs8()},
5862
+
\code{ecc\_import\_x509()},
5863
+
\code{ecc\_make\_key()},
5864
+
\code{ecc\_make\_key\_ex()},
5865
+
\code{ecc\_set\_curve()},
5866
+
\code{ecc\_set\_key()}.
5867
+
5868
+
5853
5869
\mysection{Signatures (ECDSA)}
5854
5870
There are also functions to sign and verify messages. They use the \textit{ANSI X9.62} \textit{ECDSA} algorithm to generate and verify signatures in the
0 commit comments