21 #ifndef ORDO_OFB_MODE_H
22 #define ORDO_OFB_MODE_H
36 #define ofb_init ordo_ofb_init
37 #define ofb_update ordo_ofb_update
38 #define ofb_final ordo_ofb_final
39 #define ofb_query ordo_ofb_query
40 #define ofb_bsize ordo_ofb_bsize
47 int ofb_init(
struct OFB_STATE *state,
48 struct BLOCK_STATE *cipher_state,
49 const void *iv,
size_t iv_len,
57 struct BLOCK_STATE *cipher_state,
58 const void *in,
size_t in_len,
59 void *out,
size_t *out_len);
65 struct BLOCK_STATE *cipher_state,
66 void *out,
size_t *out_len);
72 int query,
size_t value);
int prim_t
Data type which holds a primitive identifier.
Definition: identification.h:58
ORDO_PUBLIC size_t ofb_bsize(void)
ORDO_PUBLIC int ofb_init(struct OFB_STATE *state, struct BLOCK_STATE *cipher_state, const void *iv, size_t iv_len, int dir, const void *params)
Definition: ofb.c:22
ORDO_PUBLIC void ofb_update(struct OFB_STATE *state, struct BLOCK_STATE *cipher_state, const void *in, size_t in_len, void *out, size_t *out_len)
Definition: ofb.c:43
ORDO_PUBLIC int ofb_final(struct OFB_STATE *state, struct BLOCK_STATE *cipher_state, void *out, size_t *out_len)
Definition: ofb.c:74
ORDO_PUBLIC size_t ofb_query(prim_t cipher, int query, size_t value)