[svn] / ecrypt / trunk / submissions / py / pypy / pypy.c  

svn: ecrypt/trunk/submissions/py/pypy/pypy.c

Diff for /ecrypt/trunk/submissions/py/pypy/pypy.c between version 180 and 181

version 180, Fri Jan 5 17:56:43 2007 UTC version 181, Fri Jan 5 18:06:03 2007 UTC
Line 144 
Line 144 
 #undef P  #undef P
 #undef Y  #undef Y
 #undef EIV  #undef EIV
 #define P(i4,j) (((u8*)(ctx->KPY1))[(i4)+4*(j)])  // access P[i+j] where i4=4*i.  #define P(i4,j) (((u8*)(ctx->KPY1))[(i4)+4*(j)])  /* access P[i+j] where i4=4*i. */
                                            // P is byte 0 of the 4-byte record                                             /* P is byte 0 of the 4-byte record */
 #define EIV(i4,j) (((u8*)(ctx->KPY1))[(i4)+4*(j+256-ivsizeb)+2])  #define EIV(i4,j) (((u8*)(ctx->KPY1))[(i4)+4*(j+256-ivsizeb)+2])
                                            // EIV is byte 2 of the 4-byte record                                             /* EIV is byte 2 of the 4-byte record */
                                            // access EIV[i+j] where i4=4*i.                                             /* access EIV[i+j] where i4=4*i. */
 #define Y(i4,j) (((u32*)&(((u8*)(ctx->KPY0))[(i4)+4*((j)-(YMININD))]))[0])  #define Y(i4,j) (((u32*)&(((u8*)(ctx->KPY0))[(i4)+4*((j)-(YMININD))]))[0])
                                            // access Y[i+j] where i4=4*i.                                             /* access Y[i+j] where i4=4*i. */
   
   for(i=0; i<PYSIZE*4; i+=4)    for(i=0; i<PYSIZE*4; i+=4)
     {      {
Line 189 
Line 189 
 /* NUMBLOCKSATONCE*4 bytes, if possible                      */  /* NUMBLOCKSATONCE*4 bytes, if possible                      */
   
 static u32 PY[2][(NUMBLOCKSATONCE+PYSIZE)];  static u32 PY[2][(NUMBLOCKSATONCE+PYSIZE)];
 #define P(i4,j) (((u8*)(PY[1]))[(i4)+4*(j)])  // access P[i+j] where i4=4*i.  #define P(i4,j) (((u8*)(PY[1]))[(i4)+4*(j)])  /* access P[i+j] where i4=4*i. */
                                            // P is byte 0 of the 4-byte record                                             /* P is byte 0 of the 4-byte record */
 #define Y(i4,j) (((u32*)&((((u8*)(PY[0])))[(i4)+4*((j)-(YMININD))]))[0])  #define Y(i4,j) (((u32*)&((((u8*)(PY[0])))[(i4)+4*((j)-(YMININD))]))[0])
                                            // access Y[i+j] where i4=4*i.                                             /* access Y[i+j] where i4=4*i. */
   
 void ECRYPT_process_bytes(  void ECRYPT_process_bytes(
   int action,                 /* 0 = encrypt; 1 = decrypt; */    int action,                 /* 0 = encrypt; 1 = decrypt; */


Generate output suitable for use with a patch program
Legend:
Removed from v.180  
changed lines
  Added in v.181

eSTREAM Project

Powered by ViewCVS 1.0-dev
(Powered by Apache)

ViewCVS and CVS Help