version 1.64, 2014/05/02 03:27:54 |
version 1.65, 2015/01/13 19:31:40 |
|
|
#ifndef KEX_H |
#ifndef KEX_H |
#define KEX_H |
#define KEX_H |
|
|
#include <openssl/evp.h> |
#include "mac.h" |
#include <openssl/hmac.h> |
|
#include <openssl/ec.h> |
|
|
|
#define KEX_COOKIE_LEN 16 |
#define KEX_COOKIE_LEN 16 |
|
|
|
|
#define KEX_INIT_SENT 0x0001 |
#define KEX_INIT_SENT 0x0001 |
|
|
typedef struct Kex Kex; |
typedef struct Kex Kex; |
typedef struct Mac Mac; |
|
typedef struct Comp Comp; |
typedef struct Comp Comp; |
|
typedef struct sshmac Mac; |
typedef struct Enc Enc; |
typedef struct Enc Enc; |
typedef struct Newkeys Newkeys; |
typedef struct Newkeys Newkeys; |
|
|
|
|
u_int block_size; |
u_int block_size; |
u_char *key; |
u_char *key; |
u_char *iv; |
u_char *iv; |
}; |
|
struct Mac { |
|
char *name; |
|
int enabled; |
|
u_int mac_len; |
|
u_char *key; |
|
u_int key_len; |
|
int type; |
|
int etm; /* Encrypt-then-MAC */ |
|
struct ssh_hmac_ctx *hmac_ctx; |
|
struct umac_ctx *umac_ctx; |
|
}; |
}; |
struct Comp { |
struct Comp { |
int type; |
int type; |