Ordo  0.3.4
Symmetric Cryptography Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
nullcipher.h
Go to the documentation of this file.
1 /*===-- primitives/block_ciphers/nullcipher.h ----------*- PUBLIC -*- H -*-===*/
11 /*===----------------------------------------------------------------------===*/
12 
13 #ifndef ORDO_NULLCIPHER_H
14 #define ORDO_NULLCIPHER_H
15 
17 #include "ordo/common/interface.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 /*===----------------------------------------------------------------------===*/
27 
28 #define nullcipher_init ordo_nullcipher_init
29 #define nullcipher_forward ordo_nullcipher_forward
30 #define nullcipher_inverse ordo_nullcipher_inverse
31 #define nullcipher_final ordo_nullcipher_final
32 #define nullcipher_query ordo_nullcipher_query
33 #define nullcipher_bsize ordo_nullcipher_bsize
34 
35 /*===----------------------------------------------------------------------===*/
36 
41 ORDO_PUBLIC
42 int nullcipher_init(struct NULLCIPHER_STATE *state,
43  const void *key, size_t key_len,
44  const void *params);
45 
48 ORDO_PUBLIC
49 void nullcipher_forward(const struct NULLCIPHER_STATE *state,
50  void *block);
51 
54 ORDO_PUBLIC
55 void nullcipher_inverse(const struct NULLCIPHER_STATE *state,
56  void *block);
57 
60 ORDO_PUBLIC
61 void nullcipher_final(struct NULLCIPHER_STATE *state);
62 
65 ORDO_PUBLIC
66 size_t nullcipher_query(int query, size_t value);
67 
74 ORDO_PUBLIC
75 size_t nullcipher_bsize(void);
76 
77 /*===----------------------------------------------------------------------===*/
78 
79 #ifdef __cplusplus
80 }
81 #endif
82 
83 #endif
ORDO_PUBLIC int nullcipher_init(struct NULLCIPHER_STATE *state, const void *key, size_t key_len, const void *params)
Definition: nullcipher.c:20
ORDO_PUBLIC void nullcipher_final(struct NULLCIPHER_STATE *state)
Definition: nullcipher.c:40
ORDO_PUBLIC size_t nullcipher_bsize(void)
Abstraction Layer.
ORDO_PUBLIC size_t nullcipher_query(int query, size_t value)
ORDO_PUBLIC void nullcipher_inverse(const struct NULLCIPHER_STATE *state, void *block)
Definition: nullcipher.c:35
ORDO_PUBLIC void nullcipher_forward(const struct NULLCIPHER_STATE *state, void *block)
Definition: nullcipher.c:30