Ruby 2.0.0p247(2013-06-27revision41674)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

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 typedef SHA512_CTX SHA384_CTX;
12
13 void SHA256_Finish(SHA256_CTX *ctx, char *buf);
14 void SHA384_Finish(SHA384_CTX *ctx, char *buf);
15 void SHA512_Finish(SHA512_CTX *ctx, char *buf);
16
17 #endif
18