summaryrefslogtreecommitdiff
path: root/jni/ruby/ext/digest/sha2/sha2ossl.c
blob: 34353be8b86392d052ea13caf5f9c6e686ade946 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "defs.h"
#include "sha2ossl.h"

#define SHA_Finish(bit) \
    void SHA##bit##_Finish(SHA##bit##_CTX *ctx, char *buf) \
    { SHA##bit##_Final((unsigned char *)buf, ctx);}
#ifndef __DragonFly__
#define SHA384_Final SHA512_Final
#endif

SHA_Finish(256)
SHA_Finish(384)
SHA_Finish(512)