2002-09-26 17:44:33 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
#ifndef SHA1OSSL_H_INCLUDED
|
|
|
|
#define SHA1OSSL_H_INCLUDED
|
|
|
|
|
2005-08-30 10:43:36 +00:00
|
|
|
#include <stddef.h>
|
2002-09-26 17:44:33 +00:00
|
|
|
#include <openssl/sha.h>
|
|
|
|
|
|
|
|
#define SHA1_CTX SHA_CTX
|
|
|
|
|
2006-10-11 05:57:19 +00:00
|
|
|
#ifdef SHA_BLOCK_LENGTH
|
2002-09-26 17:44:33 +00:00
|
|
|
#define SHA1_BLOCK_LENGTH SHA_BLOCK_LENGTH
|
2006-10-11 05:57:19 +00:00
|
|
|
#else
|
|
|
|
#define SHA1_BLOCK_LENGTH SHA_CBLOCK
|
|
|
|
#endif
|
2002-09-26 17:44:33 +00:00
|
|
|
#define SHA1_DIGEST_LENGTH SHA_DIGEST_LENGTH
|
|
|
|
|
2015-02-11 02:09:23 +00:00
|
|
|
static DEFINE_FINISH_FUNC_FROM_FINAL(SHA1);
|
|
|
|
#undef SHA1_Finish
|
|
|
|
#define SHA1_Finish rb_digest_SHA1_finish
|
2002-09-26 17:44:33 +00:00
|
|
|
|
|
|
|
#endif
|