aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNoodleDoodleNoodleDoodleNoodleDoodleNoo <xeven77@outlook.com>2014-05-17 16:20:47 -0700
committerNoodleDoodleNoodleDoodleNoodleDoodleNoo <xeven77@outlook.com>2014-05-17 16:20:47 -0700
commit98e0326596a7e444321c70b5e8b0d410f81a9c99 (patch)
tree87eaf0b9a075c5b143e1bb695d9e26ee701b1812 /src
parentUpdate oaes_config.h (diff)
downloadmonero-98e0326596a7e444321c70b5e8b0d410f81a9c99.tar.xz
Update oaes_lib.h
1. Moved structs oaes_ctx and oaes_key into oeas_lib header.
Diffstat (limited to 'src')
-rw-r--r--src/crypto/oaes_lib.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/crypto/oaes_lib.h b/src/crypto/oaes_lib.h
index 9155bce02..16b914c7a 100644
--- a/src/crypto/oaes_lib.h
+++ b/src/crypto/oaes_lib.h
@@ -101,6 +101,32 @@ 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;
+} oaes_key;
+
+typedef struct _oaes_ctx
+{
+#ifdef OAES_HAVE_ISAAC
+ randctx * rctx;
+#endif // OAES_HAVE_ISAAC
+
+#ifdef OAES_DEBUG
+ oaes_step_cb step_cb;
+#endif // OAES_DEBUG
+
+ oaes_key * key;
+ OAES_OPTION options;
+ uint8_t iv[OAES_BLOCK_SIZE];
+} oaes_ctx;
+
/*
* // usage:
*