Searched refs:wctx (Results 1 - 1 of 1) sorted by relevance

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

Completed in 58 milliseconds