[git] GCRYPT - branch, master, updated. libgcrypt-1.5.0-373-g60ed0ab
by Jussi Kivilinna
cvs at cvs.gnupg.org
Sat Nov 9 20:05:08 CET 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU crypto library".
The branch, master has been updated
via 60ed0abbbc7cb15812f1e713143c72555acea69e (commit)
from 03aed1acec611362285db5156a6b92c91604fba4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 60ed0abbbc7cb15812f1e713143c72555acea69e
Author: Jussi Kivilinna <jussi.kivilinna at iki.fi>
Date: Sat Nov 9 21:04:14 2013 +0200
Fix tail handling for AES-NI counter mode
* cipher/rijndael.c (do_aesni_ctr): Fix outputting of updated
counter-IV.
--
Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
diff --git a/cipher/rijndael.c b/cipher/rijndael.c
index cbdbbd8..b5a3d10 100644
--- a/cipher/rijndael.c
+++ b/cipher/rijndael.c
@@ -1369,13 +1369,12 @@ do_aesni_ctr (const RIJNDAEL_context *ctx,
#define aesenc_xmm1_xmm0 ".byte 0x66, 0x0f, 0x38, 0xdc, 0xc1\n\t"
#define aesenclast_xmm1_xmm0 ".byte 0x66, 0x0f, 0x38, 0xdd, 0xc1\n\t"
- asm volatile ("movdqa %%xmm5, %%xmm0\n\t" /* xmm0, xmm2 := CTR (xmm5) */
- "movdqa %%xmm0, %%xmm2\n\t"
+ asm volatile ("movdqa %%xmm5, %%xmm0\n\t" /* xmm0 := CTR (xmm5) */
"pcmpeqd %%xmm1, %%xmm1\n\t"
"psrldq $8, %%xmm1\n\t" /* xmm1 = -1 */
- "pshufb %%xmm6, %%xmm2\n\t"
- "psubq %%xmm1, %%xmm2\n\t" /* xmm2++ (big endian) */
+ "pshufb %%xmm6, %%xmm5\n\t"
+ "psubq %%xmm1, %%xmm5\n\t" /* xmm5++ (big endian) */
/* detect if 64-bit carry handling is needed */
"cmpl $0xffffffff, 8(%[ctr])\n\t"
@@ -1384,12 +1383,12 @@ do_aesni_ctr (const RIJNDAEL_context *ctx,
"jne .Lno_carry%=\n\t"
"pslldq $8, %%xmm1\n\t" /* move lower 64-bit to high */
- "psubq %%xmm1, %%xmm2\n\t" /* add carry to upper 64bits */
+ "psubq %%xmm1, %%xmm5\n\t" /* add carry to upper 64bits */
".Lno_carry%=:\n\t"
- "pshufb %%xmm6, %%xmm2\n\t"
- "movdqa %%xmm2, (%[ctr])\n\t" /* Update CTR (mem). */
+ "pshufb %%xmm6, %%xmm5\n\t"
+ "movdqa %%xmm5, (%[ctr])\n\t" /* Update CTR (mem). */
"pxor (%[key]), %%xmm0\n\t" /* xmm1 ^= key[0] */
"movdqa 0x10(%[key]), %%xmm1\n\t"
-----------------------------------------------------------------------
Summary of changes:
cipher/rijndael.c | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
hooks/post-receive
--
The GNU crypto library
http://git.gnupg.org
_______________________________________________
Gnupg-commits mailing list
Gnupg-commits at gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-commits
More information about the Gcrypt-devel
mailing list