(b76ad15ed0da636161de0243c547ee1e6fc95681)
#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 | ) |
|
Value:
rb_digest_make_metadata(&sha##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 14 of file sha2init.c.
◆ FOREACH_BITLEN
#define FOREACH_BITLEN |
( |
|
func | ) |
func(256) func(384) func(512) |
◆ Init_sha2()