Remove swap_blocks() from slow-hash.c

This commit is contained in:
OracionSeis 2014-05-20 19:53:20 +04:00
parent 7a3a6739e2
commit 62225805ef

View file

@ -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];