#include <ruby/ruby.h>
#include "../digest.h"
#include "sha2.h"
Go to the source code of this file.
◆ DECLARE_ALGO_CLASS
#define DECLARE_ALGO_CLASS |
( |
|
bitlen | ) |
VALUE cDigest_SHA##bitlen; |
◆ DEFINE_ALGO_CLASS
#define DEFINE_ALGO_CLASS |
( |
|
bitlen | ) |
|
◆ DEFINE_ALGO_METADATA
#define DEFINE_ALGO_METADATA |
( |
|
bitlen | ) |
|
Value:
RUBY_DIGEST_API_VERSION, \
SHA##bitlen##_DIGEST_LENGTH, \
SHA##bitlen##_BLOCK_LENGTH, \
sizeof(SHA##bitlen##_CTX), \
};
Definition at line 16 of file sha2init.c.
◆ FOREACH_BITLEN
#define FOREACH_BITLEN |
( |
|
func | ) |
func(256) func(384) func(512) |
◆ RUBY_UNTYPED_DATA_WARNING
#define RUBY_UNTYPED_DATA_WARNING 0 |
◆ Init_sha2()