PolarSSL is now part of ARM Official announcement and rebranded as mbed TLS.

API Documentation (Doxygen generated)

These pages are generated with doxygen directly from the source code!

mbedtls_md_info_t Struct Reference

Message digest information. More...

#include <md_internal.h>

Data Fields

mbedtls_md_type_t type
 Digest identifier. More...
 
const char * name
 Name of the message digest. More...
 
int size
 Output length of the digest function in bytes. More...
 
int block_size
 Block length of the digest function in bytes. More...
 
int(* starts_func )(void *ctx)
 Digest initialisation function. More...
 
int(* update_func )(void *ctx, const unsigned char *input, size_t ilen)
 Digest update function. More...
 
int(* finish_func )(void *ctx, unsigned char *output)
 Digest finalisation function. More...
 
int(* digest_func )(const unsigned char *input, size_t ilen, unsigned char *output)
 Generic digest function. More...
 
void *(* ctx_alloc_func )(void)
 Allocate a new context. More...
 
void(* ctx_free_func )(void *ctx)
 Free the given context. More...
 
void(* clone_func )(void *dst, const void *src)
 Clone state from a context. More...
 
int(* 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 47 of file md_internal.h.

Field Documentation

int mbedtls_md_info_t::block_size

Block length of the digest function in bytes.

Definition at line 59 of file md_internal.h.

void(* mbedtls_md_info_t::clone_func)(void *dst, const void *src)

Clone state from a context.

Definition at line 81 of file md_internal.h.

void*(* mbedtls_md_info_t::ctx_alloc_func)(void)

Allocate a new context.

Definition at line 75 of file md_internal.h.

void(* mbedtls_md_info_t::ctx_free_func)(void *ctx)

Free the given context.

Definition at line 78 of file md_internal.h.

int(* mbedtls_md_info_t::digest_func)(const unsigned char *input, size_t ilen, unsigned char *output)

Generic digest function.

Definition at line 71 of file md_internal.h.

int(* mbedtls_md_info_t::finish_func)(void *ctx, unsigned char *output)

Digest finalisation function.

Definition at line 68 of file md_internal.h.

const char* mbedtls_md_info_t::name

Name of the message digest.

Definition at line 53 of file md_internal.h.

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

Internal use only.

Definition at line 84 of file md_internal.h.

int mbedtls_md_info_t::size

Output length of the digest function in bytes.

Definition at line 56 of file md_internal.h.

int(* mbedtls_md_info_t::starts_func)(void *ctx)

Digest initialisation function.

Definition at line 62 of file md_internal.h.

mbedtls_md_type_t mbedtls_md_info_t::type

Digest identifier.

Definition at line 50 of file md_internal.h.

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

Digest update function.

Definition at line 65 of file md_internal.h.


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