iPXE
Data Fields
digest_algorithm Struct Reference

A message digest algorithm. More...

#include <crypto.h>

Data Fields

const char * name
 Algorithm name.
size_t ctxsize
 Context size.
size_t blocksize
 Block size.
size_t digestsize
 Digest size.
void(* init )(void *ctx)
 Initialise digest.
void(* update )(void *ctx, const void *src, size_t len)
 Update digest with new data.
void(* final )(void *ctx, void *out)
 Finalise digest.

Detailed Description

A message digest algorithm.

Definition at line 16 of file crypto.h.


Field Documentation

Block size.

Definition at line 22 of file crypto.h.

Referenced by cms_digest(), hmac_final(), hmac_init(), and tls_assemble_block().

void( * digest_algorithm::init)(void *ctx)

Initialise digest.

Parameters:
ctxContext

Definition at line 29 of file crypto.h.

Referenced by digest_init().

void( * digest_algorithm::update)(void *ctx, const void *src, size_t len)

Update digest with new data.

Parameters:
ctxContext
srcData to digest
lenLength of data
lenis not necessarily a multiple of blocksize.

Definition at line 38 of file crypto.h.

Referenced by digest_update().

void( * digest_algorithm::final)(void *ctx, void *out)

Finalise digest.

Parameters:
ctxContext
outBuffer for digest output

Definition at line 44 of file crypto.h.

Referenced by digest_final().


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