diff options
author | Neozaru <neozaru@mailoo.org> | 2014-05-21 23:51:45 +0200 |
---|---|---|
committer | Neozaru <neozaru@mailoo.org> | 2014-05-21 23:51:45 +0200 |
commit | 7c3783f5b1a955cf55fe184cb622d57aaf2d6477 (patch) | |
tree | bbde755545664b2fad7a5f6fc78a2634822f7dc8 /src/crypto/oaes_lib.h | |
parent | Added 'save_bc' command in daemon for saving blockchain remotely (diff) | |
parent | Update CMakeLists.txt (diff) | |
download | monero-7c3783f5b1a955cf55fe184cb622d57aaf2d6477.tar.xz |
Merge pull request #1 from monero-project/master
Attempting an online merge in my own repo
Diffstat (limited to 'src/crypto/oaes_lib.h')
-rw-r--r-- | src/crypto/oaes_lib.h | 26 |
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: * |