Apache HTTPD
Classes | Macros | Typedefs | Functions
sha2.h File Reference
#include "apr.h"

Go to the source code of this file.

Classes

struct  _SHA256_CTX
 

Macros

#define SHA256_BLOCK_LENGTH   64
 
#define SHA256_DIGEST_LENGTH   32
 
#define SHA256_DIGEST_STRING_LENGTH   (SHA256_DIGEST_LENGTH * 2 + 1)
 

Typedefs

typedef struct _SHA256_CTX SHA256_CTX
 

Functions

void apr__SHA256_Init (SHA256_CTX *)
 
void apr__SHA256_Update (SHA256_CTX *, const apr_byte_t *, size_t)
 
void apr__SHA256_Final (apr_byte_t[32], SHA256_CTX *)
 
charapr__SHA256_End (SHA256_CTX *, char[(32 *2+1)])
 
charapr__SHA256_Data (const apr_byte_t *, size_t, char[(32 *2+1)])
 

Macro Definition Documentation

◆ SHA256_BLOCK_LENGTH

#define SHA256_BLOCK_LENGTH   64

Definition at line 33 of file sha2.h.

◆ SHA256_DIGEST_LENGTH

#define SHA256_DIGEST_LENGTH   32

Definition at line 34 of file sha2.h.

◆ SHA256_DIGEST_STRING_LENGTH

#define SHA256_DIGEST_STRING_LENGTH   (SHA256_DIGEST_LENGTH * 2 + 1)

Definition at line 35 of file sha2.h.

Typedef Documentation

◆ SHA256_CTX

Function Documentation

◆ apr__SHA256_Data()

char * apr__SHA256_Data ( const apr_byte_t data,
size_t  len,
char  digest[(32 *2+1)] 
)

Definition at line 522 of file sha2.c.

◆ apr__SHA256_End()

char * apr__SHA256_End ( SHA256_CTX context,
char  buffer[(32 *2+1)] 
)

Definition at line 499 of file sha2.c.

◆ apr__SHA256_Final()

void apr__SHA256_Final ( apr_byte_t  digest[32],
SHA256_CTX context 
)

Definition at line 428 of file sha2.c.

◆ apr__SHA256_Init()

void apr__SHA256_Init ( SHA256_CTX context)

Definition at line 195 of file sha2.c.

◆ apr__SHA256_Update()

void apr__SHA256_Update ( SHA256_CTX context,
const apr_byte_t data,
size_t  len 
)

Definition at line 379 of file sha2.c.