Searched refs:bufferPos (Results 1 – 1 of 1) sorted by relevance
1030 unsigned int bufferPos, u8 *out) in wp512_finup() argument1038 wp512_add_length(bitLength, bufferPos * 8); in wp512_finup()1039 memcpy(buffer, src, bufferPos); in wp512_finup()1040 buffer[bufferPos] = 0x80U; in wp512_finup()1041 bufferPos++; in wp512_finup()1042 if (bufferPos > WP512_BLOCK_SIZE - WP512_LENGTHBYTES) { in wp512_finup()1043 if (bufferPos < WP512_BLOCK_SIZE) in wp512_finup()1044 memset(&buffer[bufferPos], 0, WP512_BLOCK_SIZE - bufferPos); in wp512_finup()1046 bufferPos = 0; in wp512_finup()1048 if (bufferPos < WP512_BLOCK_SIZE - WP512_LENGTHBYTES) in wp512_finup()[all …]