Ruby: ext/digest/sha1/sha1cc.h Source File

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

sha1cc.h
Go to the documentation of this file.
1#define COMMON_DIGEST_FOR_OPENSSL 1
2#include <CommonCrypto/CommonDigest.h>
3
4#define SHA1_BLOCK_LENGTH CC_SHA1_BLOCK_BYTES
5#define SHA1_DIGEST_LENGTH CC_SHA1_DIGEST_LENGTH
6#define SHA1_CTX CC_SHA1_CTX
7
8static DEFINE_UPDATE_FUNC_FOR_UINT(SHA1)
9static DEFINE_FINISH_FUNC_FROM_FINAL(SHA1)
10
11#undef SHA1_Update
12#undef SHA1_Finish
13#define SHA1_Update rb_digest_SHA1_update
14#define SHA1_Finish rb_digest_SHA1_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