Ruby 1.9.3p327(2012-11-10revision37606)
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 #define SHA384_Final SHA512_Final
00008 
00009 SHA_Finish(256)
00010 SHA_Finish(384)
00011 SHA_Finish(512)
00012