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 17 of file crypto.h.

Field Documentation

◆ name

const char* digest_algorithm::name

Algorithm name.

Definition at line 19 of file crypto.h.

Referenced by tls_select_cipher().

◆ ctxsize

size_t digest_algorithm::ctxsize

Context size.

Definition at line 21 of file crypto.h.

◆ blocksize

size_t digest_algorithm::blocksize

Block size.

Definition at line 23 of file crypto.h.

◆ digestsize

size_t digest_algorithm::digestsize

Digest size.

Definition at line 25 of file crypto.h.

◆ init

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

Initialise digest.


Definition at line 30 of file crypto.h.

◆ update

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

Update digest with new data.

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

Definition at line 39 of file crypto.h.

◆ final

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

Finalise digest.

outBuffer for digest output

Definition at line 45 of file crypto.h.

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