| 1 | /* |
|---|
| 2 | * Author: Antoine Latter |
|---|
| 3 | * |
|---|
| 4 | * Interface to C reference implementation of the Whirlpool |
|---|
| 5 | * hash. |
|---|
| 6 | */ |
|---|
| 7 | |
|---|
| 8 | #ifndef __WHIRLPOOL_H__ |
|---|
| 9 | #define __WHIRLPOOL_H__ |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | #include <stdlib.h> |
|---|
| 13 | #include "nessie.h" |
|---|
| 14 | |
|---|
| 15 | /** |
|---|
| 16 | * Initialize the hashing state. |
|---|
| 17 | */ |
|---|
| 18 | void NESSIEinit(struct NESSIEstruct * const structpointer); |
|---|
| 19 | |
|---|
| 20 | /** |
|---|
| 21 | * Delivers input data to the hashing algorithm. |
|---|
| 22 | * |
|---|
| 23 | * @param source plaintext data to hash. |
|---|
| 24 | * @param sourceBits how many bits of plaintext to process. |
|---|
| 25 | */ |
|---|
| 26 | void NESSIEadd(const unsigned char * const source, |
|---|
| 27 | unsigned long sourceBits, |
|---|
| 28 | struct NESSIEstruct * const structpointer); |
|---|
| 29 | |
|---|
| 30 | /** |
|---|
| 31 | * Get the hash value from the hashing state. |
|---|
| 32 | */ |
|---|
| 33 | void NESSIEfinalize(struct NESSIEstruct * const structpointer, |
|---|
| 34 | unsigned char * const result); |
|---|
| 35 | |
|---|
| 36 | #endif |
|---|