Remove swap_blocks() from slow-hash.c
This commit is contained in:
parent
7a3a6739e2
commit
62225805ef
1 changed files with 0 additions and 10 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue