| #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) |
| { |
{ |
| /* 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; */ |