mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
945a76d97b
rb_digest_base_equal): Simplify the equality check and just compare resulted digests since state-level equality should not be significant. * ext/digest/digest.h: Ditto. * ext/digest/*/*.[ch]: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
20 lines
356 B
C
20 lines
356 B
C
/* $Id$ */
|
|
|
|
#ifndef SHA1OSSL_H_INCLUDED
|
|
#define SHA1OSSL_H_INCLUDED
|
|
|
|
#include <stddef.h>
|
|
#include <openssl/sha.h>
|
|
|
|
#define SHA1_CTX SHA_CTX
|
|
|
|
#ifdef SHA_BLOCK_LENGTH
|
|
#define SHA1_BLOCK_LENGTH SHA_BLOCK_LENGTH
|
|
#else
|
|
#define SHA1_BLOCK_LENGTH SHA_CBLOCK
|
|
#endif
|
|
#define SHA1_DIGEST_LENGTH SHA_DIGEST_LENGTH
|
|
|
|
void SHA1_Finish(SHA1_CTX *ctx, char *buf);
|
|
|
|
#endif
|