diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-09-26 14:05:58 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-09-26 14:05:58 +0200 |
commit | cd7f6bea573e345ac01e0c5226a3fa27ca83e2a8 (patch) | |
tree | f5760ca5f8bc63e6da0e93ae0b3fe53bc64085f0 /include/libssh/crypto.h | |
parent | c3dc60103f03142873bdb78d112adbe423c94c2e (diff) | |
download | libssh-cd7f6bea573e345ac01e0c5226a3fa27ca83e2a8.tar.gz libssh-cd7f6bea573e345ac01e0c5226a3fa27ca83e2a8.tar.xz libssh-cd7f6bea573e345ac01e0c5226a3fa27ca83e2a8.zip |
more priv.h splitting
Diffstat (limited to 'include/libssh/crypto.h')
-rw-r--r-- | include/libssh/crypto.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/libssh/crypto.h b/include/libssh/crypto.h index 33d01144..d838f245 100644 --- a/include/libssh/crypto.h +++ b/include/libssh/crypto.h @@ -37,6 +37,29 @@ #ifdef HAVE_LIBGCRYPT #include <gcrypt.h> #endif +#include "libssh/wrapper.h" + +struct ssh_crypto_struct { + bignum e,f,x,k,y; + unsigned char session_id[SHA_DIGEST_LEN]; + + unsigned char encryptIV[SHA_DIGEST_LEN*2]; + unsigned char decryptIV[SHA_DIGEST_LEN*2]; + + unsigned char decryptkey[SHA_DIGEST_LEN*2]; + unsigned char encryptkey[SHA_DIGEST_LEN*2]; + + unsigned char encryptMAC[SHA_DIGEST_LEN]; + unsigned char decryptMAC[SHA_DIGEST_LEN]; + unsigned char hmacbuf[EVP_MAX_MD_SIZE]; + struct crypto_struct *in_cipher, *out_cipher; /* the cipher structures/objects */ + ssh_string server_pubkey; + const char *server_pubkey_type; + int do_compress_out; /* idem */ + int do_compress_in; /* don't set them, set the option instead */ + void *compress_out_ctx; /* don't touch it */ + void *compress_in_ctx; /* really, don't */ +}; struct crypto_struct { const char *name; /* ssh name of the algorithm */ |