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