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

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

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

Go to the source code of this file.

Data Structures

struct  sha512Param
 Holds all the parameters necessary for the SHA-512 algorithm. More...
 

Functions

void sha512Process (sha512Param *sp)
 This function performs the core of the SHA-512 hash algorithm; it processes a block of 128 bytes.
 
int sha512Reset (sha512Param *sp)
 This function resets the parameter block so that it's ready for a new hash.
 
int sha512Update (sha512Param *sp, const byte *data, size_t size)
 This function should be used to pass successive blocks of data to be hashed.
 
int sha512Digest (sha512Param *sp, byte *digest)
 This function finishes the current hash computation and copies the digest value into digest.
 

Variables

const hashFunction sha512
 Holds the full API description of the SHA-512 algorithm.
 

Detailed Description

SHA-512 hash function, headers.

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

Function Documentation

◆ sha512Digest()

int sha512Digest ( sha512Param * 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 64-byte digest.
Return values
0on success.

◆ sha512Process()

void sha512Process ( sha512Param * sp)

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

Parameters
spThe hash function's parameter block.

◆ sha512Reset()

int sha512Reset ( sha512Param * 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.

◆ sha512Update()

int sha512Update ( sha512Param * 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

◆ sha512

sha512
extern

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