List Info

Thread: OpenSSL: OpenSSL_0_9_8-stable: openssl/crypto/aes/ aes_ige.c




OpenSSL: OpenSSL_0_9_8-stable: openssl/crypto/aes/ aes_ige.c
country flaguser name
Germany
2007-08-30 03:11:25
  OpenSSL CVS Repository
  http://cvs.openssl.org/
 
____________________________________________________________
________________

  Server: cvs.openssl.org                  Name:   Andy
Polyakov
  Root:   /v/openssl/cvs                   Email:  approopenssl.org
  Module: openssl                          Date:  
30-Aug-2007 10:11:25
  Branch: OpenSSL_0_9_8-stable             Handle:
2007083009112500

  Modified files:           (Branch: OpenSSL_0_9_8-stable)
    openssl/crypto/aes      aes_ige.c

  Log:
    aes_ige update [from HEAD].

  Summary:
    Revision    Changes     Path
    1.1.2.6     +7  -3      openssl/crypto/aes/aes_ige.c
 
____________________________________________________________
________________

  patch -p0 <<' .'
  Index: openssl/crypto/aes/aes_ige.c
 
============================================================
================
  $ cvs diff -u -r1.1.2.5 -r1.1.2.6 aes_ige.c
  --- openssl/crypto/aes/aes_ige.c	4 Jul 2007 12:56:31
-0000	1.1.2.5
  +++ openssl/crypto/aes/aes_ige.c	30 Aug 2007 08:11:25
-0000	1.1.2.6
   -62,9 +62,11 
   /* XXX: probably some better way to do this */
   #if defined(__i386__) || defined(__x86_64__)
   #define UNALIGNED_MEMOPS_ARE_FAST 1
  +#else
  +#define UNALIGNED_MEMOPS_ARE_FAST 0
   #endif
   
  -#ifdef UNALIGNED_MEMOPS_ARE_FAST
  +#if UNALIGNED_MEMOPS_ARE_FAST
   #define load_block(d, s)        (d) = *(const aes_block_t
*)(s)
   #define store_block(d, s)       *(aes_block_t *)(d) =
(s)
   #else
   -89,7 +91,8 
   
   	if (AES_ENCRYPT == enc)
   		{
  -		if (in != out)
  +		if (in != out &&
  +		    (UNALIGNED_MEMOPS_ARE_FAST ||
((size_t)in|(size_t)out|(size_t)ivec)%sizeof(long)==0))
   			{
   			aes_block_t *ivp = (aes_block_t *)ivec;
   			aes_block_t *iv2p = (aes_block_t *)(ivec +
AES_BLOCK_SIZE);
   -143,7 +146,8 
   		}
   	else
   		{
  -		if(in != out)
  +		if (in != out &&
  +		    (UNALIGNED_MEMOPS_ARE_FAST ||
((size_t)in|(size_t)out|(size_t)ivec)%sizeof(long)==0))
   			{
   			aes_block_t *ivp = (aes_block_t *)ivec;
   			aes_block_t *iv2p = (aes_block_t *)(ivec +
AES_BLOCK_SIZE);
   .
____________________________________________________________
__________
OpenSSL Project                                 http://www.openssl.org
CVS Repository Commit List                    
openssl-cvsopenssl.org
Automated List Manager                          
majordomoopenssl.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )