mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-04-17 06:41:42 +00:00
Fix bug in Via Padlock support
Backport of cf201201
from the 1.3 branch
This commit is contained in:
parent
7e82884811
commit
cd7d24d464
|
@ -7,6 +7,7 @@ Security
|
|||
crash it remotely (found by Caj Larsson).
|
||||
|
||||
Bugfix
|
||||
* Fix bug in Via Padlock support (found by Nikos Mavrogiannopoulos).
|
||||
* Fix hardclock() (only used in the benchmarking program) with some
|
||||
versions of mingw64 (found by kxjhlele).
|
||||
* Fix warnings from mingw64 in timing.c (found by kxjklele).
|
||||
|
|
|
@ -98,7 +98,7 @@ int padlock_xcryptecb( aes_context *ctx,
|
|||
"movl %1, %%ebx \n\t"
|
||||
: "=m" (ebx)
|
||||
: "m" (ebx), "m" (ctrl), "m" (rk), "m" (blk)
|
||||
: "ecx", "edx", "esi", "edi" );
|
||||
: "memory", "ecx", "edx", "esi", "edi" );
|
||||
|
||||
memcpy( output, blk, 16 );
|
||||
|
||||
|
@ -149,7 +149,7 @@ int padlock_xcryptcbc( aes_context *ctx,
|
|||
: "=m" (ebx)
|
||||
: "m" (ebx), "m" (count), "m" (ctrl),
|
||||
"m" (rk), "m" (input), "m" (output), "m" (iw)
|
||||
: "eax", "ecx", "edx", "esi", "edi" );
|
||||
: "memory", "eax", "ecx", "edx", "esi", "edi" );
|
||||
|
||||
memcpy( iv, iw, 16 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue