23 #include <my_global.h>
35 # define GEN_YASSL_SHA2_BRIDGE(size) \
36 unsigned char* SHA##size(const unsigned char *input_ptr, size_t input_length, \
37 char unsigned *output_ptr) { \
38 TaoCrypt::SHA##size hasher; \
40 hasher.Update(input_ptr, input_length); \
41 hasher.Final(output_ptr); \
57 # ifndef OPENSSL_NO_SHA512
58 GEN_YASSL_SHA2_BRIDGE(512);
59 GEN_YASSL_SHA2_BRIDGE(384);
61 # warning Some SHA2 functionality is missing. See OPENSSL_NO_SHA512.
63 GEN_YASSL_SHA2_BRIDGE(256);
64 GEN_YASSL_SHA2_BRIDGE(224);
66 # undef GEN_YASSL_SHA2_BRIDGE