@@ -5747,24 +5747,19 @@ \subsection{X25519 Key Operations}
57475747\end {verbatim }
57485748
57495749To generate a fresh X25529 key, one can use \textit {x25519\_ make\_ key } which will create a private\& public key-pair.
5750-
5751- \index {x25519\_ set\_ key}
5750+ \index {x25519\_ import}
57525751\begin {verbatim }
5753- int x25519_set_key(const unsigned char *k, unsigned long klen,
5754- const unsigned char *u, unsigned long ulen,
5755- curve25519_key *key);
5752+ int x25519_import(const unsigned char *in, unsigned long inlen, curve25519_key *key);
57565753\end {verbatim }
57575754
5758- To import a public or private key in raw format, one can use the function \textit {x25519\_ set\_ key }.
5759- In case both, the secret part \textit {k } and the public part \textit {u } are given, the operation validates that the given
5760- public part fits to the secret part.
5755+ The \textit {x25519\_ import } function can be used to import a public key in DER-encoded \textit {SubjectPublicKeyInfo } format.
57615756
5762- \index {x25519\_ import}
5757+ \index {x25519\_ import\_ raw }
57635758\begin {verbatim }
5764- int x25519_import (const unsigned char *in, unsigned long inlen, curve25519_key *key);
5759+ int x25519_import_raw (const unsigned char *in, unsigned long inlen, int which , curve25519_key *key);
57655760\end {verbatim }
57665761
5767- The \textit { x25519 \_ import } function can be used to import a public key in DER-encoded \textit {SubjectPublicKeyInfo } format .
5762+ To import a public or private key in raw format, one can use the function \textit {x25519 \_ import \_ raw } .
57685763
57695764\index {x25519\_ import\_ x509}
57705765\begin {verbatim }
@@ -5836,23 +5831,19 @@ \subsection{EdDSA Key Operations}
58365831
58375832To generate a fresh Ed25529 key, one can use \textit {ed25519\_ make\_ key } which will create a private\& public key-pair.
58385833
5839- \index {ed25519\_ set \_ key }
5834+ \index {ed25519\_ import }
58405835\begin {verbatim }
5841- int ed25519_set_key(const unsigned char *sk, unsigned long sklen,
5842- const unsigned char *pk, unsigned long pklen,
5843- curve25519_key *key);
5836+ int ed25519_import(const unsigned char *in, unsigned long inlen, curve25519_key *key);
58445837\end {verbatim }
58455838
5846- To import a public or private key in raw format, one can use the function \textit {ed25519\_ set\_ key }.
5847- In case both, the secret part \textit {sk } and the public part \textit {pk } are given, the operation validates that the given
5848- public part fits to the secret part.
5839+ The \textit {ed25519\_ import } function can be used to import a public key in DER-encoded \textit {SubjectPublicKeyInfo } format.
58495840
5850- \index {ed25519\_ import}
5841+ \index {ed25519\_ import\_ raw }
58515842\begin {verbatim }
5852- int ed25519_import (const unsigned char *in, unsigned long inlen, curve25519_key *key);
5843+ int ed25519_import_raw (const unsigned char *in, unsigned long inlen, int which , curve25519_key *key);
58535844\end {verbatim }
58545845
5855- The \textit { ed25519 \_ import } function can be used to import a public key in DER-encoded \textit {SubjectPublicKeyInfo } format .
5846+ To import a public or private key in raw format, one can use the function \textit {ed25519 \_ import \_ raw } .
58565847
58575848\index {ed25519\_ import\_ x509}
58585849\begin {verbatim }
0 commit comments