@@ -5747,24 +5747,19 @@ \subsection{X25519 Key Operations}
5747
5747
\end {verbatim }
5748
5748
5749
5749
To 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}
5752
5751
\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);
5756
5753
\end {verbatim }
5757
5754
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.
5761
5756
5762
- \index {x25519\_ import}
5757
+ \index {x25519\_ import\_ raw }
5763
5758
\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);
5765
5760
\end {verbatim }
5766
5761
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 } .
5768
5763
5769
5764
\index {x25519\_ import\_ x509}
5770
5765
\begin {verbatim }
@@ -5836,23 +5831,19 @@ \subsection{EdDSA Key Operations}
5836
5831
5837
5832
To generate a fresh Ed25529 key, one can use \textit {ed25519\_ make\_ key } which will create a private\& public key-pair.
5838
5833
5839
- \index {ed25519\_ set \_ key }
5834
+ \index {ed25519\_ import }
5840
5835
\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);
5844
5837
\end {verbatim }
5845
5838
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.
5849
5840
5850
- \index {ed25519\_ import}
5841
+ \index {ed25519\_ import\_ raw }
5851
5842
\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);
5853
5844
\end {verbatim }
5854
5845
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 } .
5856
5847
5857
5848
\index {ed25519\_ import\_ x509}
5858
5849
\begin {verbatim }
0 commit comments