Ordo  0.3.4
Symmetric Cryptography Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
hash_params.h
Go to the documentation of this file.
1 /*===-- primitives/hash_functions/hash_params.h --------*- PUBLIC -*- H -*-===*/
8 /*===----------------------------------------------------------------------===*/
9 
10 #ifndef ORDO_HASH_PARAMS_H
11 #define ORDO_HASH_PARAMS_H
12 
14 #include "ordo/common/interface.h"
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 /*===----------------------------------------------------------------------===*/
22 
23 #define skein256_default ordo_skein256_default
24 
25 /*===----------------------------------------------------------------------===*/
26 
36 #pragma pack(push,1)
38 {
41  uint8_t schema[4];
44  uint8_t version[2];
47  uint8_t reserved[2];
54  uint64_t out_len;
57  uint8_t unused[16];
58 };
59 #pragma pack(pop)
60 
64 {
65  struct SKEIN256_PARAMS skein256;
66 };
67 
70 #define SKEIN256_PARAMS_DEFAULT\
71  {{ 0x53, 0x48, 0x41, 0x33 }, { 1, 0 }, { 0 }, 256, { 0 }}
72 
73 /*===----------------------------------------------------------------------===*/
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif
uint8_t schema[4]
Definition: hash_params.h:41
Skein-256 hash function parameters.
Definition: hash_params.h:37
uint64_t out_len
Definition: hash_params.h:54
uint8_t version[2]
Definition: hash_params.h:44
Polymorphic hash function parameter union.
Definition: hash_params.h:63
uint8_t reserved[2]
Definition: hash_params.h:47
uint8_t unused[16]
Definition: hash_params.h:57