Electroneum
Macros | Typedefs | Functions | Variables
sha512-hash.c File Reference
#include "sha512.h"
Include dependency graph for sha512-hash.c:

Macros

#define blocks   crypto_hashblocks
 

Typedefs

typedef unsigned long long uint64
 

Functions

int crypto_hashblocks (unsigned char *statebytes, const unsigned char *in, unsigned long long inlen)
 
int crypto_hash_sha512 (unsigned char *out, const unsigned char *in, unsigned long long inlen)
 

Variables

static const unsigned char iv [64]
 

Macro Definition Documentation

◆ blocks

#define blocks   crypto_hashblocks

Typedef Documentation

◆ uint64

typedef unsigned long long uint64

Function Documentation

◆ crypto_hash_sha512()

int crypto_hash_sha512 ( unsigned char *  out,
const unsigned char *  in,
unsigned long long  inlen 
)

◆ crypto_hashblocks()

int crypto_hashblocks ( unsigned char *  statebytes,
const unsigned char *  in,
unsigned long long  inlen 
)

Variable Documentation

◆ iv

const unsigned char iv[64]
static
Initial value:
= {
0x6a,0x09,0xe6,0x67,0xf3,0xbc,0xc9,0x08,
0xbb,0x67,0xae,0x85,0x84,0xca,0xa7,0x3b,
0x3c,0x6e,0xf3,0x72,0xfe,0x94,0xf8,0x2b,
0xa5,0x4f,0xf5,0x3a,0x5f,0x1d,0x36,0xf1,
0x51,0x0e,0x52,0x7f,0xad,0xe6,0x82,0xd1,
0x9b,0x05,0x68,0x8c,0x2b,0x3e,0x6c,0x1f,
0x1f,0x83,0xd9,0xab,0xfb,0x41,0xbd,0x6b,
0x5b,0xe0,0xcd,0x19,0x13,0x7e,0x21,0x79
}