iPXE
Data Fields
digest_algorithm Struct Reference

A message digest algorithm. More...

#include <crypto.h>

Data Fields

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

Detailed Description

A message digest algorithm.

Definition at line 16 of file crypto.h.

Field Documentation

◆ name

const char* digest_algorithm::name

Algorithm name.

Definition at line 18 of file crypto.h.

Referenced by tls_select_cipher().

◆ ctxsize

size_t digest_algorithm::ctxsize

Context size.

Definition at line 20 of file crypto.h.

◆ blocksize

size_t digest_algorithm::blocksize

Block size.

Definition at line 22 of file crypto.h.

Referenced by tls_assemble_block().

◆ digestsize

size_t digest_algorithm::digestsize

◆ init

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

Initialise digest.

Parameters
ctxContext

Definition at line 29 of file crypto.h.

◆ update

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.

◆ final

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

Finalise digest.

Parameters
ctxContext
outBuffer for digest output

Definition at line 44 of file crypto.h.


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