Add negotiation for SHA2 HMAC algorithms

BUG: https://red.libssh.org/issues/91

Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Dirkjan Bussink
2014-04-20 10:07:40 +00:00
committed by Andreas Schneider
parent 164b8e99cc
commit 262c82ac06
3 changed files with 96 additions and 4 deletions

View File

@@ -45,6 +45,11 @@ enum ssh_des_e {
SSH_DES
};
struct ssh_hmac_struct {
const char* name;
enum ssh_hmac_e hmac_type;
};
typedef struct ssh_mac_ctx_struct *ssh_mac_ctx;
MD5CTX md5_init(void);
void md5_update(MD5CTX c, const void *data, unsigned long len);
@@ -91,4 +96,6 @@ void crypto_free(struct ssh_crypto_struct *crypto);
void ssh_reseed(void);
struct ssh_hmac_struct *ssh_get_hmactab(void);
#endif /* WRAPPER_H_ */