SWILIB API (NSG)    
Loading...
Searching...
No Matches
hmac.h File Reference
#include "evp.h"

Go to the source code of this file.

Data Structures

struct  hmac_ctx_st
 

Macros

#define HMAC_MAX_MD_CBLOCK   64
 
#define HMAC_size(e)   (EVP_MD_size((e)->md))
 

Typedefs

typedef struct hmac_ctx_st HMAC_CTX
 

Functions

void HMAC_Init (HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md)
 
void HMAC_Update (HMAC_CTX *ctx, const unsigned char *data, int len)
 
void HMAC_Final (HMAC_CTX *ctx, unsigned char *md, unsigned int *len)
 
void HMAC_cleanup (HMAC_CTX *ctx)
 
unsigned char * HMAC (const EVP_MD *evp_md, const void *key, int key_len, const unsigned char *d, int n, unsigned char *md, unsigned int *md_len)
 

Data Structure Documentation

◆ hmac_ctx_st

struct hmac_ctx_st

Macro Definition Documentation

◆ HMAC_MAX_MD_CBLOCK

#define HMAC_MAX_MD_CBLOCK   64

Definition at line 71 of file hmac.h.

◆ HMAC_size

#define HMAC_size ( e)    (EVP_MD_size((e)->md))

Definition at line 83 of file hmac.h.

Typedef Documentation

◆ HMAC_CTX

typedef struct hmac_ctx_st HMAC_CTX

Function Documentation

◆ HMAC_Init()

void HMAC_Init ( HMAC_CTX * ctx,
const void * key,
int len,
const EVP_MD * md )

◆ HMAC_Update()

void HMAC_Update ( HMAC_CTX * ctx,
const unsigned char * data,
int len )

◆ HMAC_Final()

void HMAC_Final ( HMAC_CTX * ctx,
unsigned char * md,
unsigned int * len )

◆ HMAC_cleanup()

void HMAC_cleanup ( HMAC_CTX * ctx)

◆ HMAC()

unsigned char * HMAC ( const EVP_MD * evp_md,
const void * key,
int key_len,
const unsigned char * d,
int n,
unsigned char * md,
unsigned int * md_len )