… | |
… | |
42 | |
42 | |
43 | // openssl 0.9.8 compatibility |
43 | // openssl 0.9.8 compatibility |
44 | #if OPENSSL_VERSION_NUMBER < 0x10100000 |
44 | #if OPENSSL_VERSION_NUMBER < 0x10100000 |
45 | #define require101(exp) exp |
45 | #define require101(exp) exp |
46 | #else |
46 | #else |
47 | #define require101(exp) equire (exp) |
47 | #define require101(exp) require (exp) |
48 | #endif |
48 | #endif |
49 | |
49 | |
50 | hkdf::hkdf (const void *salt, int len, const EVP_MD *xtr_hash) |
50 | hkdf::hkdf (const void *salt, int len, const EVP_MD *xtr_hash) |
51 | { |
51 | { |
52 | HMAC_CTX_init (&ctx); |
52 | HMAC_CTX_init (&ctx); |