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