Ruby  2.0.0p247(2013-06-27revision41674)
ext/digest/sha2/sha2ossl.h
Go to the documentation of this file.
00001 #ifndef SHA2OSSL_H_INCLUDED
00002 #define SHA2OSSL_H_INCLUDED
00003 
00004 #include <stddef.h>
00005 #include <openssl/sha.h>
00006 
00007 #define SHA256_BLOCK_LENGTH     SHA256_CBLOCK
00008 #define SHA384_BLOCK_LENGTH     SHA512_CBLOCK
00009 #define SHA512_BLOCK_LENGTH     SHA512_CBLOCK
00010 
00011 typedef SHA512_CTX SHA384_CTX;
00012 
00013 void SHA256_Finish(SHA256_CTX *ctx, char *buf);
00014 void SHA384_Finish(SHA384_CTX *ctx, char *buf);
00015 void SHA512_Finish(SHA512_CTX *ctx, char *buf);
00016 
00017 #endif
00018