Ruby  2.7.1p83(2020-03-31revisiona0c7c23c9cec0d0ffcba012279cd652d28ad5bf3)
Macros | Functions | Variables
ossl_hmac.c File Reference
#include "ossl.h"

Go to the source code of this file.

Macros

#define NewHMAC(klass)   TypedData_Wrap_Struct((klass), &ossl_hmac_type, 0)
 
#define GetHMAC(obj, ctx)
 

Functions

void Init_ossl_hmac (void)
 

Variables

VALUE cHMAC
 
VALUE eHMACError
 

Macro Definition Documentation

◆ GetHMAC

#define GetHMAC (   obj,
  ctx 
)
Value:
do { \
TypedData_Get_Struct((obj), HMAC_CTX, &ossl_hmac_type, (ctx)); \
if (!(ctx)) { \
ossl_raise(rb_eRuntimeError, "HMAC wasn't initialized"); \
} \
} while (0)

Definition at line 16 of file ossl_hmac.c.

◆ NewHMAC

#define NewHMAC (   klass)    TypedData_Wrap_Struct((klass), &ossl_hmac_type, 0)

Definition at line 14 of file ossl_hmac.c.

Function Documentation

◆ Init_ossl_hmac()

void Init_ossl_hmac ( void  )

Variable Documentation

◆ cHMAC

VALUE cHMAC

Definition at line 26 of file ossl_hmac.c.

Referenced by Init_ossl_hmac().

◆ eHMACError

VALUE eHMACError

Definition at line 27 of file ossl_hmac.c.

Referenced by Init_ossl_hmac().

obj
const VALUE VALUE obj
Definition: rb_mjit_min_header-2.7.1.h:5703
rb_eRuntimeError
VALUE rb_eRuntimeError
Definition: error.c:920