diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-03-20 22:41:07 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-03-20 22:41:07 +0800 |
commit | f6122d4fdd79f46ce8431813cc26b07424ce49b0 (patch) | |
tree | 9d4dca5f243da76cb74ed90372f946427efca457 /sysoptions.h | |
parent | 76a6cb25996a6f3255ef8d42b05106b7d1f12c13 (diff) | |
parent | 0a65d477915cb445e95575521688810fe7905b4b (diff) | |
download | dropbear-f6122d4fdd79f46ce8431813cc26b07424ce49b0.tar.gz |
Merge "none" cipher/MAC branch. Also adds sha256 and sha512
Diffstat (limited to 'sysoptions.h')
-rw-r--r-- | sysoptions.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sysoptions.h b/sysoptions.h index f927726..ec9fc8a 100644 --- a/sysoptions.h +++ b/sysoptions.h @@ -90,7 +90,13 @@ #define MAX_KEY_LEN 32 /* 256 bits for aes256 etc */ #define MAX_IV_LEN 20 /* must be same as max blocksize, and >= SHA1_HASH_SIZE */ +#if defined(DROPBEAR_SHA2_512_HMAC) +#define MAX_MAC_KEY 64 +#elif defined(DROPBEAR_SHA2_256_HMAC) +#define MAX_MAC_KEY 32 +#else #define MAX_MAC_KEY 20 +#endif #define MAX_NAME_LEN 64 /* maximum length of a protocol name, isn't explicitly specified for all protocols (just @@ -144,6 +150,19 @@ #define DROPBEAR_TWOFISH #endif +#ifdef DROPBEAR_MD5_HMAC +#define DROPBEAR_MD5 +#endif + +#ifdef DROPBEAR_SHA2_256_HMAC +#define DROPBEAR_SHA256 +#endif + +#if (defined(DROPBEAR_DSS) && defined(DSS_PROTOK)) \ + || defined(DROPBEAR_SHA2_512_HMAC) +#define DROPBEAR_SHA512 +#endif + #ifndef ENABLE_X11FWD #define DISABLE_X11FWD #endif |