BeeCrypt  4.2.1
Data Structures | Functions | Variables
sha224.h File Reference

SHA-224 hash function, headers. More...

#include "beecrypt/beecrypt.h"
Include dependency graph for sha224.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  sha224Param
 Holds all the parameters necessary for the SHA-224 algorithm. More...
 

Functions

void sha224Process (sha224Param *sp)
 This function performs the core of the SHA-224 hash algorithm; it processes a block of 64 bytes. More...
 
int sha224Reset (sha224Param *sp)
 This function resets the parameter block so that it's ready for a new hash. More...
 
int sha224Update (sha224Param *sp, const byte *data, size_t size)
 This function should be used to pass successive blocks of data to be hashed. More...
 
int sha224Digest (sha224Param *sp, byte *digest)
 This function finishes the current hash computation and copies the digest value into digest. More...
 

Variables

const hashFunction sha224
 Holds the full API description of the SHA-224 algorithm. More...
 

Detailed Description

SHA-224 hash function, headers.

Author
Bob Deblier bob.d.nosp@m.ebli.nosp@m.er@te.nosp@m.lene.nosp@m.t.be

Function Documentation

◆ sha224Digest()

int sha224Digest ( sha224Param sp,
byte digest 
)

This function finishes the current hash computation and copies the digest value into digest.

Parameters
spThe hash function's parameter block.
digestThe place to store the 32-byte digest.
Return values
0on success.

◆ sha224Process()

void sha224Process ( sha224Param sp)

This function performs the core of the SHA-224 hash algorithm; it processes a block of 64 bytes.

Parameters
spThe hash function's parameter block.

◆ sha224Reset()

int sha224Reset ( sha224Param sp)

This function resets the parameter block so that it's ready for a new hash.

Parameters
spThe hash function's parameter block.
Return values
0on success.

◆ sha224Update()

int sha224Update ( sha224Param sp,
const byte data,
size_t  size 
)

This function should be used to pass successive blocks of data to be hashed.

Parameters
spThe hash function's parameter block.
data
size
Return values
0on success.

Variable Documentation

◆ sha224

sha224
extern

Holds the full API description of the SHA-224 algorithm.