PolarSSL v1.3.3
Data Fields
md_info_t Struct Reference

Message digest information. More...

#include <md.h>

Data Fields

md_type_t type
 Digest identifier. More...
 
const char * name
 Name of the message digest. More...
 
int size
 Output length of the digest function. More...
 
void(* starts_func )(void *ctx)
 Digest initialisation function. More...
 
void(* update_func )(void *ctx, const unsigned char *input, size_t ilen)
 Digest update function. More...
 
void(* finish_func )(void *ctx, unsigned char *output)
 Digest finalisation function. More...
 
void(* digest_func )(const unsigned char *input, size_t ilen, unsigned char *output)
 Generic digest function. More...
 
int(* file_func )(const char *path, unsigned char *output)
 Generic file digest function. More...
 
void(* hmac_starts_func )(void *ctx, const unsigned char *key, size_t keylen)
 HMAC Initialisation function. More...
 
void(* hmac_update_func )(void *ctx, const unsigned char *input, size_t ilen)
 HMAC update function. More...
 
void(* hmac_finish_func )(void *ctx, unsigned char *output)
 HMAC finalisation function. More...
 
void(* hmac_reset_func )(void *ctx)
 HMAC context reset function. More...
 
void(* hmac_func )(const unsigned char *key, size_t keylen, const unsigned char *input, size_t ilen, unsigned char *output)
 Generic HMAC function. More...
 
void *(* ctx_alloc_func )(void)
 Allocate a new context. More...
 
void(* ctx_free_func )(void *ctx)
 Free the given context. More...
 
void(* process_func )(void *ctx, const unsigned char *input)
 Internal use only. More...
 

Detailed Description

Message digest information.

Allows message digest functions to be called in a generic way.

Definition at line 73 of file md.h.

Field Documentation

void*(* md_info_t::ctx_alloc_func)(void)

Allocate a new context.

Definition at line 117 of file md.h.

void(* md_info_t::ctx_free_func)(void *ctx)

Free the given context.

Definition at line 120 of file md.h.

void(* md_info_t::digest_func)(const unsigned char *input, size_t ilen, unsigned char *output)

Generic digest function.

Definition at line 93 of file md.h.

int(* md_info_t::file_func)(const char *path, unsigned char *output)

Generic file digest function.

Definition at line 97 of file md.h.

void(* md_info_t::finish_func)(void *ctx, unsigned char *output)

Digest finalisation function.

Definition at line 90 of file md.h.

void(* md_info_t::hmac_finish_func)(void *ctx, unsigned char *output)

HMAC finalisation function.

Definition at line 106 of file md.h.

void(* md_info_t::hmac_func)(const unsigned char *key, size_t keylen, const unsigned char *input, size_t ilen, unsigned char *output)

Generic HMAC function.

Definition at line 112 of file md.h.

void(* md_info_t::hmac_reset_func)(void *ctx)

HMAC context reset function.

Definition at line 109 of file md.h.

void(* md_info_t::hmac_starts_func)(void *ctx, const unsigned char *key, size_t keylen)

HMAC Initialisation function.

Definition at line 100 of file md.h.

void(* md_info_t::hmac_update_func)(void *ctx, const unsigned char *input, size_t ilen)

HMAC update function.

Definition at line 103 of file md.h.

const char* md_info_t::name

Name of the message digest.

Definition at line 78 of file md.h.

Referenced by md_get_name().

void(* md_info_t::process_func)(void *ctx, const unsigned char *input)

Internal use only.

Definition at line 123 of file md.h.

int md_info_t::size

Output length of the digest function.

Definition at line 81 of file md.h.

Referenced by md_get_size().

void(* md_info_t::starts_func)(void *ctx)

Digest initialisation function.

Definition at line 84 of file md.h.

md_type_t md_info_t::type

Digest identifier.

Definition at line 75 of file md.h.

Referenced by md_get_type().

void(* md_info_t::update_func)(void *ctx, const unsigned char *input, size_t ilen)

Digest update function.

Definition at line 87 of file md.h.


The documentation for this struct was generated from the following file: