ZNC  trunk
Classes | Macros | Functions
SHA256.h File Reference
#include <znc/zncconfig.h>
#include <inttypes.h>
#include <cstddef>
+ Include dependency graph for SHA256.h:

Go to the source code of this file.

Classes

struct  sha256_ctx
 

Macros

#define SHA256_DIGEST_SIZE   (256 / 8)
 
#define SHA256_BLOCK_SIZE   (512 / 8)
 

Functions

void sha256_init (sha256_ctx *ctx)
 
void sha256_update (sha256_ctx *ctx, const unsigned char *message, size_t len)
 
void sha256_final (sha256_ctx *ctx, unsigned char *digest)
 
void sha256 (const unsigned char *message, size_t len, unsigned char *digest)
 

Macro Definition Documentation

◆ SHA256_BLOCK_SIZE

#define SHA256_BLOCK_SIZE   (512 / 8)

◆ SHA256_DIGEST_SIZE

#define SHA256_DIGEST_SIZE   (256 / 8)

Function Documentation

◆ sha256()

void sha256 ( const unsigned char *  message,
size_t  len,
unsigned char *  digest 
)

◆ sha256_final()

void sha256_final ( sha256_ctx ctx,
unsigned char *  digest 
)

◆ sha256_init()

void sha256_init ( sha256_ctx ctx)

◆ sha256_update()

void sha256_update ( sha256_ctx ctx,
const unsigned char *  message,
size_t  len 
)