mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-22 23:18:55 +00:00
Update oaes_lib.c
1. Moved structs oaes_ctx and oaes_key into oeas_lib header.
This commit is contained in:
parent
98e0326596
commit
e4f7b92ff9
@ -64,30 +64,6 @@ static const char _NR[] = {
|
|||||||
# define min(a,b) (((a)<(b)) ? (a) : (b))
|
# define min(a,b) (((a)<(b)) ? (a) : (b))
|
||||||
#endif /* min */
|
#endif /* min */
|
||||||
|
|
||||||
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;
|
|
||||||
|
|
||||||
// "OAES<8-bit header version><8-bit type><16-bit options><8-bit flags><56-bit reserved>"
|
// "OAES<8-bit header version><8-bit type><16-bit options><8-bit flags><56-bit reserved>"
|
||||||
static uint8_t oaes_header[OAES_BLOCK_SIZE] = {
|
static uint8_t oaes_header[OAES_BLOCK_SIZE] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user