Ordo  0.3.4
Symmetric Cryptography Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
threefish256.h
Go to the documentation of this file.
1 /*===-- primitives/block_ciphers/threefish256.h --------*- PUBLIC -*- H -*-===*/
13 /*===----------------------------------------------------------------------===*/
14 
15 #ifndef ORDO_THREEFISH256_H
16 #define ORDO_THREEFISH256_H
17 
19 #include "ordo/common/interface.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 /*===----------------------------------------------------------------------===*/
29 
30 #define threefish256_init ordo_threefish256_init
31 #define threefish256_forward ordo_threefish256_forward
32 #define threefish256_inverse ordo_threefish256_inverse
33 #define threefish256_final ordo_threefish256_final
34 #define threefish256_query ordo_threefish256_query
35 #define threefish256_bsize ordo_threefish256_bsize
36 
37 /*===----------------------------------------------------------------------===*/
38 
43 ORDO_PUBLIC
44 int threefish256_init(struct THREEFISH256_STATE *state,
45  const void *key, size_t key_len,
46  const struct THREEFISH256_PARAMS *params);
47 
50 ORDO_PUBLIC
51 void threefish256_forward(const struct THREEFISH256_STATE *state,
52  void *block);
53 
56 ORDO_PUBLIC
57 void threefish256_inverse(const struct THREEFISH256_STATE *state,
58  void *block);
59 
62 ORDO_PUBLIC
63 void threefish256_final(struct THREEFISH256_STATE *state);
64 
67 ORDO_PUBLIC
68 size_t threefish256_query(int query, size_t value);
69 
76 ORDO_PUBLIC
77 size_t threefish256_bsize(void);
78 
79 /*===----------------------------------------------------------------------===*/
80 
81 #ifdef __cplusplus
82 }
83 #endif
84 
85 #endif
ORDO_PUBLIC void threefish256_forward(const struct THREEFISH256_STATE *state, void *block)
Definition: threefish256.c:45
ORDO_PUBLIC size_t threefish256_query(int query, size_t value)
Abstraction Layer.
Threefish-256 block cipher parameters.
Definition: block_params.h:25
ORDO_PUBLIC int threefish256_init(struct THREEFISH256_STATE *state, const void *key, size_t key_len, const struct THREEFISH256_PARAMS *params)
Definition: threefish256.c:29
ORDO_PUBLIC size_t threefish256_bsize(void)
ORDO_PUBLIC void threefish256_final(struct THREEFISH256_STATE *state)
Definition: threefish256.c:65
ORDO_PUBLIC void threefish256_inverse(const struct THREEFISH256_STATE *state, void *block)
Definition: threefish256.c:55