• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/crypto/

Lines Matching defs:wctx

776 static void wp512_process_buffer(struct wp512_ctx *wctx) {
782 const __be64 *buffer = (const __be64 *)wctx->buffer;
787 state[0] = block[0] ^ (K[0] = wctx->hash[0]);
788 state[1] = block[1] ^ (K[1] = wctx->hash[1]);
789 state[2] = block[2] ^ (K[2] = wctx->hash[2]);
790 state[3] = block[3] ^ (K[3] = wctx->hash[3]);
791 state[4] = block[4] ^ (K[4] = wctx->hash[4]);
792 state[5] = block[5] ^ (K[5] = wctx->hash[5]);
793 state[6] = block[6] ^ (K[6] = wctx->hash[6]);
794 state[7] = block[7] ^ (K[7] = wctx->hash[7]);
972 wctx->hash[0] ^= state[0] ^ block[0];
973 wctx->hash[1] ^= state[1] ^ block[1];
974 wctx->hash[2] ^= state[2] ^ block[2];
975 wctx->hash[3] ^= state[3] ^ block[3];
976 wctx->hash[4] ^= state[4] ^ block[4];
977 wctx->hash[5] ^= state[5] ^ block[5];
978 wctx->hash[6] ^= state[6] ^ block[6];
979 wctx->hash[7] ^= state[7] ^ block[7];
984 struct wp512_ctx *wctx = shash_desc_ctx(desc);
987 memset(wctx->bitLength, 0, 32);
988 wctx->bufferBits = wctx->bufferPos = 0;
989 wctx->buffer[0] = 0;
991 wctx->hash[i] = 0L;
1000 struct wp512_ctx *wctx = shash_desc_ctx(desc);
1004 int bufferRem = wctx->bufferBits & 7;
1007 u8 *buffer = wctx->buffer;
1008 u8 *bitLength = wctx->bitLength;
1009 int bufferBits = wctx->bufferBits;
1010 int bufferPos = wctx->bufferPos;
1025 wp512_process_buffer(wctx);
1046 wp512_process_buffer(wctx);
1053 wctx->bufferBits = bufferBits;
1054 wctx->bufferPos = bufferPos;
1061 struct wp512_ctx *wctx = shash_desc_ctx(desc);
1063 u8 *buffer = wctx->buffer;
1064 u8 *bitLength = wctx->bitLength;
1065 int bufferBits = wctx->bufferBits;
1066 int bufferPos = wctx->bufferPos;
1075 wp512_process_buffer(wctx);
1085 wp512_process_buffer(wctx);
1087 digest[i] = cpu_to_be64(wctx->hash[i]);
1088 wctx->bufferBits = bufferBits;
1089 wctx->bufferPos = bufferPos;