Skip to content

Commit

Permalink
init hw symbol clash
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas M. DuBuisson committed Jan 20, 2014
1 parent 85a45c8 commit 59ac1db
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion Benchmark/bench.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import Crypto.Cipher.AES128
import Crypto.Cipher.AES
import Crypto.Classes
import Crypto.Types
import Crypto.Modes (zeroIV)
import Criterion
import Criterion.Main
import System.Entropy
Expand Down
2 changes: 1 addition & 1 deletion cbits/aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ void tmd_aes_initkey(aes_key *key, uint8_t *origkey, uint8_t size)
case 32: key->nbr = 14; key->strength = 2; break;
}
#if defined(ARCH_X86) && defined(WITH_AESNI)
initialize_hw(tmd_initialize_table_ni);
tmd_initialize_hw(tmd_initialize_table_ni);
#endif
init_f _init = GET_INIT(key->strength);
_init(key, origkey, size);
Expand Down
2 changes: 1 addition & 1 deletion cbits/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static void cpuid(uint32_t info, uint32_t *eax, uint32_t *ebx, uint32_t *ecx, ui
}

#ifdef USE_AESNI
void initialize_hw(void (*init_table)(int, int))
void tmd_initialize_hw(void (*init_table)(int, int))
{
static int inited = 0;
if (inited == 0) {
Expand Down
2 changes: 1 addition & 1 deletion cbits/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#endif

#ifdef USE_AESNI
void initialize_hw(void (*init_table)(int, int));
void tmd_initialize_hw(void (*init_table)(int, int));
#else
#define initialize_hw(init_table) (0)
#endif
Expand Down
2 changes: 1 addition & 1 deletion cipher-aes128.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-- documentation, see http://haskell.org/cabal/users-guide/

name: cipher-aes128
version: 0.6.2
version: 0.6.3
synopsis: AES and common modes using AES-NI when available.
description: Cipher-aes128 is an implementation of AES and common modes of operation. It borrows Hanquez's C AES code (see 'cipher-aes') but
is unique due to including compile-time detection of
Expand Down

0 comments on commit 59ac1db

Please sign in to comment.