extern init_module slip_module;
extern init_module tun_module;
extern init_module sha1_module;
+extern init_module sha512_module;
extern init_module log_module;
/***** END of module support *****/
struct transform_if {
void *st;
- int capab_transformnum;
+ int capab_bit;
int32_t keylen; /* <<< INT_MAX */
transform_createinstance_fn *create;
};
typedef string_t dh_makepublic_fn(void *st, uint8_t *secret,
int32_t secretlen);
/* Fills buffer (up to buflen) with shared secret */
-typedef void dh_makeshared_fn(void *st, uint8_t *secret,
- int32_t secretlen, cstring_t rempublic,
- uint8_t *sharedsecret, int32_t buflen);
+typedef bool_t dh_makeshared_fn(void *st, uint8_t *secret,
+ int32_t secretlen, cstring_t rempublic,
+ uint8_t *sharedsecret, int32_t buflen);
struct dh_if {
void *st;
int32_t len; /* Approximate size of modulus in bytes */