LLVMFuzzerTestOneInput:
   42|    289|extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
   43|       |
   44|    289|  if (!size)
  ------------------
  |  Branch (44:7): [True: 0, False: 289]
  ------------------
   45|      0|    return 0;
   46|       |
   47|    289|  FuzzedDataProvider stream(data, size);
   48|    289|  hash_state *hs;
   49|    289|  if (init(&hs))
  ------------------
  |  |   28|    289|#define init CONCAT_TYPE(_init)
  |  |  ------------------
  |  |  |  |   26|    289|#define CONCAT_TYPE(x) _PASTE2(HASHTYPE, x)
  |  |  |  |  ------------------
  |  |  |  |  |  |   59|    289|#define _PASTE2(x,y) _PASTE(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   58|    289|#define _PASTE(x,y) x##y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (49:7): [True: 0, False: 289]
  ------------------
   50|      0|    return 0;
   51|       |
   52|  1.34k|  while (stream.remaining_bytes()) {
  ------------------
  |  Branch (52:10): [True: 1.19k, False: 150]
  ------------------
   53|  1.19k|    size_t num_bytes = stream.ConsumeIntegral<size_t>();
   54|  1.19k|    std::vector<uint8_t> buffer = stream.ConsumeBytes<uint8_t>(num_bytes);
   55|       |
   56|  1.19k|    if (update(hs, buffer.data(), buffer.size()))
  ------------------
  |  |   29|  1.19k|#define update CONCAT_TYPE(_update)
  |  |  ------------------
  |  |  |  |   26|  1.19k|#define CONCAT_TYPE(x) _PASTE2(HASHTYPE, x)
  |  |  |  |  ------------------
  |  |  |  |  |  |   59|  1.19k|#define _PASTE2(x,y) _PASTE(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   58|  1.19k|#define _PASTE(x,y) x##y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (56:9): [True: 139, False: 1.05k]
  ------------------
   57|    139|      goto error;
   58|  1.19k|  }
   59|       |
   60|    150|  uint8_t result[DIGEST_SIZE];
   61|       |
   62|    150|#ifndef DIGEST_THIRD_PARAM
   63|    150|  digest(hs, result);
  ------------------
  |  |   30|    150|#define digest CONCAT_TYPE(_digest)
  |  |  ------------------
  |  |  |  |   26|    150|#define CONCAT_TYPE(x) _PASTE2(HASHTYPE, x)
  |  |  |  |  ------------------
  |  |  |  |  |  |   59|    150|#define _PASTE2(x,y) _PASTE(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   58|    150|#define _PASTE(x,y) x##y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   64|       |#else
   65|       |  digest(hs, result, DIGEST_SIZE);
   66|       |#endif
   67|       |
   68|    289|error:
   69|    289|  destroy(hs);
  ------------------
  |  |   31|    289|#define destroy CONCAT_TYPE(_destroy)
  |  |  ------------------
  |  |  |  |   26|    289|#define CONCAT_TYPE(x) _PASTE2(HASHTYPE, x)
  |  |  |  |  ------------------
  |  |  |  |  |  |   59|    289|#define _PASTE2(x,y) _PASTE(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   58|    289|#define _PASTE(x,y) x##y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   70|    289|  return 0;
   71|    150|}

_Z8MD5_initPP12t_hash_state:
  204|    289|{
  205|    289|    hash_state *hs;
  206|       |
  207|    289|    if (NULL == mdState) {
  ------------------
  |  Branch (207:9): [True: 0, False: 289]
  ------------------
  208|      0|        return ERR_NULL;
  ------------------
  |  |    5|      0|#define ERR_NULL                1
  ------------------
  209|      0|    }
  210|       |
  211|    289|    *mdState = hs = (hash_state*) calloc(1, sizeof(hash_state));
  212|    289|    if (NULL == hs)
  ------------------
  |  Branch (212:9): [True: 0, False: 289]
  ------------------
  213|      0|        return ERR_MEMORY;
  ------------------
  |  |    6|      0|#define ERR_MEMORY              2
  ------------------
  214|       |
  215|    289|    hs->curlen = 0;
  216|    289|    hs->totbits = 0;
  217|       |
  218|       |    /** Initial intermediate hash value **/
  219|    289|    hs->h[0] = 0x67452301;
  220|    289|    hs->h[1] = 0xefcdab89;
  221|    289|    hs->h[2] = 0x98badcfe;
  222|    289|    hs->h[3] = 0x10325476;
  223|       |
  224|    289|    return 0;
  225|    289|}
_Z11MD5_destroyP12t_hash_state:
  228|    289|{
  229|    289|    free(mdState);
  230|    289|    return 0;
  231|    289|}
_Z10MD5_updateP12t_hash_statePKhm:
  234|  1.19k|{
  235|  1.19k|    if (NULL == hs || NULL == buf) {
  ------------------
  |  Branch (235:9): [True: 0, False: 1.19k]
  |  Branch (235:23): [True: 139, False: 1.05k]
  ------------------
  236|    139|        return ERR_NULL;
  ------------------
  |  |    5|    139|#define ERR_NULL                1
  ------------------
  237|    139|    }
  238|       |
  239|  1.19k|    assert(hs->curlen < BLOCK_SIZE);
  ------------------
  |  Branch (239:5): [True: 1.05k, False: 0]
  ------------------
  240|       |
  241|   346k|    while (len>0) {
  ------------------
  |  Branch (241:12): [True: 345k, False: 1.05k]
  ------------------
  242|   345k|        unsigned left, btc;
  243|       |
  244|   345k|        left = BLOCK_SIZE - hs->curlen;
  ------------------
  |  |   90|   345k|#define BLOCK_SIZE 64
  ------------------
  245|   345k|        btc = (unsigned)MIN(left, len);
  ------------------
  |  |   55|   345k|#define MIN(a,b) ((a)<(b)?(a):(b))
  |  |  ------------------
  |  |  |  Branch (55:19): [True: 344k, False: 1.05k]
  |  |  ------------------
  ------------------
  246|   345k|        memcpy(&hs->buf[hs->curlen], buf, btc);
  247|   345k|        buf += btc;
  248|   345k|        hs->curlen += btc;
  249|   345k|        len -= btc;
  250|       |
  251|   345k|        if (hs->curlen == BLOCK_SIZE) {
  ------------------
  |  |   90|   345k|#define BLOCK_SIZE 64
  ------------------
  |  Branch (251:13): [True: 344k, False: 1.00k]
  ------------------
  252|   344k|            md5_compress(hs);
  253|   344k|            hs->curlen = 0;
  254|   344k|            if (add_bits(hs, BLOCK_SIZE*8)) {
  ------------------
  |  |   90|   344k|#define BLOCK_SIZE 64
  ------------------
  |  Branch (254:17): [True: 0, False: 344k]
  ------------------
  255|      0|                return ERR_MAX_DATA;
  ------------------
  |  |   14|      0|#define ERR_MAX_DATA            10
  ------------------
  256|      0|            }
  257|   344k|        }
  258|   345k|    }
  259|       |
  260|  1.05k|    return 0;
  261|  1.05k|}
_Z10MD5_digestPK12t_hash_statePh:
  306|    150|{
  307|    150|    hash_state temp;
  308|       |
  309|    150|    if (NULL == mdState) {
  ------------------
  |  Branch (309:9): [True: 0, False: 150]
  ------------------
  310|      0|        return ERR_NULL;
  ------------------
  |  |    5|      0|#define ERR_NULL                1
  ------------------
  311|      0|    }
  312|       |
  313|    150|    temp = *mdState;
  314|    150|    md5_finalize(&temp, digest);
  ------------------
  |  |   30|    150|#define digest CONCAT_TYPE(_digest)
  |  |  ------------------
  |  |  |  |   26|    150|#define CONCAT_TYPE(x) _PASTE2(HASHTYPE, x)
  |  |  |  |  ------------------
  |  |  |  |  |  |   59|    150|#define _PASTE2(x,y) _PASTE(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   58|    150|#define _PASTE(x,y) x##y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  315|    150|    return 0;
  316|    150|}
pcd_hash_fuzzer.cc:_ZL12md5_compressP12t_hash_state:
  109|   344k|{
  110|   344k|    uint32_t a, b, c, d;
  111|   344k|    uint32_t x[16];
  112|   344k|    int i;
  113|       |
  114|       |    /** Words flow in in little-endian mode **/
  115|  5.85M|    for (i=0; i<16; i++) {
  ------------------
  |  Branch (115:15): [True: 5.50M, False: 344k]
  ------------------
  116|  5.50M|        x[i] = LOAD_U32_LITTLE(&hs->buf[i*4]);
  ------------------
  |  |   95|  5.50M|#define LOAD_U32_LITTLE(p) load_u8to32_little(p)
  ------------------
  117|  5.50M|    }
  118|       |
  119|   344k|    a = hs->h[0];
  120|   344k|    b = hs->h[1];
  121|   344k|    c = hs->h[2];
  122|   344k|    d = hs->h[3];
  123|       |  
  124|       |	/* Round 1 */
  125|   344k|  	FF (a, b, c, d, x[ 0], S11, 0xd76aa478); /* 1 */
  ------------------
  |  |   49|   344k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   50|   344k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   42|   344k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   51|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   52|   344k| (a) += (b); \
  |  |   53|   344k| }
  ------------------
  126|   344k|  	FF (d, a, b, c, x[ 1], S12, 0xe8c7b756); /* 2 */
  ------------------
  |  |   49|   344k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   50|   344k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   42|   344k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   51|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   52|   344k| (a) += (b); \
  |  |   53|   344k| }
  ------------------
  127|   344k| 	FF (c, d, a, b, x[ 2], S13, 0x242070db); /* 3 */
  ------------------
  |  |   49|   344k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   50|   344k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   42|   344k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   51|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   52|   344k| (a) += (b); \
  |  |   53|   344k| }
  ------------------
  128|   344k|  	FF (b, c, d, a, x[ 3], S14, 0xc1bdceee); /* 4 */
  ------------------
  |  |   49|   344k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   50|   344k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   42|   344k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   51|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   52|   344k| (a) += (b); \
  |  |   53|   344k| }
  ------------------
  129|   344k|  	FF (a, b, c, d, x[ 4], S11, 0xf57c0faf); /* 5 */
  ------------------
  |  |   49|   344k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   50|   344k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   42|   344k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   51|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   52|   344k| (a) += (b); \
  |  |   53|   344k| }
  ------------------
  130|   344k|  	FF (d, a, b, c, x[ 5], S12, 0x4787c62a); /* 6 */
  ------------------
  |  |   49|   344k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   50|   344k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   42|   344k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   51|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   52|   344k| (a) += (b); \
  |  |   53|   344k| }
  ------------------
  131|   344k|  	FF (c, d, a, b, x[ 6], S13, 0xa8304613); /* 7 */
  ------------------
  |  |   49|   344k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   50|   344k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   42|   344k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   51|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   52|   344k| (a) += (b); \
  |  |   53|   344k| }
  ------------------
  132|   344k|  	FF (b, c, d, a, x[ 7], S14, 0xfd469501); /* 8 */
  ------------------
  |  |   49|   344k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   50|   344k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   42|   344k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   51|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   52|   344k| (a) += (b); \
  |  |   53|   344k| }
  ------------------
  133|   344k|  	FF (a, b, c, d, x[ 8], S11, 0x698098d8); /* 9 */
  ------------------
  |  |   49|   344k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   50|   344k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   42|   344k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   51|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   52|   344k| (a) += (b); \
  |  |   53|   344k| }
  ------------------
  134|   344k|  	FF (d, a, b, c, x[ 9], S12, 0x8b44f7af); /* 10 */
  ------------------
  |  |   49|   344k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   50|   344k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   42|   344k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   51|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   52|   344k| (a) += (b); \
  |  |   53|   344k| }
  ------------------
  135|   344k|  	FF (c, d, a, b, x[10], S13, 0xffff5bb1); /* 11 */
  ------------------
  |  |   49|   344k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   50|   344k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   42|   344k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   51|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   52|   344k| (a) += (b); \
  |  |   53|   344k| }
  ------------------
  136|   344k|  	FF (b, c, d, a, x[11], S14, 0x895cd7be); /* 12 */
  ------------------
  |  |   49|   344k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   50|   344k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   42|   344k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   51|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   52|   344k| (a) += (b); \
  |  |   53|   344k| }
  ------------------
  137|   344k|  	FF (a, b, c, d, x[12], S11, 0x6b901122); /* 13 */
  ------------------
  |  |   49|   344k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   50|   344k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   42|   344k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   51|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   52|   344k| (a) += (b); \
  |  |   53|   344k| }
  ------------------
  138|   344k|  	FF (d, a, b, c, x[13], S12, 0xfd987193); /* 14 */
  ------------------
  |  |   49|   344k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   50|   344k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   42|   344k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   51|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   52|   344k| (a) += (b); \
  |  |   53|   344k| }
  ------------------
  139|   344k|  	FF (c, d, a, b, x[14], S13, 0xa679438e); /* 15 */
  ------------------
  |  |   49|   344k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   50|   344k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   42|   344k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   51|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   52|   344k| (a) += (b); \
  |  |   53|   344k| }
  ------------------
  140|   344k|  	FF (b, c, d, a, x[15], S14, 0x49b40821); /* 16 */
  ------------------
  |  |   49|   344k|#define FF(a, b, c, d, x, s, ac) { \
  |  |   50|   344k| (a) += F ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   42|   344k|#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
  |  |  ------------------
  |  |   51|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   52|   344k| (a) += (b); \
  |  |   53|   344k| }
  ------------------
  141|       |
  142|       | 	/* Round 2 */
  143|   344k|  	GG (a, b, c, d, x[ 1], S21, 0xf61e2562); /* 17 */
  ------------------
  |  |   55|   344k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   56|   344k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   43|   344k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   57|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   58|   344k| (a) += (b); \
  |  |   59|   344k| }
  ------------------
  144|   344k|  	GG (d, a, b, c, x[ 6], S22, 0xc040b340); /* 18 */
  ------------------
  |  |   55|   344k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   56|   344k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   43|   344k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   57|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   58|   344k| (a) += (b); \
  |  |   59|   344k| }
  ------------------
  145|   344k|  	GG (c, d, a, b, x[11], S23, 0x265e5a51); /* 19 */
  ------------------
  |  |   55|   344k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   56|   344k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   43|   344k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   57|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   58|   344k| (a) += (b); \
  |  |   59|   344k| }
  ------------------
  146|   344k|  	GG (b, c, d, a, x[ 0], S24, 0xe9b6c7aa); /* 20 */
  ------------------
  |  |   55|   344k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   56|   344k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   43|   344k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   57|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   58|   344k| (a) += (b); \
  |  |   59|   344k| }
  ------------------
  147|   344k|  	GG (a, b, c, d, x[ 5], S21, 0xd62f105d); /* 21 */
  ------------------
  |  |   55|   344k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   56|   344k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   43|   344k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   57|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   58|   344k| (a) += (b); \
  |  |   59|   344k| }
  ------------------
  148|   344k|  	GG (d, a, b, c, x[10], S22,  0x2441453); /* 22 */
  ------------------
  |  |   55|   344k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   56|   344k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   43|   344k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   57|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   58|   344k| (a) += (b); \
  |  |   59|   344k| }
  ------------------
  149|   344k|  	GG (c, d, a, b, x[15], S23, 0xd8a1e681); /* 23 */
  ------------------
  |  |   55|   344k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   56|   344k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   43|   344k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   57|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   58|   344k| (a) += (b); \
  |  |   59|   344k| }
  ------------------
  150|   344k|  	GG (b, c, d, a, x[ 4], S24, 0xe7d3fbc8); /* 24 */
  ------------------
  |  |   55|   344k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   56|   344k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   43|   344k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   57|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   58|   344k| (a) += (b); \
  |  |   59|   344k| }
  ------------------
  151|   344k|  	GG (a, b, c, d, x[ 9], S21, 0x21e1cde6); /* 25 */
  ------------------
  |  |   55|   344k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   56|   344k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   43|   344k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   57|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   58|   344k| (a) += (b); \
  |  |   59|   344k| }
  ------------------
  152|   344k|  	GG (d, a, b, c, x[14], S22, 0xc33707d6); /* 26 */
  ------------------
  |  |   55|   344k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   56|   344k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   43|   344k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   57|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   58|   344k| (a) += (b); \
  |  |   59|   344k| }
  ------------------
  153|   344k|  	GG (c, d, a, b, x[ 3], S23, 0xf4d50d87); /* 27 */
  ------------------
  |  |   55|   344k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   56|   344k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   43|   344k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   57|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   58|   344k| (a) += (b); \
  |  |   59|   344k| }
  ------------------
  154|   344k|  	GG (b, c, d, a, x[ 8], S24, 0x455a14ed); /* 28 */
  ------------------
  |  |   55|   344k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   56|   344k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   43|   344k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   57|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   58|   344k| (a) += (b); \
  |  |   59|   344k| }
  ------------------
  155|   344k|  	GG (a, b, c, d, x[13], S21, 0xa9e3e905); /* 29 */
  ------------------
  |  |   55|   344k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   56|   344k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   43|   344k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   57|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   58|   344k| (a) += (b); \
  |  |   59|   344k| }
  ------------------
  156|   344k|  	GG (d, a, b, c, x[ 2], S22, 0xfcefa3f8); /* 30 */
  ------------------
  |  |   55|   344k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   56|   344k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   43|   344k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   57|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   58|   344k| (a) += (b); \
  |  |   59|   344k| }
  ------------------
  157|   344k|  	GG (c, d, a, b, x[ 7], S23, 0x676f02d9); /* 31 */
  ------------------
  |  |   55|   344k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   56|   344k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   43|   344k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   57|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   58|   344k| (a) += (b); \
  |  |   59|   344k| }
  ------------------
  158|   344k|  	GG (b, c, d, a, x[12], S24, 0x8d2a4c8a); /* 32 */
  ------------------
  |  |   55|   344k|#define GG(a, b, c, d, x, s, ac) { \
  |  |   56|   344k| (a) += G ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   43|   344k|#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
  |  |  ------------------
  |  |   57|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   58|   344k| (a) += (b); \
  |  |   59|   344k| }
  ------------------
  159|       |
  160|       |  	/* Round 3 */
  161|   344k|  	HH (a, b, c, d, x[ 5], S31, 0xfffa3942); /* 33 */
  ------------------
  |  |   61|   344k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   62|   344k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   44|   344k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   63|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   64|   344k| (a) += (b); \
  |  |   65|   344k| }
  ------------------
  162|   344k|  	HH (d, a, b, c, x[ 8], S32, 0x8771f681); /* 34 */
  ------------------
  |  |   61|   344k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   62|   344k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   44|   344k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   63|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   64|   344k| (a) += (b); \
  |  |   65|   344k| }
  ------------------
  163|   344k|  	HH (c, d, a, b, x[11], S33, 0x6d9d6122); /* 35 */
  ------------------
  |  |   61|   344k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   62|   344k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   44|   344k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   63|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   64|   344k| (a) += (b); \
  |  |   65|   344k| }
  ------------------
  164|   344k|  	HH (b, c, d, a, x[14], S34, 0xfde5380c); /* 36 */
  ------------------
  |  |   61|   344k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   62|   344k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   44|   344k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   63|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   64|   344k| (a) += (b); \
  |  |   65|   344k| }
  ------------------
  165|   344k|  	HH (a, b, c, d, x[ 1], S31, 0xa4beea44); /* 37 */
  ------------------
  |  |   61|   344k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   62|   344k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   44|   344k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   63|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   64|   344k| (a) += (b); \
  |  |   65|   344k| }
  ------------------
  166|   344k|  	HH (d, a, b, c, x[ 4], S32, 0x4bdecfa9); /* 38 */
  ------------------
  |  |   61|   344k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   62|   344k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   44|   344k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   63|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   64|   344k| (a) += (b); \
  |  |   65|   344k| }
  ------------------
  167|   344k|  	HH (c, d, a, b, x[ 7], S33, 0xf6bb4b60); /* 39 */
  ------------------
  |  |   61|   344k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   62|   344k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   44|   344k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   63|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   64|   344k| (a) += (b); \
  |  |   65|   344k| }
  ------------------
  168|   344k|  	HH (b, c, d, a, x[10], S34, 0xbebfbc70); /* 40 */
  ------------------
  |  |   61|   344k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   62|   344k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   44|   344k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   63|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   64|   344k| (a) += (b); \
  |  |   65|   344k| }
  ------------------
  169|   344k|  	HH (a, b, c, d, x[13], S31, 0x289b7ec6); /* 41 */
  ------------------
  |  |   61|   344k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   62|   344k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   44|   344k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   63|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   64|   344k| (a) += (b); \
  |  |   65|   344k| }
  ------------------
  170|   344k|  	HH (d, a, b, c, x[ 0], S32, 0xeaa127fa); /* 42 */
  ------------------
  |  |   61|   344k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   62|   344k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   44|   344k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   63|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   64|   344k| (a) += (b); \
  |  |   65|   344k| }
  ------------------
  171|   344k|  	HH (c, d, a, b, x[ 3], S33, 0xd4ef3085); /* 43 */
  ------------------
  |  |   61|   344k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   62|   344k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   44|   344k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   63|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   64|   344k| (a) += (b); \
  |  |   65|   344k| }
  ------------------
  172|   344k|  	HH (b, c, d, a, x[ 6], S34,  0x4881d05); /* 44 */
  ------------------
  |  |   61|   344k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   62|   344k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   44|   344k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   63|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   64|   344k| (a) += (b); \
  |  |   65|   344k| }
  ------------------
  173|   344k|  	HH (a, b, c, d, x[ 9], S31, 0xd9d4d039); /* 45 */
  ------------------
  |  |   61|   344k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   62|   344k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   44|   344k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   63|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   64|   344k| (a) += (b); \
  |  |   65|   344k| }
  ------------------
  174|   344k|  	HH (d, a, b, c, x[12], S32, 0xe6db99e5); /* 46 */
  ------------------
  |  |   61|   344k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   62|   344k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   44|   344k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   63|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   64|   344k| (a) += (b); \
  |  |   65|   344k| }
  ------------------
  175|   344k|  	HH (c, d, a, b, x[15], S33, 0x1fa27cf8); /* 47 */
  ------------------
  |  |   61|   344k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   62|   344k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   44|   344k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   63|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   64|   344k| (a) += (b); \
  |  |   65|   344k| }
  ------------------
  176|   344k|  	HH (b, c, d, a, x[ 2], S34, 0xc4ac5665); /* 48 */
  ------------------
  |  |   61|   344k|#define HH(a, b, c, d, x, s, ac) { \
  |  |   62|   344k| (a) += H ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   44|   344k|#define H(x, y, z) ((x) ^ (y) ^ (z))
  |  |  ------------------
  |  |   63|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   64|   344k| (a) += (b); \
  |  |   65|   344k| }
  ------------------
  177|       |
  178|       |  	/* Round 4 */
  179|   344k|  	II (a, b, c, d, x[ 0], S41, 0xf4292244); /* 49 */
  ------------------
  |  |   67|   344k|#define II(a, b, c, d, x, s, ac) { \
  |  |   68|   344k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   45|   344k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   69|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   70|   344k| (a) += (b); \
  |  |   71|   344k| }
  ------------------
  180|   344k|  	II (d, a, b, c, x[ 7], S42, 0x432aff97); /* 50 */
  ------------------
  |  |   67|   344k|#define II(a, b, c, d, x, s, ac) { \
  |  |   68|   344k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   45|   344k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   69|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   70|   344k| (a) += (b); \
  |  |   71|   344k| }
  ------------------
  181|   344k|  	II (c, d, a, b, x[14], S43, 0xab9423a7); /* 51 */
  ------------------
  |  |   67|   344k|#define II(a, b, c, d, x, s, ac) { \
  |  |   68|   344k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   45|   344k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   69|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   70|   344k| (a) += (b); \
  |  |   71|   344k| }
  ------------------
  182|   344k|  	II (b, c, d, a, x[ 5], S44, 0xfc93a039); /* 52 */
  ------------------
  |  |   67|   344k|#define II(a, b, c, d, x, s, ac) { \
  |  |   68|   344k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   45|   344k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   69|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   70|   344k| (a) += (b); \
  |  |   71|   344k| }
  ------------------
  183|   344k|  	II (a, b, c, d, x[12], S41, 0x655b59c3); /* 53 */
  ------------------
  |  |   67|   344k|#define II(a, b, c, d, x, s, ac) { \
  |  |   68|   344k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   45|   344k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   69|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   70|   344k| (a) += (b); \
  |  |   71|   344k| }
  ------------------
  184|   344k|  	II (d, a, b, c, x[ 3], S42, 0x8f0ccc92); /* 54 */
  ------------------
  |  |   67|   344k|#define II(a, b, c, d, x, s, ac) { \
  |  |   68|   344k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   45|   344k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   69|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   70|   344k| (a) += (b); \
  |  |   71|   344k| }
  ------------------
  185|   344k|  	II (c, d, a, b, x[10], S43, 0xffeff47d); /* 55 */
  ------------------
  |  |   67|   344k|#define II(a, b, c, d, x, s, ac) { \
  |  |   68|   344k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   45|   344k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   69|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   70|   344k| (a) += (b); \
  |  |   71|   344k| }
  ------------------
  186|   344k|  	II (b, c, d, a, x[ 1], S44, 0x85845dd1); /* 56 */
  ------------------
  |  |   67|   344k|#define II(a, b, c, d, x, s, ac) { \
  |  |   68|   344k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   45|   344k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   69|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   70|   344k| (a) += (b); \
  |  |   71|   344k| }
  ------------------
  187|   344k|  	II (a, b, c, d, x[ 8], S41, 0x6fa87e4f); /* 57 */
  ------------------
  |  |   67|   344k|#define II(a, b, c, d, x, s, ac) { \
  |  |   68|   344k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   45|   344k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   69|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   70|   344k| (a) += (b); \
  |  |   71|   344k| }
  ------------------
  188|   344k|  	II (d, a, b, c, x[15], S42, 0xfe2ce6e0); /* 58 */
  ------------------
  |  |   67|   344k|#define II(a, b, c, d, x, s, ac) { \
  |  |   68|   344k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   45|   344k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   69|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   70|   344k| (a) += (b); \
  |  |   71|   344k| }
  ------------------
  189|   344k|  	II (c, d, a, b, x[ 6], S43, 0xa3014314); /* 59 */
  ------------------
  |  |   67|   344k|#define II(a, b, c, d, x, s, ac) { \
  |  |   68|   344k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   45|   344k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   69|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   70|   344k| (a) += (b); \
  |  |   71|   344k| }
  ------------------
  190|   344k|  	II (b, c, d, a, x[13], S44, 0x4e0811a1); /* 60 */
  ------------------
  |  |   67|   344k|#define II(a, b, c, d, x, s, ac) { \
  |  |   68|   344k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   45|   344k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   69|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   70|   344k| (a) += (b); \
  |  |   71|   344k| }
  ------------------
  191|   344k|  	II (a, b, c, d, x[ 4], S41, 0xf7537e82); /* 61 */
  ------------------
  |  |   67|   344k|#define II(a, b, c, d, x, s, ac) { \
  |  |   68|   344k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   45|   344k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   69|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   70|   344k| (a) += (b); \
  |  |   71|   344k| }
  ------------------
  192|   344k|  	II (d, a, b, c, x[11], S42, 0xbd3af235); /* 62 */
  ------------------
  |  |   67|   344k|#define II(a, b, c, d, x, s, ac) { \
  |  |   68|   344k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   45|   344k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   69|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   70|   344k| (a) += (b); \
  |  |   71|   344k| }
  ------------------
  193|   344k|  	II (c, d, a, b, x[ 2], S43, 0x2ad7d2bb); /* 63 */
  ------------------
  |  |   67|   344k|#define II(a, b, c, d, x, s, ac) { \
  |  |   68|   344k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   45|   344k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   69|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   70|   344k| (a) += (b); \
  |  |   71|   344k| }
  ------------------
  194|   344k|  	II (b, c, d, a, x[ 9], S44, 0xeb86d391); /* 64 */
  ------------------
  |  |   67|   344k|#define II(a, b, c, d, x, s, ac) { \
  |  |   68|   344k| (a) += I ((b), (c), (d)) + (x) + (uint32_t)(ac); \
  |  |  ------------------
  |  |  |  |   45|   344k|#define I(x, y, z) ((y) ^ ((x) | (~z)))
  |  |  ------------------
  |  |   69|   344k| (a) = ROTATE_LEFT ((a), (s)); \
  |  |  ------------------
  |  |  |  |   47|   344k|#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
  |  |  ------------------
  |  |   70|   344k| (a) += (b); \
  |  |   71|   344k| }
  ------------------
  195|       |
  196|       |    /** compute new intermediate hash **/
  197|   344k|    hs->h[0] += a;
  198|   344k|    hs->h[1] += b;
  199|   344k|    hs->h[2] += c;
  200|   344k|    hs->h[3] += d;
  201|   344k|}
pcd_hash_fuzzer.cc:_ZL8add_bitsP12t_hash_statej:
  102|   344k|{
  103|       |    /** Maximum message length for MD5 is 2**64 bits **/
  104|   344k|    hs->totbits += bits;
  105|   344k|    return (hs->totbits < bits) ? ERR_MAX_DATA : 0;
  ------------------
  |  |   14|      0|#define ERR_MAX_DATA            10
  ------------------
  |  Branch (105:12): [True: 0, False: 344k]
  ------------------
  106|   344k|}
pcd_hash_fuzzer.cc:_ZL12md5_finalizeP12t_hash_statePh:
  264|    150|{
  265|    150|    unsigned left, i;
  266|       |
  267|    150|    assert(hs->curlen < BLOCK_SIZE);
  ------------------
  |  Branch (267:5): [True: 150, False: 0]
  ------------------
  268|       |
  269|       |    /* remaining length of the message */
  270|    150|    if (add_bits(hs, hs->curlen*8)) {
  ------------------
  |  Branch (270:9): [True: 0, False: 150]
  ------------------
  271|      0|        return ERR_MAX_DATA;
  ------------------
  |  |   14|      0|#define ERR_MAX_DATA            10
  ------------------
  272|      0|    }
  273|       |
  274|       |    /* append the '1' bit */
  275|       |    /* buf[] is guaranteed to have at least 1 byte free */
  276|    150|    hs->buf[hs->curlen++] = 0x80;
  277|       |
  278|       |    /** if there are less then 64 bits lef, just pad with zeroes and compress **/
  279|    150|    left = BLOCK_SIZE - hs->curlen;
  ------------------
  |  |   90|    150|#define BLOCK_SIZE 64
  ------------------
  280|    150|    if (left < 8) {
  ------------------
  |  Branch (280:9): [True: 55, False: 95]
  ------------------
  281|     55|        memset(&hs->buf[hs->curlen], 0, left);
  282|     55|        md5_compress(hs);
  283|     55|        hs->curlen = 0;
  284|     55|    }
  285|       |
  286|       |    /**
  287|       |     * pad with zeroes and close the block with the bit length
  288|       |     * encoded as 64-bit integer little endian.
  289|       |     **/
  290|    150|    left = BLOCK_SIZE - hs->curlen;
  ------------------
  |  |   90|    150|#define BLOCK_SIZE 64
  ------------------
  291|    150|    memset(&hs->buf[hs->curlen], 0, left);
  292|    150|    STORE_U64_LITTLE(&hs->buf[BLOCK_SIZE-8], hs->totbits);
  ------------------
  |  |  184|    150|#define STORE_U64_LITTLE(p, w) u64to8_little((p), &(w))
  ------------------
  293|       |
  294|       |    /** compress one last time **/
  295|    150|    md5_compress(hs);
  296|       |
  297|       |    /** create final hash **/
  298|    750|    for (i=0; i<4; i++) {
  ------------------
  |  Branch (298:15): [True: 600, False: 150]
  ------------------
  299|    600|        STORE_U32_LITTLE(&hash[i*4], hs->h[i]);
  ------------------
  |  |   98|    600|#define STORE_U32_LITTLE(p, w) u32to8_little((p), &(w))
  ------------------
  300|    600|    }
  301|       |
  302|    150|    return 0;
  303|    150|}

pcd_hash_fuzzer.cc:_ZL18load_u8to32_littlePKh:
   80|  5.50M|{
   81|  5.50M|    uint32_t w;
   82|       |
   83|  5.50M|    u8to32_little(&w, p);
   84|  5.50M|    return w;
   85|  5.50M|}
pcd_hash_fuzzer.cc:_ZL13u8to32_littlePjPKh:
   50|  5.50M|{
   51|       |#ifdef PYCRYPTO_LITTLE_ENDIAN
   52|       |    memcpy(w, p, 4);
   53|       |#else
   54|  5.50M|    *w = (uint32_t)p[0] | (uint32_t)p[1]<<8 | (uint32_t)p[2]<<16 | (uint32_t)p[3]<<24;
   55|  5.50M|#endif
   56|  5.50M|}
pcd_hash_fuzzer.cc:_ZL13u64to8_littlePhPKm:
  102|    150|{
  103|       |#ifdef PYCRYPTO_LITTLE_ENDIAN
  104|       |    memcpy(p, w, 8);
  105|       |#else
  106|    150|    p[0] = (uint8_t)*w;
  107|    150|    p[1] = (uint8_t)(*w >> 8);
  108|    150|    p[2] = (uint8_t)(*w >> 16);
  109|    150|    p[3] = (uint8_t)(*w >> 24);
  110|    150|    p[4] = (uint8_t)(*w >> 32);
  111|    150|    p[5] = (uint8_t)(*w >> 40);
  112|    150|    p[6] = (uint8_t)(*w >> 48);
  113|    150|    p[7] = (uint8_t)(*w >> 56);
  114|    150|#endif
  115|    150|}
pcd_hash_fuzzer.cc:_ZL13u32to8_littlePhPKj:
   38|    600|{
   39|       |#ifdef PYCRYPTO_LITTLE_ENDIAN
   40|       |    memcpy(p, w, 4);
   41|       |#else
   42|    600|    p[0] = (uint8_t)*w;
   43|    600|    p[1] = (uint8_t)(*w >> 8);
   44|    600|    p[2] = (uint8_t)(*w >> 16);
   45|    600|    p[3] = (uint8_t)(*w >> 24);
   46|    600|#endif
   47|    600|}

