Made AES-NI bit-size specific key expansion functions static

This commit is contained in:
Paul Bakker 2013-12-30 19:20:06 +01:00
parent caf0e60969
commit 93759b048f

View file

@ -240,7 +240,7 @@ void aesni_inverse_key( unsigned char *invkey,
/*
* Key expansion, 128-bit case
*/
void aesni_setkey_enc_128( unsigned char *rk,
static void aesni_setkey_enc_128( unsigned char *rk,
const unsigned char *key )
{
asm( "movdqu (%1), %%xmm0 \n" // copy the original key
@ -290,7 +290,7 @@ void aesni_setkey_enc_128( unsigned char *rk,
/*
* Key expansion, 192-bit case
*/
void aesni_setkey_enc_192( unsigned char *rk,
static void aesni_setkey_enc_192( unsigned char *rk,
const unsigned char *key )
{
asm( "movdqu (%1), %%xmm0 \n" // copy original round key
@ -347,7 +347,7 @@ void aesni_setkey_enc_192( unsigned char *rk,
/*
* Key expansion, 256-bit case
*/
void aesni_setkey_enc_256( unsigned char *rk,
static void aesni_setkey_enc_256( unsigned char *rk,
const unsigned char *key )
{
asm( "movdqu (%1), %%xmm0 \n"