Ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a25176072e02db9254f0e0c84c805cd)
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:922
const VALUE VALUE obj

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