« Back to documentation index 
    
md_info_t Struct Reference 
Message digest information.  
More... 
#include <md.h >
md_type_t  type   Digest identifier.   const char *  name   Name of the message digest.   int  size   Output length of the digest function.   void(*  starts_func  )(void *ctx)  Digest initialisation function.   void(*  update_func  )(void *ctx, const unsigned char *input, size_t ilen)  Digest update function.   void(*  finish_func  )(void *ctx, unsigned char *output)  Digest finalisation function.   void(*  digest_func  )(const unsigned char *input, size_t ilen, unsigned char *output)  Generic digest function.   int(*  file_func  )(const char *path, unsigned char *output)  Generic file digest function.   void(*  hmac_starts_func  )(void *ctx, const unsigned char *key, size_t keylen)  HMAC Initialisation function.   void(*  hmac_update_func  )(void *ctx, const unsigned char *input, size_t ilen)  HMAC update function.   void(*  hmac_finish_func  )(void *ctx, unsigned char *output)  HMAC finalisation function.   void(*  hmac_reset_func  )(void *ctx)  HMAC context reset function.   void(*  hmac_func  )(const unsigned char *key, size_t keylen, const unsigned char *input, size_t ilen, unsigned char *output)  Generic HMAC function.   void *(*  ctx_alloc_func  )(void)  Allocate a new context.   void(*  ctx_free_func  )(void *ctx)  Free the given context.   void(*  process_func  )(void *ctx, const unsigned char *input)  Internal use only.   
Detailed Description 
Message digest information. 
Allows message digest functions to be called in a generic way. 
Definition at line 71  of file md.h .
Field Documentation 
Allocate a new context. 
Definition at line 117  of file md.h .
 
 
Free the given context. 
Definition at line 120  of file md.h .
 
 
      
        
          void(* digest_func )(const unsigned char *input, size_t ilen, unsigned char *output) 
         
      
 
Generic digest function. 
Definition at line 91  of file md.h .
 
 
      
        
          int(* file_func )(const char *path, unsigned char *output) 
         
      
 
Generic file digest function. 
Definition at line 95  of file md.h .
 
 
Digest finalisation function. 
Definition at line 88  of file md.h .
 
 
HMAC finalisation function. 
Definition at line 106  of file md.h .
 
 
      
        
          void(* 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 .
 
 
HMAC context reset function. 
Definition at line 109  of file md.h .
 
 
HMAC Initialisation function. 
Definition at line 98  of file md.h .
 
 
HMAC update function. 
Definition at line 102  of file md.h .
 
 
Name of the message digest. 
Definition at line 76  of file md.h .
 
 
Internal use only. 
Definition at line 123  of file md.h .
 
 
Output length of the digest function. 
Definition at line 79  of file md.h .
 
 
Digest initialisation function. 
Definition at line 82  of file md.h .
 
 
Digest identifier. 
Definition at line 73  of file md.h .
 
 
      
        
          void(* update_func )(void *ctx, const unsigned char *input, size_t ilen) 
         
      
 
Digest update function. 
Definition at line 85  of file md.h .