mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Update oaes_lib.h
1. Moved structs oaes_ctx and oaes_key into oeas_lib header.
This commit is contained in:
parent
e41c808d8d
commit
98e0326596
1 changed files with 26 additions and 0 deletions
|
@ -101,6 +101,32 @@ typedef int ( * oaes_step_cb ) (
|
||||||
|
|
||||||
typedef uint16_t OAES_OPTION;
|
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:
|
* // usage:
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue