Lines Matching refs:RTSHA1_BLOCK_SIZE
32 #define RTSHA1_BLOCK_SIZE 64U
122 memcpy(puW, puSrc, RTSHA1_BLOCK_SIZE);
378 size_t cbBuffered = (size_t)pCtx->AltPrivate.cbMessage & (RTSHA1_BLOCK_SIZE - 1U);
381 size_t cbMissing = RTSHA1_BLOCK_SIZE - cbBuffered;
405 while (cbBuf >= RTSHA1_BLOCK_SIZE)
410 pCtx->AltPrivate.cbMessage += RTSHA1_BLOCK_SIZE;
411 pbBuf += RTSHA1_BLOCK_SIZE;
412 cbBuf -= RTSHA1_BLOCK_SIZE;
420 while (cbBuf >= RTSHA1_BLOCK_SIZE)
422 memcpy((uint8_t *)&pCtx->AltPrivate.auW[0], pbBuf, RTSHA1_BLOCK_SIZE);
426 pCtx->AltPrivate.cbMessage += RTSHA1_BLOCK_SIZE;
427 pbBuf += RTSHA1_BLOCK_SIZE;
428 cbBuf -= RTSHA1_BLOCK_SIZE;
454 unsigned cbMissing = RTSHA1_BLOCK_SIZE - ((unsigned)pCtx->AltPrivate.cbMessage & (RTSHA1_BLOCK_SIZE - 1U));
462 unsigned cbBuffered = (unsigned)pCtx->AltPrivate.cbMessage & (RTSHA1_BLOCK_SIZE - 1U);
463 cbMissing = RTSHA1_BLOCK_SIZE - cbBuffered;