Ruby  2.0.0p247(2013-06-27revision41674)
ext/digest/sha2/sha2ossl.c
Go to the documentation of this file.
00001 #include "defs.h"
00002 #include "sha2ossl.h"
00003 
00004 #define SHA_Finish(bit) \
00005     void SHA##bit##_Finish(SHA##bit##_CTX *ctx, char *buf) \
00006     { SHA##bit##_Final((unsigned char *)buf, ctx);}
00007 #ifndef __DragonFly__
00008 #define SHA384_Final SHA512_Final
00009 #endif
00010 
00011 SHA_Finish(256)
00012 SHA_Finish(384)
00013 SHA_Finish(512)
00014