OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions
hmac.h File Reference
#include <openssl/opensslconf.h>
#include <openssl/evp.h>

Go to the source code of this file.

Classes

struct  hmac_ctx_st
 

Macros

#define HMAC_MAX_MD_CBLOCK   128 /* largest known is SHA512 */
 
#define HMAC_size(e)   (EVP_MD_size((e)->md))
 
#define HMAC_cleanup(ctx)   HMAC_CTX_cleanup(ctx) /* deprecated */
 

Typedefs

typedef struct hmac_ctx_st HMAC_CTX
 

Functions

void HMAC_CTX_init (HMAC_CTX *ctx)
 
void HMAC_CTX_cleanup (HMAC_CTX *ctx)
 
int HMAC_Init (HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md)
 
int HMAC_Init_ex (HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md, ENGINE *impl)
 
int HMAC_Update (HMAC_CTX *ctx, const unsigned char *data, size_t len)
 
int HMAC_Final (HMAC_CTX *ctx, unsigned char *md, unsigned int *len)
 
unsigned char * HMAC (const EVP_MD *evp_md, const void *key, int key_len, const unsigned char *d, size_t n, unsigned char *md, unsigned int *md_len)
 
int HMAC_CTX_copy (HMAC_CTX *dctx, HMAC_CTX *sctx)
 
void HMAC_CTX_set_flags (HMAC_CTX *ctx, unsigned long flags)
 

Macro Definition Documentation

#define HMAC_cleanup (   ctx)    HMAC_CTX_cleanup(ctx) /* deprecated */

Definition at line 91 of file hmac.h.

#define HMAC_MAX_MD_CBLOCK   128 /* largest known is SHA512 */

Definition at line 69 of file hmac.h.

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

Definition at line 85 of file hmac.h.

Typedef Documentation

typedef struct hmac_ctx_st HMAC_CTX

Function Documentation

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

Definition at line 225 of file hmac.c.

void HMAC_CTX_cleanup ( HMAC_CTX ctx)

Definition at line 210 of file hmac.c.

int HMAC_CTX_copy ( HMAC_CTX dctx,
HMAC_CTX sctx 
)

Definition at line 194 of file hmac.c.

void HMAC_CTX_init ( HMAC_CTX ctx)

Definition at line 187 of file hmac.c.

void HMAC_CTX_set_flags ( HMAC_CTX ctx,
unsigned long  flags 
)

Definition at line 246 of file hmac.c.

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

Definition at line 165 of file hmac.c.

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

Definition at line 149 of file hmac.c.

int HMAC_Init_ex ( HMAC_CTX ctx,
const void key,
int  len,
const EVP_MD md,
ENGINE impl 
)

Definition at line 68 of file hmac.c.

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

Definition at line 156 of file hmac.c.