diff options
| author | Aris <aris@badcode.be> | 2014-09-03 09:44:10 +0200 |
|---|---|---|
| committer | Andreas Schneider <asn@cryptomilk.org> | 2014-09-07 22:07:34 +0200 |
| commit | 93c7b81b4ea1046bd2f65f4a510d5966786e8d3d (patch) | |
| tree | 2c0a3f5f94731bb390627757e4491f00600a428b /include/libssh/pki.h | |
| parent | 93e82fa0c0f930609cb6f352b3e5d7c45945bac7 (diff) | |
| download | libssh-93c7b81b4ea1046bd2f65f4a510d5966786e8d3d.tar.gz libssh-93c7b81b4ea1046bd2f65f4a510d5966786e8d3d.tar.xz libssh-93c7b81b4ea1046bd2f65f4a510d5966786e8d3d.zip | |
ed25519: Generate, sign and verify keys.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh/pki.h')
| -rw-r--r-- | include/libssh/pki.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libssh/pki.h b/include/libssh/pki.h index 89a0f982..9f9ddf4a 100644 --- a/include/libssh/pki.h +++ b/include/libssh/pki.h @@ -21,6 +21,7 @@ #ifndef PKI_H_ #define PKI_H_ +#include "libssh/priv.h" #ifdef HAVE_OPENSSL_EC_H #include <openssl/ec.h> #endif @@ -29,6 +30,7 @@ #endif #include "libssh/crypto.h" +#include "libssh/ed25519.h" #define MAX_PUBKEY_SIZE 0x100000 /* 1M */ #define MAX_PRIVKEY_SIZE 0x400000 /* 4M */ @@ -55,6 +57,8 @@ struct ssh_key_struct { void *ecdsa; #endif /* HAVE_OPENSSL_EC_H */ #endif + ed25519_pubkey *ed25519_pubkey; + ed25519_privkey *ed25519_privkey; void *cert; }; @@ -74,6 +78,7 @@ struct ssh_signature_struct { void *ecdsa_sig; # endif #endif + ed25519_signature *ed25519_sig; }; typedef struct ssh_signature_struct *ssh_signature; |
