6 // check config - include in first file including config
9 #error BSD and LINUX_PORT defined.
12 #error BSD and GENERIC defined.
14 #elif defined(LINUX_PORT)
16 #error LINUX_PORT and GENERIC defined.
18 #elif !defined(GENERIC)
19 #error Nothing defined. Please run ./configure
23 #include <openssl/bn.h>
24 #include <openssl/rsa.h>
25 #include <openssl/sha.h>
27 void int_pow(uint32_t base
, uint8_t pwr
, uint64_t *out
);
28 uint8_t BN_lcm(BIGNUM
*r
, BIGNUM
*a
, BIGNUM
*b
, BIGNUM
*gcd
, BN_CTX
*ctx
);
29 RSA
*easygen(uint16_t num
, uint8_t len
, uint8_t *der
, uint8_t edl
,
31 uint8_t sane_key(RSA
*rsa
);