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

/linux-4.4.14/crypto/
H A Dwp512.c42 int bufferPos; member in struct:wp512_ctx
994 wctx->bufferBits = wctx->bufferPos = 0; wp512_init()
1016 int bufferPos = wctx->bufferPos; wp512_update() local
1028 buffer[bufferPos++] |= (u8)(b >> bufferRem); wp512_update()
1032 bufferBits = bufferPos = 0; wp512_update()
1034 buffer[bufferPos] = b << (8 - bufferRem); wp512_update()
1041 buffer[bufferPos] |= b >> bufferRem; wp512_update()
1048 bufferPos++; wp512_update()
1053 bufferBits = bufferPos = 0; wp512_update()
1055 buffer[bufferPos] = b << (8 - bufferRem); wp512_update()
1060 wctx->bufferPos = bufferPos; wp512_update()
1072 int bufferPos = wctx->bufferPos; wp512_final() local
1075 buffer[bufferPos] |= 0x80U >> (bufferBits & 7); wp512_final()
1076 bufferPos++; wp512_final()
1077 if (bufferPos > WP512_BLOCK_SIZE - WP512_LENGTHBYTES) { wp512_final()
1078 if (bufferPos < WP512_BLOCK_SIZE) { wp512_final()
1079 memset(&buffer[bufferPos], 0, WP512_BLOCK_SIZE - bufferPos); wp512_final()
1082 bufferPos = 0; wp512_final()
1084 if (bufferPos < WP512_BLOCK_SIZE - WP512_LENGTHBYTES) { wp512_final()
1085 memset(&buffer[bufferPos], 0, wp512_final()
1086 (WP512_BLOCK_SIZE - WP512_LENGTHBYTES) - bufferPos); wp512_final()
1088 bufferPos = WP512_BLOCK_SIZE - WP512_LENGTHBYTES; wp512_final()
1095 wctx->bufferPos = bufferPos; wp512_final()

Completed in 40 milliseconds