From 86aaa47b2d1c98bad135d2437c21660ae4cac99a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 10 Jun 2015 05:22:50 +0300 Subject: BE block I/O by default --- src/common.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'src') diff --git a/src/common.c b/src/common.c index fa9def6..c2e7530 100644 --- a/src/common.c +++ b/src/common.c @@ -15,28 +15,28 @@ AesBlockString128 format_aes_block128(AesBlock128* block) { -#if defined LIBAESNI_BE_IO_BY_DEFAULT && LIBAESNI_BE_IO_BY_DEFAULT - return format_aes_block128_be(block); -#else +#if defined AESNI_LE_BLOCK_IO && AESNI_LE_BLOCK_IO return format_aes_block128_le(block); +#else + return format_aes_block128_be(block); #endif } AesBlockString192 format_aes_block192(AesBlock192* block) { -#if defined LIBAESNI_BE_IO_BY_DEFAULT && LIBAESNI_BE_IO_BY_DEFAULT - return format_aes_block192_be(block); -#else +#if defined AESNI_LE_BLOCK_IO && AESNI_LE_BLOCK_IO return format_aes_block192_le(block); +#else + return format_aes_block192_be(block); #endif } AesBlockString256 format_aes_block256(AesBlock256* block) { -#if defined LIBAESNI_BE_IO_BY_DEFAULT && LIBAESNI_BE_IO_BY_DEFAULT - return format_aes_block256_be(block); -#else +#if defined AESNI_LE_BLOCK_IO && AESNI_LE_BLOCK_IO return format_aes_block256_le(block); +#else + return format_aes_block256_be(block); #endif } @@ -271,28 +271,28 @@ void print_aes_block256_be_as_matrix(AesBlock256* block) int parse_aes_block128(AesBlock128* block, const char* src) { -#if defined LIBAESNI_BE_IO_BY_DEFAULT && LIBAESNI_BE_IO_BY_DEFAULT - return parse_aes_block128_be(block, src); -#else +#if defined AESNI_LE_BLOCK_IO && AESNI_LE_BLOCK_IO return parse_aes_block128_le(block, src); +#else + return parse_aes_block128_be(block, src); #endif } int parse_aes_block192(AesBlock192* block, const char* src) { -#if defined LIBAESNI_BE_IO_BY_DEFAULT && LIBAESNI_BE_IO_BY_DEFAULT - return parse_aes_block192_be(block, src); -#else +#if defined AESNI_LE_BLOCK_IO && AESNI_LE_BLOCK_IO return parse_aes_block192_le(block, src); +#else + return parse_aes_block192_be(block, src); #endif } int parse_aes_block256(AesBlock256* block, const char* src) { -#if defined LIBAESNI_BE_IO_BY_DEFAULT && LIBAESNI_BE_IO_BY_DEFAULT - return parse_aes_block256_be(block, src); -#else +#if defined AESNI_LE_BLOCK_IO && AESNI_LE_BLOCK_IO return parse_aes_block256_le(block, src); +#else + return parse_aes_block256_be(block, src); #endif } -- cgit v1.2.3