Home
last modified time | relevance | path

Searched refs:bufBytesUsed (Results 1 – 2 of 2) sorted by relevance

/device/google/contexthub/lib/nanohub/
Dsha2.c32 state->bufBytesUsed = 0; in sha2init()
131 if (bytesToCopy > SHA2_BLOCK_SIZE - state->bufBytesUsed) in sha2processBytes()
132 bytesToCopy = SHA2_BLOCK_SIZE - state->bufBytesUsed; in sha2processBytes()
133 memcpy(state->b + state->bufBytesUsed, inBytes, bytesToCopy); in sha2processBytes()
136 state->bufBytesUsed += bytesToCopy; in sha2processBytes()
139 if (state->bufBytesUsed == SHA2_BLOCK_SIZE) { in sha2processBytes()
141 state->bufBytesUsed = 0; in sha2processBytes()
157 while (state->bufBytesUsed != 56) in sha2finish()
/device/google/contexthub/lib/include/nanohub/
Dsha2.h37 uint8_t bufBytesUsed; member