From 62225805ef1b039b96bb64edfa90c3ba8f397671 Mon Sep 17 00:00:00 2001 From: OracionSeis Date: Tue, 20 May 2014 19:53:20 +0400 Subject: [PATCH] Remove swap_blocks() from slow-hash.c --- src/crypto/slow-hash.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/crypto/slow-hash.c b/src/crypto/slow-hash.c index d90a5ef8..3c0ceae1 100644 --- a/src/crypto/slow-hash.c +++ b/src/crypto/slow-hash.c @@ -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];