Ruby
2.5.0dev(2017-10-22revision60238)
ext
digest
sha2
sha2ossl.h
Go to the documentation of this file.
1
#ifndef SHA2OSSL_H_INCLUDED
2
#define SHA2OSSL_H_INCLUDED
3
4
#include <stddef.h>
5
#include <openssl/sha.h>
6
7
#define SHA256_BLOCK_LENGTH SHA256_CBLOCK
8
#define SHA384_BLOCK_LENGTH SHA512_CBLOCK
9
#define SHA512_BLOCK_LENGTH SHA512_CBLOCK
10
11
#ifndef __DragonFly__
12
#define SHA384_Final SHA512_Final
13
#endif
14
15
typedef
SHA512_CTX
SHA384_CTX
;
16
17
#undef SHA256_Finish
18
#undef SHA384_Finish
19
#undef SHA512_Finish
20
#define SHA256_Finish rb_digest_SHA256_finish
21
#define SHA384_Finish rb_digest_SHA384_finish
22
#define SHA512_Finish rb_digest_SHA512_finish
23
static
DEFINE_FINISH_FUNC_FROM_FINAL
(SHA256)
24
static
DEFINE_FINISH_FUNC_FROM_FINAL
(SHA384)
25
static
DEFINE_FINISH_FUNC_FROM_FINAL
(SHA512)
26
27
#endif
_SHA512_CTX
Definition:
sha2.h:127
DEFINE_FINISH_FUNC_FROM_FINAL
#define DEFINE_FINISH_FUNC_FROM_FINAL(name)
Definition:
digest.h:46
SHA384_CTX
SHA512_CTX SHA384_CTX
Definition:
sha2ossl.h:15
Generated by
1.8.13