View | Details | Raw Unified | Return to bug 158994
Collapse All | Expand All

(-)security/libgcrypt/files/patch-cipher-rijndael.c (+61 lines)
Added Link Here
1
--- cipher/rijndael.c.orig	2011-02-22 15:57:59.000000000 +0100
2
+++ cipher/rijndael.c	2011-07-16 22:26:35.000000000 +0200
3
@@ -844,13 +844,13 @@ do_aesni_cfb (const RIJNDAEL_context *ct
4
                 "movdqa 0x90(%%esi), %%xmm1\n\t"
5
                 aesenc_xmm1_xmm0
6
                 "movdqa 0xa0(%%esi), %%xmm1\n\t"
7
-                "cmp $10, %[rounds]\n\t"
8
+                "cmpq $10, %[rounds]\n\t"
9
                 "jz .Lenclast%=\n\t"
10
                 aesenc_xmm1_xmm0
11
                 "movdqa 0xb0(%%esi), %%xmm1\n\t"
12
                 aesenc_xmm1_xmm0
13
                 "movdqa 0xc0(%%esi), %%xmm1\n\t"
14
-                "cmp $12, %[rounds]\n\t"
15
+                "cmpq $12, %[rounds]\n\t"
16
                 "jz .Lenclast%=\n\t"
17
                 aesenc_xmm1_xmm0
18
                 "movdqa 0xd0(%%esi), %%xmm1\n\t"
19
@@ -862,7 +862,7 @@ do_aesni_cfb (const RIJNDAEL_context *ct
20
                 "movdqu %[src], %%xmm1\n\t"      /* Save input.  */
21
                 "pxor %%xmm1, %%xmm0\n\t"        /* xmm0 = input ^ IV  */
22
 
23
-                "cmp $1, %[decrypt]\n\t"
24
+                "cmpq $1, %[decrypt]\n\t"
25
                 "jz .Ldecrypt_%=\n\t"
26
                 "movdqa %%xmm0, %[iv]\n\t"       /* [encrypt] Store IV.  */
27
                 "jmp .Lleave_%=\n"
28
@@ -923,13 +923,13 @@ do_aesni_ctr (const RIJNDAEL_context *ct
29
                 "movdqa 0x90(%%esi), %%xmm1\n\t"
30
                 aesenc_xmm1_xmm0
31
                 "movdqa 0xa0(%%esi), %%xmm1\n\t"
32
-                "cmp $10, %[rounds]\n\t"
33
+                "cmpq $10, %[rounds]\n\t"
34
                 "jz .Lenclast%=\n\t"
35
                 aesenc_xmm1_xmm0
36
                 "movdqa 0xb0(%%esi), %%xmm1\n\t"
37
                 aesenc_xmm1_xmm0
38
                 "movdqa 0xc0(%%esi), %%xmm1\n\t"
39
-                "cmp $12, %[rounds]\n\t"
40
+                "cmpq $12, %[rounds]\n\t"
41
                 "jz .Lenclast%=\n\t"
42
                 aesenc_xmm1_xmm0
43
                 "movdqa 0xd0(%%esi), %%xmm1\n\t"
44
@@ -1050,7 +1050,7 @@ do_aesni_ctr_4 (const RIJNDAEL_context *
45
                 aesenc_xmm1_xmm3
46
                 aesenc_xmm1_xmm4
47
                 "movdqa 0xa0(%%esi), %%xmm1\n\t"
48
-                "cmp $10, %[rounds]\n\t"
49
+                "cmpq $10, %[rounds]\n\t"
50
                 "jz .Lenclast%=\n\t"
51
                 aesenc_xmm1_xmm0
52
                 aesenc_xmm1_xmm2
53
@@ -1062,7 +1062,7 @@ do_aesni_ctr_4 (const RIJNDAEL_context *
54
                 aesenc_xmm1_xmm3
55
                 aesenc_xmm1_xmm4
56
                 "movdqa 0xc0(%%esi), %%xmm1\n\t"
57
-                "cmp $12, %[rounds]\n\t"
58
+                "cmpq $12, %[rounds]\n\t"
59
                 "jz .Lenclast%=\n\t"
60
                 aesenc_xmm1_xmm0
61
                 aesenc_xmm1_xmm2

Return to bug 158994