Skip to content

Commit

Permalink
Update block alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasjones committed May 21, 2014
1 parent 927ecbe commit 7a3e569
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cryptonight.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ static inline void xor_blocks_dst(const uint8_t* a, const uint8_t* b, uint8_t* d
}

struct cryptonight_ctx {
uint8_t long_state[MEMORY] __attribute((aligned(8)));
uint8_t long_state[MEMORY] __attribute((aligned(16)));
union cn_slow_hash_state state;
uint8_t text[INIT_SIZE_BYTE];
uint8_t a[AES_BLOCK_SIZE] __attribute__((aligned(8)));
uint8_t b[AES_BLOCK_SIZE] __attribute__((aligned(8)));
uint8_t c[AES_BLOCK_SIZE] __attribute__((aligned(8)));
uint8_t a[AES_BLOCK_SIZE] __attribute__((aligned(16)));
uint8_t b[AES_BLOCK_SIZE] __attribute__((aligned(16)));
uint8_t c[AES_BLOCK_SIZE] __attribute__((aligned(16)));
oaes_ctx* aes_ctx;
};

Expand Down

0 comments on commit 7a3e569

Please sign in to comment.