• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/crypto/

Lines Matching defs:wctx

777 static void wp512_process_buffer(struct wp512_ctx *wctx) {
783 const __be64 *buffer = (const __be64 *)wctx->buffer;
788 state[0] = block[0] ^ (K[0] = wctx->hash[0]);
789 state[1] = block[1] ^ (K[1] = wctx->hash[1]);
790 state[2] = block[2] ^ (K[2] = wctx->hash[2]);
791 state[3] = block[3] ^ (K[3] = wctx->hash[3]);
792 state[4] = block[4] ^ (K[4] = wctx->hash[4]);
793 state[5] = block[5] ^ (K[5] = wctx->hash[5]);
794 state[6] = block[6] ^ (K[6] = wctx->hash[6]);
795 state[7] = block[7] ^ (K[7] = wctx->hash[7]);
973 wctx->hash[0] ^= state[0] ^ block[0];
974 wctx->hash[1] ^= state[1] ^ block[1];
975 wctx->hash[2] ^= state[2] ^ block[2];
976 wctx->hash[3] ^= state[3] ^ block[3];
977 wctx->hash[4] ^= state[4] ^ block[4];
978 wctx->hash[5] ^= state[5] ^ block[5];
979 wctx->hash[6] ^= state[6] ^ block[6];
980 wctx->hash[7] ^= state[7] ^ block[7];
985 struct wp512_ctx *wctx = crypto_tfm_ctx(tfm);
988 memset(wctx->bitLength, 0, 32);
989 wctx->bufferBits = wctx->bufferPos = 0;
990 wctx->buffer[0] = 0;
992 wctx->hash[i] = 0L;
999 struct wp512_ctx *wctx = crypto_tfm_ctx(tfm);
1003 int bufferRem = wctx->bufferBits & 7;
1006 u8 *buffer = wctx->buffer;
1007 u8 *bitLength = wctx->bitLength;
1008 int bufferBits = wctx->bufferBits;
1009 int bufferPos = wctx->bufferPos;
1024 wp512_process_buffer(wctx);
1045 wp512_process_buffer(wctx);
1052 wctx->bufferBits = bufferBits;
1053 wctx->bufferPos = bufferPos;
1059 struct wp512_ctx *wctx = crypto_tfm_ctx(tfm);
1061 u8 *buffer = wctx->buffer;
1062 u8 *bitLength = wctx->bitLength;
1063 int bufferBits = wctx->bufferBits;
1064 int bufferPos = wctx->bufferPos;
1073 wp512_process_buffer(wctx);
1083 wp512_process_buffer(wctx);
1085 digest[i] = cpu_to_be64(wctx->hash[i]);
1086 wctx->bufferBits = bufferBits;
1087 wctx->bufferPos = bufferPos;