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