Ordo  0.3.4
Symmetric Cryptography Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
cfb.h
Go to the documentation of this file.
1 /*===-- enc/block_modes/cfb.h --------------------------*- PUBLIC -*- H -*-===*/
19 /*===----------------------------------------------------------------------===*/
20 
21 #ifndef ORDO_CFB_MODE_H
22 #define ORDO_CFB_MODE_H
23 
25 #include "ordo/common/interface.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 /*===----------------------------------------------------------------------===*/
35 
36 #define cfb_init ordo_cfb_init
37 #define cfb_update ordo_cfb_update
38 #define cfb_final ordo_cfb_final
39 #define cfb_query ordo_cfb_query
40 #define cfb_bsize ordo_cfb_bsize
41 
42 /*===----------------------------------------------------------------------===*/
43 
46 ORDO_PUBLIC
47 int cfb_init(struct CFB_STATE *state,
48  struct BLOCK_STATE *cipher_state,
49  const void *iv, size_t iv_len,
50  int dir,
51  const void *params);
52 
55 ORDO_PUBLIC
56 void cfb_update(struct CFB_STATE *state,
57  struct BLOCK_STATE *cipher_state,
58  const void *in, size_t in_len,
59  void *out, size_t *out_len);
60 
63 ORDO_PUBLIC
64 int cfb_final(struct CFB_STATE *state,
65  struct BLOCK_STATE *cipher_state,
66  void *out, size_t *out_len);
67 
70 ORDO_PUBLIC
71 size_t cfb_query(prim_t cipher,
72  int query, size_t value);
73 
80 ORDO_PUBLIC
81 size_t cfb_bsize(void);
82 
83 /*===----------------------------------------------------------------------===*/
84 
85 #ifdef __cplusplus
86 }
87 #endif
88 
89 #endif
int prim_t
Data type which holds a primitive identifier.
Definition: identification.h:58
ORDO_PUBLIC void cfb_update(struct CFB_STATE *state, struct BLOCK_STATE *cipher_state, const void *in, size_t in_len, void *out, size_t *out_len)
Definition: cfb.c:111
ORDO_PUBLIC size_t cfb_bsize(void)
ORDO_PUBLIC int cfb_final(struct CFB_STATE *state, struct BLOCK_STATE *cipher_state, void *out, size_t *out_len)
Definition: cfb.c:121
ORDO_PUBLIC int cfb_init(struct CFB_STATE *state, struct BLOCK_STATE *cipher_state, const void *iv, size_t iv_len, int dir, const void *params)
Definition: cfb.c:24
ORDO_PUBLIC size_t cfb_query(prim_t cipher, int query, size_t value)
Abstraction Layer.