mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-23 19:21:06 +00:00
Made AES-NI bit-size specific key expansion functions static
This commit is contained in:
parent
caf0e60969
commit
93759b048f
|
@ -240,8 +240,8 @@ void aesni_inverse_key( unsigned char *invkey,
|
||||||
/*
|
/*
|
||||||
* Key expansion, 128-bit case
|
* 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 )
|
const unsigned char *key )
|
||||||
{
|
{
|
||||||
asm( "movdqu (%1), %%xmm0 \n" // copy the original key
|
asm( "movdqu (%1), %%xmm0 \n" // copy the original key
|
||||||
"movdqu %%xmm0, (%0) \n" // as round key 0
|
"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
|
* 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 )
|
const unsigned char *key )
|
||||||
{
|
{
|
||||||
asm( "movdqu (%1), %%xmm0 \n" // copy original round key
|
asm( "movdqu (%1), %%xmm0 \n" // copy original round key
|
||||||
"movdqu %%xmm0, (%0) \n"
|
"movdqu %%xmm0, (%0) \n"
|
||||||
|
@ -347,8 +347,8 @@ void aesni_setkey_enc_192( unsigned char *rk,
|
||||||
/*
|
/*
|
||||||
* Key expansion, 256-bit case
|
* 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 )
|
const unsigned char *key )
|
||||||
{
|
{
|
||||||
asm( "movdqu (%1), %%xmm0 \n"
|
asm( "movdqu (%1), %%xmm0 \n"
|
||||||
"movdqu %%xmm0, (%0) \n"
|
"movdqu %%xmm0, (%0) \n"
|
||||||
|
|
Loading…
Reference in a new issue