mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2024-12-26 18:20:21 +00:00
Specify previously missed XMM register clobbers in AES-NI asm blocks
Noticed by Gilles Peskine Co-authored-by: Gilles Peskine <gilles.peskine@arm.com> Signed-off-by: Solar Designer <solar@openwall.com>
This commit is contained in:
parent
0abc1ce1ea
commit
4393dff8ca
@ -679,7 +679,7 @@ static void aesni_setkey_enc_128(unsigned char *rk,
|
||||
AESKEYGENA(xmm0_xmm1, "0x36") "call 1b \n\t"
|
||||
:
|
||||
: "r" (rk), "r" (key)
|
||||
: "memory", "cc", "0");
|
||||
: "memory", "cc", "xmm0", "xmm1", "0");
|
||||
}
|
||||
|
||||
/*
|
||||
@ -737,7 +737,7 @@ static void aesni_setkey_enc_192(unsigned char *rk,
|
||||
|
||||
:
|
||||
: "r" (rk), "r" (key)
|
||||
: "memory", "cc", "0");
|
||||
: "memory", "cc", "xmm0", "xmm1", "xmm2", "0");
|
||||
}
|
||||
#endif /* !MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH */
|
||||
|
||||
@ -805,7 +805,7 @@ static void aesni_setkey_enc_256(unsigned char *rk,
|
||||
AESKEYGENA(xmm1_xmm2, "0x40") "call 1b \n\t"
|
||||
:
|
||||
: "r" (rk), "r" (key)
|
||||
: "memory", "cc", "0");
|
||||
: "memory", "cc", "xmm0", "xmm1", "xmm2", "0");
|
||||
}
|
||||
#endif /* !MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user