Fix bug in Via Padlock support

This commit is contained in:
Manuel Pégourié-Gonnard 2015-04-02 10:46:55 +01:00
parent 70b8b37b4b
commit cf201201e6
2 changed files with 3 additions and 2 deletions

View File

@ -25,6 +25,7 @@ Features
errors on use of deprecated functions. errors on use of deprecated functions.
Bugfix Bugfix
* Fix bug in Via Padlock support (found by Nikos Mavrogiannopoulos).
* Fix thread safety bug in RSA operations (found by Fredrik Axelsson). * Fix thread safety bug in RSA operations (found by Fredrik Axelsson).
* Fix hardclock() (only used in the benchmarking program) with some * Fix hardclock() (only used in the benchmarking program) with some
versions of mingw64 (found by kxjhlele). versions of mingw64 (found by kxjhlele).

View File

@ -104,7 +104,7 @@ int padlock_xcryptecb( aes_context *ctx,
"movl %1, %%ebx \n\t" "movl %1, %%ebx \n\t"
: "=m" (ebx) : "=m" (ebx)
: "m" (ebx), "m" (ctrl), "m" (rk), "m" (blk) : "m" (ebx), "m" (ctrl), "m" (rk), "m" (blk)
: "ecx", "edx", "esi", "edi" ); : "memory", "ecx", "edx", "esi", "edi" );
memcpy( output, blk, 16 ); memcpy( output, blk, 16 );
@ -155,7 +155,7 @@ int padlock_xcryptcbc( aes_context *ctx,
: "=m" (ebx) : "=m" (ebx)
: "m" (ebx), "m" (count), "m" (ctrl), : "m" (ebx), "m" (count), "m" (ctrl),
"m" (rk), "m" (input), "m" (output), "m" (iw) "m" (rk), "m" (input), "m" (output), "m" (iw)
: "eax", "ecx", "edx", "esi", "edi" ); : "memory", "eax", "ecx", "edx", "esi", "edi" );
memcpy( iv, iw, 16 ); memcpy( iv, iw, 16 );