| Line | Source | Count | 
|---|
| 1 | static inline uint32_t ROTATE(uint32_t a, uint32_t n) | - | 
| 2 | { | - | 
| 3 | return executed 3952 times by 2 tests(a<<n)|(a>>(32-n));:  return (a<<n)|(a>>(32-n)); executed 3952 times by 2 tests:  return (a<<n)|(a>>(32-n)); | 3952 | 
| 4 | } | - | 
| 5 | int | - | 
| 6 | SHA256_Update(SHA256_CTX *c, const void *data_, size_t len) | - | 
| 7 | { | - | 
| 8 | const unsigned char *data = data_; | - | 
| 9 | unsigned char *p; | - | 
| 10 | unsigned int l; | - | 
| 11 | size_t n; | - | 
| 12 |  | - | 
| 13 | if (len == 0 )| TRUE | evaluated 551 times by 8 tests Evaluated by:evptestgost2814789thkdftestmd4testmd5testrmdtestrsa_testssltest
 |  | FALSE | evaluated 149588 times by 22 tests Evaluated by:asn1testdsatestecdhtestevptestgost2814789thkdftesthmactestkeypairtestlibcrypto.so.44.0.1md4testmd5testpbkdf2pkcs7testrc4testrmdtestrsa_testservertestsha1testsha256testssltesttls_prftlstest
 | 
 | 551-149588 | 
| 14 | return executed 551 times by 8 tests1;:  return 1;Executed by:evptestgost2814789thkdftestmd4testmd5testrmdtestrsa_testssltest
 executed 551 times by 8 tests:  return 1;Executed by:evptestgost2814789thkdftestmd4testmd5testrmdtestrsa_testssltest
 | 551 | 
| 15 |  | - | 
| 16 | l = (c->Nl + (((unsigned int)len) << 3))&0xffffffffUL; | - | 
| 17 |  | - | 
| 18 |  | - | 
| 19 | if (l < c->Nl )| TRUE | never evaluated |  | FALSE | evaluated 149588 times by 22 tests Evaluated by:asn1testdsatestecdhtestevptestgost2814789thkdftesthmactestkeypairtestlibcrypto.so.44.0.1md4testmd5testpbkdf2pkcs7testrc4testrmdtestrsa_testservertestsha1testsha256testssltesttls_prftlstest
 | 
 | 0-149588 | 
| 20 | c->Nh++; never executed: c->Nh++; | 0 | 
| 21 | c->Nh+=(unsigned int)(len>>29); | - | 
| 22 | c->Nl = l; | - | 
| 23 |  | - | 
| 24 | n = c->num; | - | 
| 25 | if (n != 0 ) {| TRUE | evaluated 28447 times by 11 tests Evaluated by:hkdftestlibcrypto.so.44.0.1pbkdf2rc4testrsa_testservertestsha1testsha256testssltesttls_prftlstest
 |  | FALSE | evaluated 121141 times by 22 tests Evaluated by:asn1testdsatestecdhtestevptestgost2814789thkdftesthmactestkeypairtestlibcrypto.so.44.0.1md4testmd5testpbkdf2pkcs7testrc4testrmdtestrsa_testservertestsha1testsha256testssltesttls_prftlstest
 | 
 | 28447-121141 | 
| 26 | p = (unsigned char *)c->data; | - | 
| 27 |  | - | 
| 28 | if (len >= (16*4) || len + n >= (16*4)| TRUE | evaluated 7345 times by 7 tests Evaluated by:hkdftestrc4testservertestsha1testsha256testssltesttlstest
 |  | FALSE | evaluated 21102 times by 8 tests Evaluated by:hkdftestlibcrypto.so.44.0.1pbkdf2rsa_testservertestssltesttls_prftlstest
 | 
) {| TRUE | evaluated 5291 times by 4 tests Evaluated by:servertestssltesttls_prftlstest
 |  | FALSE | evaluated 15811 times by 8 tests Evaluated by:hkdftestlibcrypto.so.44.0.1pbkdf2rsa_testservertestssltesttls_prftlstest
 | 
 | 5291-21102 | 
| 29 | memcpy (p + n, data, (16*4) - n); | - | 
| 30 | sha256_block_data_order (c, p, 1); | - | 
| 31 | n = (16*4) - n; | - | 
| 32 | data += n; | - | 
| 33 | len -= n; | - | 
| 34 | c->num = 0; | - | 
| 35 | memset (p,0,(16*4)); | - | 
| 36 | } executed 12636 times by 8 testselse {:  end of blockExecuted by:hkdftestrc4testservertestsha1testsha256testssltesttls_prftlstest
 | 12636 | 
| 37 | memcpy (p + n, data, len); | - | 
| 38 | c->num += (unsigned int)len; | - | 
| 39 | return executed 15811 times by 8 tests1;:  return 1;Executed by:hkdftestlibcrypto.so.44.0.1pbkdf2rsa_testservertestssltesttls_prftlstest
 executed 15811 times by 8 tests:  return 1;Executed by:hkdftestlibcrypto.so.44.0.1pbkdf2rsa_testservertestssltesttls_prftlstest
 | 15811 | 
| 40 | } | - | 
| 41 | } | - | 
| 42 |  | - | 
| 43 | n = len/(16*4); | - | 
| 44 | if (n > 0 ) {| TRUE | evaluated 43766 times by 21 tests Evaluated by:asn1testecdhtestevptestgost2814789thkdftesthmactestkeypairtestlibcrypto.so.44.0.1md4testmd5testpbkdf2pkcs7testrc4testrmdtestrsa_testservertestsha1testsha256testssltesttls_prftlstest
 |  | FALSE | evaluated 90011 times by 18 tests Evaluated by:dsatestecdhtestevptestgost2814789thkdftesthmactestlibcrypto.so.44.0.1md4testmd5testpbkdf2rmdtestrsa_testservertestsha1testsha256testssltesttls_prftlstest
 | 
 | 43766-90011 | 
| 45 | sha256_block_data_order (c, data, n); | - | 
| 46 | n *= (16*4); | - | 
| 47 | data += n; | - | 
| 48 | len -= n; | - | 
| 49 | } executed 43766 times by 21 tests:  end of blockExecuted by:asn1testecdhtestevptestgost2814789thkdftesthmactestkeypairtestlibcrypto.so.44.0.1md4testmd5testpbkdf2pkcs7testrc4testrmdtestrsa_testservertestsha1testsha256testssltesttls_prftlstest
 | 43766 | 
| 50 |  | - | 
| 51 | if (len != 0 ) {| TRUE | evaluated 98013 times by 22 tests Evaluated by:asn1testdsatestecdhtestevptestgost2814789thkdftesthmactestkeypairtestlibcrypto.so.44.0.1md4testmd5testpbkdf2pkcs7testrc4testrmdtestrsa_testservertestsha1testsha256testssltesttls_prftlstest
 |  | FALSE | evaluated 35764 times by 11 tests Evaluated by:gost2814789thkdftesthmactestpbkdf2rc4testservertestsha1testsha256testssltesttls_prftlstest
 | 
 | 35764-98013 | 
| 52 | p = (unsigned char *)c->data; | - | 
| 53 | c->num = (unsigned int)len; | - | 
| 54 | memcpy (p, data, len); | - | 
| 55 | } executed 98013 times by 22 tests:  end of blockExecuted by:asn1testdsatestecdhtestevptestgost2814789thkdftesthmactestkeypairtestlibcrypto.so.44.0.1md4testmd5testpbkdf2pkcs7testrc4testrmdtestrsa_testservertestsha1testsha256testssltesttls_prftlstest
 | 98013 | 
| 56 | return executed 133777 times by 22 tests1;:  return 1;Executed by:asn1testdsatestecdhtestevptestgost2814789thkdftesthmactestkeypairtestlibcrypto.so.44.0.1md4testmd5testpbkdf2pkcs7testrc4testrmdtestrsa_testservertestsha1testsha256testssltesttls_prftlstest
 executed 133777 times by 22 tests:  return 1;Executed by:asn1testdsatestecdhtestevptestgost2814789thkdftesthmactestkeypairtestlibcrypto.so.44.0.1md4testmd5testpbkdf2pkcs7testrc4testrmdtestrsa_testservertestsha1testsha256testssltesttls_prftlstest
 | 133777 | 
| 57 | } | - | 
| 58 |  | - | 
| 59 |  | - | 
| 60 | void SHA256_Transform (SHA256_CTX *c, const unsigned char *data) | - | 
| 61 | { | - | 
| 62 | sha256_block_data_order (c, data, 1); | - | 
| 63 | } executed 1440 times by 1 test:  end of block | 1440 | 
| 64 |  | - | 
| 65 |  | - | 
| 66 |  | - | 
| 67 | int SHA256_Final (unsigned char *md, SHA256_CTX *c) | - | 
| 68 | { | - | 
| 69 | unsigned char *p = (unsigned char *)c->data; | - | 
| 70 | size_t n = c->num; | - | 
| 71 |  | - | 
| 72 | p[n] = 0x80; | - | 
| 73 | n++; | - | 
| 74 |  | - | 
| 75 | if (n > ((16*4) - 8) ) {| TRUE | evaluated 87 times by 8 tests Evaluated by:evptestmd4testmd5testrmdtestsha1testsha256testssltesttlstest
 |  | FALSE | evaluated 85784 times by 21 tests Evaluated by:asn1testdsatestecdhtestevptesthkdftesthmactestkeypairtestlibcrypto.so.44.0.1md4testmd5testpbkdf2pkcs7testrc4testrmdtestrsa_testservertestsha1testsha256testssltesttls_prftlstest
 | 
 | 87-85784 | 
| 76 | memset (p + n, 0, (16*4) - n); | - | 
| 77 | n = 0; | - | 
| 78 | sha256_block_data_order (c, p, 1); | - | 
| 79 | } executed 87 times by 8 tests:  end of blockExecuted by:evptestmd4testmd5testrmdtestsha1testsha256testssltesttlstest
 | 87 | 
| 80 | memset (p + n, 0, (16*4) - 8 - n); | - | 
| 81 |  | - | 
| 82 | p += (16*4) - 8; | - | 
| 83 |  | - | 
| 84 | ({ unsigned int r=(c->Nh); asm ("bswapl %0":"=r"(r):"0"(r)); *((unsigned int *)(p))=r; (p)+=4; }); | - | 
| 85 | ({ unsigned int r=(c->Nl); asm ("bswapl %0":"=r"(r):"0"(r)); *((unsigned int *)(p))=r; (p)+=4; }); | - | 
| 86 |  | - | 
| 87 |  | - | 
| 88 |  | - | 
| 89 |  | - | 
| 90 | p -= (16*4); | - | 
| 91 | sha256_block_data_order (c, p, 1); | - | 
| 92 | c->num = 0; | - | 
| 93 | memset (p, 0, (16*4)); | - | 
| 94 |  | - | 
| 95 |  | - | 
| 96 |  | - | 
| 97 |  | - | 
| 98 | do { unsigned long ll; unsigned int nn; switch ((c)->md_len) { case executed 3 times by 1 test28::  case 28: executed 3 times by 1 testfor (nn=0;nn<28/4:  case 28: ;nn++) { ll=(c)->h[nn]; ({ unsigned int r=(ll); asm ("bswapl %0":"=r"(r):"0"(r)); *((unsigned int *)((md)))=r; ((md))+=4; }); }| TRUE | evaluated 21 times by 1 test |  | FALSE | evaluated 3 times by 1 test | 
executed 21 times by 1 testbreak;:  end of block executed 3 times by 1 testcase:  break; executed 36674 times by 9 tests32::  case 32:Executed by:hkdftesthmactestkeypairtestlibcrypto.so.44.0.1pbkdf2sha256testssltesttls_prftlstest
 executed 36674 times by 9 testsfor (nn=0;nn<32/4:  case 32:Executed by:hkdftesthmactestkeypairtestlibcrypto.so.44.0.1pbkdf2sha256testssltesttls_prftlstest
 ;nn++) { ll=(c)->h[nn]; ({ unsigned int r=(ll); asm ("bswapl %0":"=r"(r):"0"(r)); *((unsigned int *)((md)))=r; ((md))+=4; }); }| TRUE | evaluated 293392 times by 9 tests Evaluated by:hkdftesthmactestkeypairtestlibcrypto.so.44.0.1pbkdf2sha256testssltesttls_prftlstest
 |  | FALSE | evaluated 36674 times by 9 tests Evaluated by:hkdftesthmactestkeypairtestlibcrypto.so.44.0.1pbkdf2sha256testssltesttls_prftlstest
 | 
executed 293392 times by 9 testsbreak;:  end of blockExecuted by:hkdftesthmactestkeypairtestlibcrypto.so.44.0.1pbkdf2sha256testssltesttls_prftlstest
 executed 36674 times by 9 testsdefault:  break;Executed by:hkdftesthmactestkeypairtestlibcrypto.so.44.0.1pbkdf2sha256testssltesttls_prftlstest
 never executed: :default: never executed: if ((default: c)->md_len > 32| TRUE | never evaluated |  | FALSE | never evaluated | 
) return| TRUE | never evaluated |  | FALSE | never evaluated | 
never executed: 0;return 0; never executed: for (nn=0;nn<(c)->md_len/4return 0; ;nn++) { ll=(c)->h[nn]; ({ unsigned int r=(ll); asm ("bswapl %0":"=r"(r):"0"(r)); *((unsigned int *)((md)))=r; ((md))+=4; }); }| TRUE | never evaluated |  | FALSE | never evaluated | 
never executed: break;end of block never executed: } } while (0);break; | 0-293392 | 
| 99 |  | - | 
| 100 |  | - | 
| 101 | return executed 85871 times by 21 tests1;:  return 1;Executed by:asn1testdsatestecdhtestevptesthkdftesthmactestkeypairtestlibcrypto.so.44.0.1md4testmd5testpbkdf2pkcs7testrc4testrmdtestrsa_testservertestsha1testsha256testssltesttls_prftlstest
 executed 85871 times by 21 tests:  return 1;Executed by:asn1testdsatestecdhtestevptesthkdftesthmactestkeypairtestlibcrypto.so.44.0.1md4testmd5testpbkdf2pkcs7testrc4testrmdtestrsa_testservertestsha1testsha256testssltesttls_prftlstest
 | 85871 | 
| 102 | } | - | 
|  |  |  |