Ordo  0.3.4
Symmetric Cryptography Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
block_ciphers.h
Go to the documentation of this file.
1 /*===-- primitives/block_ciphers.h ---------------------*- PUBLIC -*- H -*-===*/
11 /*===----------------------------------------------------------------------===*/
12 
13 #ifndef ORDO_BLOCK_CIPHERS_H
14 #define ORDO_BLOCK_CIPHERS_H
15 
17 #include "ordo/common/interface.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 /*===----------------------------------------------------------------------===*/
27 
28 #define block_init ordo_block_init
29 #define block_forward ordo_block_forward
30 #define block_inverse ordo_block_inverse
31 #define block_final ordo_block_final
32 #define block_query ordo_block_query
33 #define block_bsize ordo_block_bsize
34 
35 /*===----------------------------------------------------------------------===*/
36 
47 ORDO_PUBLIC
48 int block_init(struct BLOCK_STATE *state,
49  const void *key, size_t key_len,
50  prim_t primitive, const void *params);
51 
59 ORDO_PUBLIC
60 void block_forward(const struct BLOCK_STATE *state,
61  void *block);
62 
70 ORDO_PUBLIC
71 void block_inverse(const struct BLOCK_STATE *state,
72  void *block);
73 
78 ORDO_PUBLIC
79 void block_final(struct BLOCK_STATE *state);
80 
91 ORDO_PUBLIC
92 size_t block_query(prim_t primitive,
93  int query, size_t value);
94 
101 ORDO_PUBLIC
102 size_t block_bsize(void);
103 
104 /*===----------------------------------------------------------------------===*/
105 
106 #ifdef __cplusplus
107 }
108 #endif
109 
110 #endif
int prim_t
Data type which holds a primitive identifier.
Definition: identification.h:58
ORDO_PUBLIC int block_init(struct BLOCK_STATE *state, const void *key, size_t key_len, prim_t primitive, const void *params)
Definition: block_ciphers.c:21
ORDO_PUBLIC void block_final(struct BLOCK_STATE *state)
Definition: block_ciphers.c:90
Primitive Parameters.
ORDO_PUBLIC void block_inverse(const struct BLOCK_STATE *state, void *block)
Definition: block_ciphers.c:67
ORDO_PUBLIC size_t block_bsize(void)
Definition: features.c:315
ORDO_PUBLIC size_t block_query(prim_t primitive, int query, size_t value)
Definition: block_ciphers.c:112
ORDO_PUBLIC void block_forward(const struct BLOCK_STATE *state, void *block)
Definition: block_ciphers.c:44