Home
last modified time | relevance | path

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

/device/google/contexthub/lib/nanohub/
Dsha2.c127 uint32_t bytesToCopy; in sha2processBytes() local
130 bytesToCopy = numBytes; in sha2processBytes()
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()
134 inBytes += bytesToCopy; in sha2processBytes()
135 numBytes -= bytesToCopy; in sha2processBytes()
136 state->bufBytesUsed += bytesToCopy; in sha2processBytes()