Electroneum
jh.h File Reference

Go to the source code of this file.

Typedefs

typedef unsigned char BitSequence
 
typedef unsigned long long DataLength
 

Enumerations

enum  HashReturn {
  SUCCESS = 0, FAIL = 1, BAD_HASHLEN = 2, SKEIN_SUCCESS = 0,
  SKEIN_FAIL = 1, SKEIN_BAD_HASHLEN = 2
}
 

Functions

HashReturn jh_hash (int hashbitlen, const BitSequence *data, DataLength databitlen, BitSequence *hashval)
 

Typedef Documentation

◆ BitSequence

typedef unsigned char BitSequence

Definition at line 17 of file jh.h.

◆ DataLength

typedef unsigned long long DataLength

Definition at line 18 of file jh.h.

Enumeration Type Documentation

◆ HashReturn

enum HashReturn
Enumerator
SUCCESS 
FAIL 
BAD_HASHLEN 
SKEIN_SUCCESS 
SKEIN_FAIL 
SKEIN_BAD_HASHLEN 

Definition at line 19 of file jh.h.

19 {SUCCESS = 0, FAIL = 1, BAD_HASHLEN = 2} HashReturn;
Definition: jh.h:19
Definition: jh.h:19
Definition: jh.h:19
HashReturn
Definition: jh.h:19

Function Documentation

◆ jh_hash()

HashReturn jh_hash ( int  hashbitlen,
const BitSequence data,
DataLength  databitlen,
BitSequence hashval 
)