Changes from stable branch.
authorDr. Stephen Henson <steve@openssl.org>
Mon, 15 Sep 2008 22:45:13 +0000 (22:45 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 15 Sep 2008 22:45:13 +0000 (22:45 +0000)
crypto/rc4/asm/rc4-ia64.S
crypto/rc4/rc4_skey.c

index a322d0c718e50f14c99e6ea666311b7d3524edd1..8210c47d049d352bedaef4c70ca0a17f9bd7b2d9 100644 (file)
@@ -75,14 +75,13 @@ yy=r31;
 .skip  16
 RC4:
        .prologue
-       .fframe 0
        .save   ar.pfs,r2
-       .save   ar.lc,r3
-       .save   pr,prsave
 { .mii;        alloc   r2=ar.pfs,4,12,0,16
+       .save   pr,prsave
        mov     prsave=pr
        ADDP    key=0,in0               };;
 { .mib;        cmp.eq  p6,p0=0,in1                     // len==0?
+       .save   ar.lc,r3
        mov     r3=ar.lc
 (p6)   br.ret.spnt.many        b0      };;     // emergency exit
 
index 27bd33a189e3b6692ad2ea4f7cb0498449fdbebf..4478d1a4b3b3c29c5feab44c744386cfabd1adbc 100644 (file)
@@ -128,11 +128,12 @@ void RC4_set_key(RC4_KEY *key, int len, const unsigned char *data)
                 * implementations suffer from significant performance
                 * losses then, e.g. PIII exhibits >2x deterioration,
                 * and so does Opteron. In order to assure optimal
-                * all-round performance, let us [try to] detect P4 at
-                * run-time by checking upon HTT bit in CPU capability
+                * all-round performance, we detect P4 at run-time by
+                * checking upon reserved bit 20 in CPU capability
                 * vector and set up compressed key schedule, which is
                 * recognized by correspondingly updated assembler
-                * module...
+                * module... Bit 20 is set up by OPENSSL_ia32_cpuid.
+                *
                 *                              <appro@fy.chalmers.se>
                 */
 #ifdef OPENSSL_FIPS