comparison sysoptions.h @ 761:ac2158e3e403 ecc

ecc kind of works, needs fixing/testing
author Matt Johnston <matt@ucc.asn.au>
date Sun, 07 Apr 2013 01:36:42 +0800
parents 76fba0856749
children a78a38e402d1
comparison
equal deleted inserted replaced
760:f336d232fc63 761:ac2158e3e403
66 #define DROPBEAR_SIGNKEY_NONE 3 66 #define DROPBEAR_SIGNKEY_NONE 3
67 67
68 /* Required for pubkey auth */ 68 /* Required for pubkey auth */
69 #if defined(ENABLE_SVR_PUBKEY_AUTH) || defined(DROPBEAR_CLIENT) 69 #if defined(ENABLE_SVR_PUBKEY_AUTH) || defined(DROPBEAR_CLIENT)
70 #define DROPBEAR_SIGNKEY_VERIFY 70 #define DROPBEAR_SIGNKEY_VERIFY
71 #endif
72
73 #ifdef DROPBEAR_ECDH
74 #define DROPBEAR_LTC_PRNG
75 #endif 71 #endif
76 72
77 #define SHA1_HASH_SIZE 20 73 #define SHA1_HASH_SIZE 20
78 #define MD5_HASH_SIZE 16 74 #define MD5_HASH_SIZE 16
79 75
97 #define DROPBEAR_ECC_256 93 #define DROPBEAR_ECC_256
98 #define DROPBEAR_ECC_384 94 #define DROPBEAR_ECC_384
99 #define DROPBEAR_ECC_521 95 #define DROPBEAR_ECC_521
100 #endif 96 #endif
101 97
98 #ifdef DROPBEAR_ECC
99 #define DROPBEAR_LTC_PRNG
100 #endif
101
102 // hashes which will be linked and registered 102 // hashes which will be linked and registered
103 #if defined(DROPBEAR_SHA2_256_HMAC) || defined(DROPBEAR_ECC_256) 103 #if defined(DROPBEAR_SHA2_256_HMAC) || defined(DROPBEAR_ECC_256)
104 #define DROPBEAR_SHA256 104 #define DROPBEAR_SHA256
105 #endif 105 #endif
106 #if defined(DROPBEAR_ECC_384) 106 #if defined(DROPBEAR_ECC_384)