Lines Matching refs:bufferPos
42 int bufferPos; member
994 wctx->bufferBits = wctx->bufferPos = 0; in wp512_init()
1016 int bufferPos = wctx->bufferPos; in wp512_update() local
1028 buffer[bufferPos++] |= (u8)(b >> bufferRem); in wp512_update()
1032 bufferBits = bufferPos = 0; in wp512_update()
1034 buffer[bufferPos] = b << (8 - bufferRem); in wp512_update()
1041 buffer[bufferPos] |= b >> bufferRem; in wp512_update()
1048 bufferPos++; in wp512_update()
1053 bufferBits = bufferPos = 0; in wp512_update()
1055 buffer[bufferPos] = b << (8 - bufferRem); in wp512_update()
1060 wctx->bufferPos = bufferPos; in wp512_update()
1072 int bufferPos = wctx->bufferPos; in wp512_final() local
1075 buffer[bufferPos] |= 0x80U >> (bufferBits & 7); in wp512_final()
1076 bufferPos++; in wp512_final()
1077 if (bufferPos > WP512_BLOCK_SIZE - WP512_LENGTHBYTES) { in wp512_final()
1078 if (bufferPos < WP512_BLOCK_SIZE) in wp512_final()
1079 memset(&buffer[bufferPos], 0, WP512_BLOCK_SIZE - bufferPos); in wp512_final()
1081 bufferPos = 0; in wp512_final()
1083 if (bufferPos < WP512_BLOCK_SIZE - WP512_LENGTHBYTES) in wp512_final()
1084 memset(&buffer[bufferPos], 0, in wp512_final()
1085 (WP512_BLOCK_SIZE - WP512_LENGTHBYTES) - bufferPos); in wp512_final()
1086 bufferPos = WP512_BLOCK_SIZE - WP512_LENGTHBYTES; in wp512_final()
1093 wctx->bufferPos = bufferPos; in wp512_final()