Sha256: 14ba46a5bb16453f319b10577acb1eaffa866886957859a3f561de9c34d1874d

Contents?: true

Size: 932 Bytes

Versions: 11

Compression:

Stored size: 932 Bytes

Contents

#define COMMON_DIGEST_FOR_OPENSSL 1
#include <CommonCrypto/CommonDigest.h>

#define SHA256_BLOCK_LENGTH	CC_SHA256_BLOCK_BYTES
#define SHA384_BLOCK_LENGTH	CC_SHA384_BLOCK_BYTES
#define SHA512_BLOCK_LENGTH	CC_SHA512_BLOCK_BYTES

#define SHA384_CTX		CC_SHA512_CTX

static DEFINE_UPDATE_FUNC_FOR_UINT(SHA256)
static DEFINE_FINISH_FUNC_FROM_FINAL(SHA256)
static DEFINE_UPDATE_FUNC_FOR_UINT(SHA384)
static DEFINE_FINISH_FUNC_FROM_FINAL(SHA384)
static DEFINE_UPDATE_FUNC_FOR_UINT(SHA512)
static DEFINE_FINISH_FUNC_FROM_FINAL(SHA512)


#undef SHA256_Update
#undef SHA256_Finish
#define SHA256_Update rb_digest_SHA256_update
#define SHA256_Finish rb_digest_SHA256_finish

#undef SHA384_Update
#undef SHA384_Finish
#define SHA384_Update rb_digest_SHA384_update
#define SHA384_Finish rb_digest_SHA384_finish

#undef SHA512_Update
#undef SHA512_Finish
#define SHA512_Update rb_digest_SHA512_update
#define SHA512_Finish rb_digest_SHA512_finish

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/digest-3.1.0/ext/digest/sha2/sha2cc.h
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/digest-3.1.0/ext/digest/sha2/sha2cc.h
digest-3.1.1 ext/digest/sha2/sha2cc.h
digest-3.1.0 ext/digest/sha2/sha2cc.h
digest-3.1.0.pre3 ext/digest/sha2/sha2cc.h
digest-3.1.0.pre2 ext/digest/sha2/sha2cc.h
digest-3.1.0.pre1 ext/digest/sha2/sha2cc.h
digest-3.1.0.pre0 ext/digest/sha2/sha2cc.h
digest-3.0.0 ext/digest/sha2/sha2cc.h
digest-1.0.0 ext/digest/sha2/sha2cc.h
ruby-compiler-0.1.1 vendor/ruby/ext/digest/sha2/sha2cc.h