GNU libmicrohttpd 1.0.1
Loading...
Searching...
No Matches
mhd_sha256_wrap.h File Reference

Simple wrapper for selection of built-in/external SHA-256 implementation. More...

#include "mhd_options.h"
#include "sha256.h"
Include dependency graph for mhd_sha256_wrap.h:

Go to the source code of this file.

Macros

#define Sha256CtxWr   Sha256Ctx
 
#define MHD_SHA256_init_one_time(ctx)   MHD_SHA256_init(ctx)
 
#define MHD_SHA256_reset(ctx)   MHD_SHA256_init(ctx)
 
#define MHD_SHA256_finish_reset(ctx, digest)
 
#define MHD_SHA256_deinit(ignore)   (void)0
 

Detailed Description

Simple wrapper for selection of built-in/external SHA-256 implementation.

Author
Karlson2k (Evgeny Grin)

Definition in file mhd_sha256_wrap.h.

Macro Definition Documentation

◆ MHD_SHA256_deinit

#define MHD_SHA256_deinit ( ignore)    (void)0

Definition at line 91 of file mhd_sha256_wrap.h.

◆ MHD_SHA256_finish_reset

#define MHD_SHA256_finish_reset ( ctx,
digest )
Value:
#define MHD_HTTP_OK
Definition microhttpd.h:344
void MHD_SHA256_finish(struct Sha256Ctx *ctx, uint8_t digest[SHA256_DIGEST_SIZE])
Definition sha256.c:473

Finalise MD5 calculation, return digest, reset hash calculation.

Definition at line 83 of file mhd_sha256_wrap.h.

Referenced by digest_calc_hash().

◆ MHD_SHA256_init_one_time

#define MHD_SHA256_init_one_time ( ctx)    MHD_SHA256_init(ctx)

Setup and prepare ctx for hash calculation

Definition at line 72 of file mhd_sha256_wrap.h.

Referenced by digest_init_one_time().

◆ MHD_SHA256_reset

#define MHD_SHA256_reset ( ctx)    MHD_SHA256_init(ctx)

Re-use the same ctx for the new hashing after digest calculated

Definition at line 79 of file mhd_sha256_wrap.h.

Referenced by digest_reset().

◆ Sha256CtxWr

#define Sha256CtxWr   Sha256Ctx

Universal ctx type mapped for chosen implementation

Definition at line 60 of file mhd_sha256_wrap.h.