|
@@ -346,7 +346,6 @@ typedef struct {
|
|
} curve25519_key;
|
|
} curve25519_key;
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
/* Ed25519 Signature API */
|
|
/* Ed25519 Signature API */
|
|
int ed25519_make_key(prng_state *prng, int wprng, curve25519_key *key);
|
|
int ed25519_make_key(prng_state *prng, int wprng, curve25519_key *key);
|
|
|
|
|
|
@@ -356,6 +355,8 @@ int ed25519_export( unsigned char *out, unsigned long *outlen,
|
|
|
|
|
|
int ed25519_import(const unsigned char *in, unsigned long inlen, curve25519_key *key);
|
|
int ed25519_import(const unsigned char *in, unsigned long inlen, curve25519_key *key);
|
|
|
|
|
|
|
|
+int ed25519_import_x509(const unsigned char *in, unsigned long inlen, curve25519_key *key);
|
|
|
|
+
|
|
int ed25519_set_key(const unsigned char *sk, unsigned long sklen,
|
|
int ed25519_set_key(const unsigned char *sk, unsigned long sklen,
|
|
const unsigned char *pk, unsigned long pklen,
|
|
const unsigned char *pk, unsigned long pklen,
|
|
curve25519_key *key);
|
|
curve25519_key *key);
|
|
@@ -377,6 +378,8 @@ int x25519_export( unsigned char *out, unsigned long *outlen,
|
|
|
|
|
|
int x25519_import(const unsigned char *in, unsigned long inlen, curve25519_key *key);
|
|
int x25519_import(const unsigned char *in, unsigned long inlen, curve25519_key *key);
|
|
|
|
|
|
|
|
+int x25519_import_x509(const unsigned char *in, unsigned long inlen, curve25519_key *key);
|
|
|
|
+
|
|
int x25519_set_ku(const unsigned char *k, unsigned long klen,
|
|
int x25519_set_ku(const unsigned char *k, unsigned long klen,
|
|
const unsigned char *u, unsigned long ulen,
|
|
const unsigned char *u, unsigned long ulen,
|
|
curve25519_key *key);
|
|
curve25519_key *key);
|