Lines Matching refs:wctx
782 static void wp512_process_buffer(struct wp512_ctx *wctx) { in wp512_process_buffer() argument
788 const __be64 *buffer = (const __be64 *)wctx->buffer; in wp512_process_buffer()
793 state[0] = block[0] ^ (K[0] = wctx->hash[0]); in wp512_process_buffer()
794 state[1] = block[1] ^ (K[1] = wctx->hash[1]); in wp512_process_buffer()
795 state[2] = block[2] ^ (K[2] = wctx->hash[2]); in wp512_process_buffer()
796 state[3] = block[3] ^ (K[3] = wctx->hash[3]); in wp512_process_buffer()
797 state[4] = block[4] ^ (K[4] = wctx->hash[4]); in wp512_process_buffer()
798 state[5] = block[5] ^ (K[5] = wctx->hash[5]); in wp512_process_buffer()
799 state[6] = block[6] ^ (K[6] = wctx->hash[6]); in wp512_process_buffer()
800 state[7] = block[7] ^ (K[7] = wctx->hash[7]); in wp512_process_buffer()
978 wctx->hash[0] ^= state[0] ^ block[0]; in wp512_process_buffer()
979 wctx->hash[1] ^= state[1] ^ block[1]; in wp512_process_buffer()
980 wctx->hash[2] ^= state[2] ^ block[2]; in wp512_process_buffer()
981 wctx->hash[3] ^= state[3] ^ block[3]; in wp512_process_buffer()
982 wctx->hash[4] ^= state[4] ^ block[4]; in wp512_process_buffer()
983 wctx->hash[5] ^= state[5] ^ block[5]; in wp512_process_buffer()
984 wctx->hash[6] ^= state[6] ^ block[6]; in wp512_process_buffer()
985 wctx->hash[7] ^= state[7] ^ block[7]; in wp512_process_buffer()
990 struct wp512_ctx *wctx = shash_desc_ctx(desc); in wp512_init() local
993 memset(wctx->bitLength, 0, 32); in wp512_init()
994 wctx->bufferBits = wctx->bufferPos = 0; in wp512_init()
995 wctx->buffer[0] = 0; in wp512_init()
997 wctx->hash[i] = 0L; in wp512_init()
1006 struct wp512_ctx *wctx = shash_desc_ctx(desc); in wp512_update() local
1010 int bufferRem = wctx->bufferBits & 7; in wp512_update()
1013 u8 *buffer = wctx->buffer; in wp512_update()
1014 u8 *bitLength = wctx->bitLength; in wp512_update()
1015 int bufferBits = wctx->bufferBits; in wp512_update()
1016 int bufferPos = wctx->bufferPos; in wp512_update()
1031 wp512_process_buffer(wctx); in wp512_update()
1052 wp512_process_buffer(wctx); in wp512_update()
1059 wctx->bufferBits = bufferBits; in wp512_update()
1060 wctx->bufferPos = bufferPos; in wp512_update()
1067 struct wp512_ctx *wctx = shash_desc_ctx(desc); in wp512_final() local
1069 u8 *buffer = wctx->buffer; in wp512_final()
1070 u8 *bitLength = wctx->bitLength; in wp512_final()
1071 int bufferBits = wctx->bufferBits; in wp512_final()
1072 int bufferPos = wctx->bufferPos; in wp512_final()
1081 wp512_process_buffer(wctx); in wp512_final()
1091 wp512_process_buffer(wctx); in wp512_final()
1093 digest[i] = cpu_to_be64(wctx->hash[i]); in wp512_final()
1094 wctx->bufferBits = bufferBits; in wp512_final()
1095 wctx->bufferPos = bufferPos; in wp512_final()