Ruby  2.5.0dev(2017-10-22revision60238)
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)
VALUE rb_eRuntimeError
Definition: error.c:800

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().