27#ifndef MHD_SHA256_WRAP_H
28#define MHD_SHA256_WRAP_H 1
32#ifndef MHD_SHA256_SUPPORT
33#error This file must be used only when SHA-256 is enabled
35#ifndef MHD_SHA256_TLSLIB
41#ifndef SHA256_DIGEST_SIZE
46#define SHA256_DIGEST_SIZE (32)
49#ifndef SHA256_DIGEST_STRING_SIZE
53#define SHA256_DIGEST_STRING_SIZE ((SHA256_DIGEST_SIZE) * 2 + 1)
56#ifndef MHD_SHA256_TLSLIB
60#define Sha256CtxWr Sha256Ctx
65#define Sha256CtxWr Sha256CtxExt
68#ifndef MHD_SHA256_HAS_INIT_ONE_TIME
72#define MHD_SHA256_init_one_time(ctx) MHD_SHA256_init(ctx)
75#ifndef MHD_SHA256_HAS_FINISH_RESET
79#define MHD_SHA256_reset(ctx) MHD_SHA256_init(ctx)
83#define MHD_SHA256_finish_reset(ctx,digest) MHD_SHA256_finish(ctx,digest), \
87#define MHD_SHA256_reset(ctx) (void)0
90#ifndef MHD_SHA256_HAS_DEINIT
91#define MHD_SHA256_deinit(ignore) (void)0
96#if ! defined(MHD_SHA256_HAS_FINISH_RESET) && ! defined(MHD_SHA256_HAS_FINISH)
97#error Required MHD_SHA256_finish_reset() or MHD_SHA256_finish_reset()
additional automatic macros for MHD_config.h
Calculation of SHA-256 digest.
Wrapper for SHA-256 calculation performed by TLS library.