Skip to content

Commit

Permalink
Remove swap_blocks() from slow-hash.c
Browse files Browse the repository at this point in the history
  • Loading branch information
OracionSeis committed May 20, 2014
1 parent 7a3a673 commit 6222580
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/crypto/slow-hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,6 @@ static void copy_block(uint8_t* dst, const uint8_t* src) {
((uint64_t*)dst)[1] = ((uint64_t*)src)[1];
}

static void swap_blocks(uint8_t* a, uint8_t* b) {
size_t i;
uint8_t t;
for (i = 0; i < AES_BLOCK_SIZE; i++) {
t = a[i];
a[i] = b[i];
b[i] = t;
}
}

static void xor_blocks(uint8_t* a, const uint8_t* b) {
((uint64_t*)a)[0] ^= ((uint64_t*)b)[0];
((uint64_t*)a)[1] ^= ((uint64_t*)b)[1];
Expand Down

0 comments on commit 6222580

Please sign in to comment.