Electroneum
jh.h
Go to the documentation of this file.
1
/*This program gives the 64-bit optimized bitslice implementation of JH using ANSI C
2
3
--------------------------------
4
Performance
5
6
Microprocessor: Intel CORE 2 processor (Core 2 Duo Mobile T6600 2.2GHz)
7
Operating System: 64-bit Ubuntu 10.04 (Linux kernel 2.6.32-22-generic)
8
Speed for long message:
9
1) 45.8 cycles/byte compiler: Intel C++ Compiler 11.1 compilation option: icc -O2
10
2) 56.8 cycles/byte compiler: gcc 4.4.3 compilation option: gcc -O3
11
12
--------------------------------
13
Last Modified: January 16, 2011
14
*/
15
#pragma once
16
17
typedef
unsigned
char
BitSequence
;
18
typedef
unsigned
long
long
DataLength
;
19
typedef
enum
{
SUCCESS
= 0,
FAIL
= 1,
BAD_HASHLEN
= 2}
HashReturn
;
20
21
HashReturn
jh_hash
(
int
hashbitlen,
const
BitSequence
*data,
DataLength
databitlen,
BitSequence
*hashval);
FAIL
Definition:
jh.h:19
SUCCESS
Definition:
jh.h:19
jh_hash
HashReturn jh_hash(int hashbitlen, const BitSequence *data, DataLength databitlen, BitSequence *hashval)
DataLength
unsigned long long DataLength
Definition:
jh.h:18
BitSequence
unsigned char BitSequence
Definition:
groestl.h:65
BAD_HASHLEN
Definition:
jh.h:19
HashReturn
HashReturn
Definition:
jh.h:19
DataLength
unsigned long long DataLength
Definition:
groestl.h:66
BitSequence
unsigned char BitSequence
Definition:
jh.h:17
src
crypto
jh.h
Generated on Sun Mar 10 2024 12:00:00 for Electroneum by
1.8.14