aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/oaes_lib.h
diff options
context:
space:
mode:
authorNeozaru <neozaru@mailoo.org>2014-06-01 18:21:30 +0200
committerNeozaru <neozaru@mailoo.org>2014-06-01 18:21:30 +0200
commit8530629e22d88de4c2fd4d7d231b00c65d30100d (patch)
tree0890c9ee74331cd1f27093833718d3cf7eb20d26 /src/crypto/oaes_lib.h
parentsimplewallet returns 0 when no error (diff)
parentMerge branch '0.8.8update' (diff)
downloadmonero-8530629e22d88de4c2fd4d7d231b00c65d30100d.tar.xz
Merge bitmonero@monero-project
Diffstat (limited to 'src/crypto/oaes_lib.h')
-rw-r--r--src/crypto/oaes_lib.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/crypto/oaes_lib.h b/src/crypto/oaes_lib.h
index 16b914c7a..fd1942822 100644
--- a/src/crypto/oaes_lib.h
+++ b/src/crypto/oaes_lib.h
@@ -32,6 +32,7 @@
#define _OAES_LIB_H
#include <stdint.h>
+#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
@@ -101,15 +102,14 @@ typedef int ( * oaes_step_cb ) (
typedef uint16_t OAES_OPTION;
-
typedef struct _oaes_key
{
- size_t data_len;
- uint8_t *data;
- size_t exp_data_len;
- uint8_t *exp_data;
- size_t num_keys;
- size_t key_base;
+ size_t data_len;
+ uint8_t *data;
+ size_t exp_data_len;
+ uint8_t *exp_data;
+ size_t num_keys;
+ size_t key_base;
} oaes_key;
typedef struct _oaes_ctx
@@ -119,14 +119,13 @@ typedef struct _oaes_ctx
#endif // OAES_HAVE_ISAAC
#ifdef OAES_DEBUG
- oaes_step_cb step_cb;
+ oaes_step_cb step_cb;
#endif // OAES_DEBUG
- oaes_key * key;
- OAES_OPTION options;
- uint8_t iv[OAES_BLOCK_SIZE];
+ oaes_key * key;
+ OAES_OPTION options;
+ uint8_t iv[OAES_BLOCK_SIZE];
} oaes_ctx;
-
/*
* // usage:
*