Lines Matching refs:bytes_have
635 unsigned int bytes_have; /**< Number of bytes in the context buffer */ in MHDx_sha512_256_update() local
647 bytes_have = (unsigned int) (ctx->count & (CURL_SHA512_256_BLOCK_SIZE - 1)); in MHDx_sha512_256_update()
654 if(0 != bytes_have) { in MHDx_sha512_256_update()
655 unsigned int bytes_left = CURL_SHA512_256_BLOCK_SIZE - bytes_have; in MHDx_sha512_256_update()
659 memcpy(((unsigned char *) ctx_buf) + bytes_have, in MHDx_sha512_256_update()
665 bytes_have = 0; in MHDx_sha512_256_update()
680 memcpy(((unsigned char *) ctx_buf) + bytes_have, data, length); in MHDx_sha512_256_update()
713 unsigned int bytes_have; /**< Number of bytes in the context buffer */ in MHDx_sha512_256_finish() local
724 bytes_have = (unsigned int) (ctx->count & (CURL_SHA512_256_BLOCK_SIZE - 1)); in MHDx_sha512_256_finish()
736 ((unsigned char *) ctx_buf)[bytes_have++] = 0x80U; in MHDx_sha512_256_finish()
738 if(CURL_SHA512_256_BLOCK_SIZE - bytes_have < SHA512_256_SIZE_OF_LEN_ADD) { in MHDx_sha512_256_finish()
741 if(bytes_have < CURL_SHA512_256_BLOCK_SIZE) in MHDx_sha512_256_finish()
742 memset(((unsigned char *) ctx_buf) + bytes_have, 0, in MHDx_sha512_256_finish()
743 CURL_SHA512_256_BLOCK_SIZE - bytes_have); in MHDx_sha512_256_finish()
747 bytes_have = 0; in MHDx_sha512_256_finish()
751 memset(((unsigned char *) ctx_buf) + bytes_have, 0, in MHDx_sha512_256_finish()
752 CURL_SHA512_256_BLOCK_SIZE - SHA512_256_SIZE_OF_LEN_ADD - bytes_have); in MHDx_sha512_256_finish()