Ruby  3.1.0dev(2021-09-10revisionb76ad15ed0da636161de0243c547ee1e6fc95681)
md5cc.h
Go to the documentation of this file.
1 #define COMMON_DIGEST_FOR_OPENSSL 1
2 #include <CommonCrypto/CommonDigest.h>
3 
4 #ifdef __clang__
5 # pragma clang diagnostic ignored "-Wdeprecated-declarations"
6 /* Suppress deprecation warnings of MD5 from Xcode 11.1 */
7 /* Although we know MD5 is deprecated too, provide just for backward
8  * compatibility, as well as Apple does. */
9 #endif
10 
11 #define MD5_BLOCK_LENGTH CC_MD5_BLOCK_BYTES
12 
15 
16 #undef MD5_Update
17 #undef MD5_Finish
18 #define MD5_Update rb_digest_MD5_update
19 #define MD5_Finish rb_digest_MD5_finish
DEFINE_FINISH_FUNC_FROM_FINAL
#define DEFINE_FINISH_FUNC_FROM_FINAL(name)
Definition: digest.h:46
DEFINE_UPDATE_FUNC_FOR_UINT
#define DEFINE_UPDATE_FUNC_FOR_UINT(name)
Definition: digest.h:34