Skip to content

Commit

Permalink
Specify register clobbers in mbedtls_aesni_crypt_ecb()
Browse files Browse the repository at this point in the history
Signed-off-by: Solar Designer <[email protected]>
  • Loading branch information
solardiz committed Dec 13, 2024
1 parent 9b1ec06 commit 4115440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/aesni.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ int mbedtls_aesni_crypt_ecb(mbedtls_aes_context *ctx,
"movdqu %%xmm0, (%4) \n\t" // export output
:
: "r" (ctx->nr), "r" (ctx->rk), "r" (mode), "r" (input), "r" (output)
: "memory", "cc", "xmm0", "xmm1");
: "memory", "cc", "xmm0", "xmm1", "0", "1");


return 0;
Expand Down

0 comments on commit 4115440

Please sign in to comment.