1 #define COMMON_DIGEST_FOR_OPENSSL 1 2 #include <CommonCrypto/CommonDigest.h> 4 #define SHA256_BLOCK_LENGTH CC_SHA256_BLOCK_BYTES 5 #define SHA384_BLOCK_LENGTH CC_SHA384_BLOCK_BYTES 6 #define SHA512_BLOCK_LENGTH CC_SHA512_BLOCK_BYTES 8 #define SHA384_CTX CC_SHA512_CTX 20 #define SHA256_Update rb_digest_SHA256_update 21 #define SHA256_Finish rb_digest_SHA256_finish 25 #define SHA384_Update rb_digest_SHA384_update 26 #define SHA384_Finish rb_digest_SHA384_finish 30 #define SHA512_Update rb_digest_SHA512_update 31 #define SHA512_Finish rb_digest_SHA512_finish #define DEFINE_FINISH_FUNC_FROM_FINAL(name)
#define DEFINE_UPDATE_FUNC_FOR_UINT(name)