From 93759b048f9bb0ea7682d80dac72346ad373445f Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Mon, 30 Dec 2013 19:20:06 +0100 Subject: [PATCH] Made AES-NI bit-size specific key expansion functions static --- library/aesni.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/library/aesni.c b/library/aesni.c index 2cf18ca71..aa054cbf6 100644 --- a/library/aesni.c +++ b/library/aesni.c @@ -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"