diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2011-07-21 20:18:45 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2011-07-21 20:18:45 +0000 |
commit | ef5b181f7931deefa2a8ff0c9eb65f752a72d456 (patch) | |
tree | 80bd3d21b89cca86251f320a10542a81ac31fdbe /security/libgcrypt/files | |
parent | 002468203a00a7124126030a165b99849097a593 (diff) | |
download | ports-ef5b181f7931deefa2a8ff0c9eb65f752a72d456.tar.gz ports-ef5b181f7931deefa2a8ff0c9eb65f752a72d456.zip |
Notes
Diffstat (limited to 'security/libgcrypt/files')
-rw-r--r-- | security/libgcrypt/files/patch-cipher-rijndael.c | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/security/libgcrypt/files/patch-cipher-rijndael.c b/security/libgcrypt/files/patch-cipher-rijndael.c new file mode 100644 index 000000000000..2394a29666d6 --- /dev/null +++ b/security/libgcrypt/files/patch-cipher-rijndael.c @@ -0,0 +1,61 @@ +--- cipher/rijndael.c.orig 2011-02-22 15:57:59.000000000 +0100 ++++ cipher/rijndael.c 2011-07-16 22:26:35.000000000 +0200 +@@ -844,13 +844,13 @@ do_aesni_cfb (const RIJNDAEL_context *ct + "movdqa 0x90(%%esi), %%xmm1\n\t" + aesenc_xmm1_xmm0 + "movdqa 0xa0(%%esi), %%xmm1\n\t" +- "cmp $10, %[rounds]\n\t" ++ "cmpq $10, %[rounds]\n\t" + "jz .Lenclast%=\n\t" + aesenc_xmm1_xmm0 + "movdqa 0xb0(%%esi), %%xmm1\n\t" + aesenc_xmm1_xmm0 + "movdqa 0xc0(%%esi), %%xmm1\n\t" +- "cmp $12, %[rounds]\n\t" ++ "cmpq $12, %[rounds]\n\t" + "jz .Lenclast%=\n\t" + aesenc_xmm1_xmm0 + "movdqa 0xd0(%%esi), %%xmm1\n\t" +@@ -862,7 +862,7 @@ do_aesni_cfb (const RIJNDAEL_context *ct + "movdqu %[src], %%xmm1\n\t" /* Save input. */ + "pxor %%xmm1, %%xmm0\n\t" /* xmm0 = input ^ IV */ + +- "cmp $1, %[decrypt]\n\t" ++ "cmpq $1, %[decrypt]\n\t" + "jz .Ldecrypt_%=\n\t" + "movdqa %%xmm0, %[iv]\n\t" /* [encrypt] Store IV. */ + "jmp .Lleave_%=\n" +@@ -923,13 +923,13 @@ do_aesni_ctr (const RIJNDAEL_context *ct + "movdqa 0x90(%%esi), %%xmm1\n\t" + aesenc_xmm1_xmm0 + "movdqa 0xa0(%%esi), %%xmm1\n\t" +- "cmp $10, %[rounds]\n\t" ++ "cmpq $10, %[rounds]\n\t" + "jz .Lenclast%=\n\t" + aesenc_xmm1_xmm0 + "movdqa 0xb0(%%esi), %%xmm1\n\t" + aesenc_xmm1_xmm0 + "movdqa 0xc0(%%esi), %%xmm1\n\t" +- "cmp $12, %[rounds]\n\t" ++ "cmpq $12, %[rounds]\n\t" + "jz .Lenclast%=\n\t" + aesenc_xmm1_xmm0 + "movdqa 0xd0(%%esi), %%xmm1\n\t" +@@ -1050,7 +1050,7 @@ do_aesni_ctr_4 (const RIJNDAEL_context * + aesenc_xmm1_xmm3 + aesenc_xmm1_xmm4 + "movdqa 0xa0(%%esi), %%xmm1\n\t" +- "cmp $10, %[rounds]\n\t" ++ "cmpq $10, %[rounds]\n\t" + "jz .Lenclast%=\n\t" + aesenc_xmm1_xmm0 + aesenc_xmm1_xmm2 +@@ -1062,7 +1062,7 @@ do_aesni_ctr_4 (const RIJNDAEL_context * + aesenc_xmm1_xmm3 + aesenc_xmm1_xmm4 + "movdqa 0xc0(%%esi), %%xmm1\n\t" +- "cmp $12, %[rounds]\n\t" ++ "cmpq $12, %[rounds]\n\t" + "jz .Lenclast%=\n\t" + aesenc_xmm1_xmm0 + aesenc_xmm1_xmm2 |