Ruby 2.7.0p0(2019-12-25revision647ee6f091eafcce70ffb75ddf7e121e192ab217)

sha1ossl.h
Go to the documentation of this file.
1 /* $Id$ */
2
3 #ifndef SHA1OSSL_H_INCLUDED
4 #define SHA1OSSL_H_INCLUDED
5
6 #include <stddef.h>
7 #include <openssl/sha.h>
8
9 #define SHA1_CTX SHA_CTX
10
11 #ifdef SHA_BLOCK_LENGTH
12 #define SHA1_BLOCK_LENGTH SHA_BLOCK_LENGTH
13 #else
14 #define SHA1_BLOCK_LENGTH SHA_CBLOCK
15 #endif
16 #define SHA1_DIGEST_LENGTH SHA_DIGEST_LENGTH
17
18 static DEFINE_FINISH_FUNC_FROM_FINAL(SHA1)
19 #undef SHA1_Finish
20 #define SHA1_Finish rb_digest_SHA1_finish
21
22 #endif
DEFINE_FINISH_FUNC_FROM_FINAL
#define DEFINE_FINISH_FUNC_FROM_FINAL(name)
Definition: digest.h:46