gnutls-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU gnutls branch, master, updated. gnutls_3_0_3-39-g2f5d348


From: Nikos Mavrogiannopoulos
Subject: [SCM] GNU gnutls branch, master, updated. gnutls_3_0_3-39-g2f5d348
Date: Thu, 29 Sep 2011 22:05:33 +0000

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 "GNU gnutls".

http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=2f5d34846c617823e86246466ae54779badfad76

The branch, master has been updated
       via  2f5d34846c617823e86246466ae54779badfad76 (commit)
      from  6ec8b573d566d1513f0db8f942d4d55d1d2ef9af (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 2f5d34846c617823e86246466ae54779badfad76
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Thu Sep 29 23:50:27 2011 +0200

    movdqa replaced with movaps (C3 doesn't support SSE2 but only SSE)

-----------------------------------------------------------------------

Summary of changes:
 lib/accelerated/intel/aes-padlock.c     |    5 +----
 lib/accelerated/intel/asm/padlock-x86.s |    8 ++++----
 2 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/lib/accelerated/intel/aes-padlock.c 
b/lib/accelerated/intel/aes-padlock.c
index 3332e79..881ab28 100644
--- a/lib/accelerated/intel/aes-padlock.c
+++ b/lib/accelerated/intel/aes-padlock.c
@@ -114,6 +114,7 @@ static int aes_setiv(void *_ctx, const void *iv, size_t 
iv_size)
     pce = ALIGN16(&ctx->expanded_key);
 
     memcpy(pce->iv, iv, 16);
+
     return 0;
 }
 
@@ -128,7 +129,6 @@ padlock_aes_cbc_encrypt(void *_ctx, const void *src, size_t 
src_size,
 
     padlock_cbc_encrypt(dst, src, pce, src_size);
 
-    memcpy(pce->iv, ((unsigned char*)dst)+(src_size-16), 16);
     return 0;
 }
 
@@ -139,13 +139,10 @@ padlock_aes_cbc_decrypt(void *_ctx, const void *src, 
size_t src_size,
 {
     struct padlock_ctx *ctx = _ctx;
     struct padlock_cipher_data *pcd;
-    unsigned char siv[16];
 
     pcd = ALIGN16(&ctx->expanded_key);
 
-    memcpy(siv, ((unsigned char*)src)+(src_size-16), 16);
     padlock_cbc_encrypt(dst, src, pcd, src_size);
-    memcpy(pcd->iv, siv, 16);
 
     return 0;
 }
diff --git a/lib/accelerated/intel/asm/padlock-x86.s 
b/lib/accelerated/intel/asm/padlock-x86.s
index a55c61b..932337a 100644
--- a/lib/accelerated/intel/asm/padlock-x86.s
+++ b/lib/accelerated/intel/asm/padlock-x86.s
@@ -338,8 +338,8 @@ padlock_cbc_encrypt:
        leal    16(%edx),%ebx
        shrl    $4,%ecx
 .byte  243,15,167,208
-       movdqa  (%eax),%xmm0
-       movdqa  %xmm0,-16(%edx)
+       movaps  (%eax),%xmm0
+       movaps  %xmm0,-16(%edx)
        movl    (%ebp),%edi
        movl    12(%ebp),%ebx
        testl   $15,%edi
@@ -374,8 +374,8 @@ padlock_cbc_encrypt:
        leal    16(%edx),%ebx
        shrl    $4,%ecx
 .byte  243,15,167,208
-       movdqa  (%eax),%xmm0
-       movdqa  %xmm0,-16(%edx)
+       movaps  (%eax),%xmm0
+       movaps  %xmm0,-16(%edx)
 .L019cbc_exit:
        movl    $1,%eax
        leal    4(%esp),%esp


hooks/post-receive
-- 
GNU gnutls



reply via email to

[Prev in Thread] Current Thread [Next in Thread]