[tidy-exports] properly prefix initialize_hw with cryptonite_aesni_

This commit is contained in:
Vincent Hanquez 2015-06-21 15:06:27 +01:00
parent 5812bce10f
commit 03074526d6
3 changed files with 5 additions and 5 deletions

View File

@ -233,7 +233,7 @@ void cryptonite_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(initialize_table_ni);
cryptonite_aesni_initialize_hw(initialize_table_ni);
#endif
init_f _init = GET_INIT(key->strength);
_init(key, origkey, size);

View File

@ -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 cryptonite_aesni_initialize_hw(void (*init_table)(int, int))
{
static int inited = 0;
if (inited == 0) {
@ -69,7 +69,7 @@ void initialize_hw(void (*init_table)(int, int))
}
}
#else
#define initialize_hw(init_table) (0)
#define cryptonite_aesni_initialize_hw(init_table) (0)
#endif
#endif

View File

@ -37,9 +37,9 @@
#endif
#ifdef USE_AESNI
void initialize_hw(void (*init_table)(int, int));
void cryptonite_aesni_initialize_hw(void (*init_table)(int, int));
#else
#define initialize_hw(init_table) (0)
#define cryptonite_aesni_initialize_hw(init_table) (0)
#endif
#endif