| Line | Source | Count |
| 1 | static inline uint32_t ROTATE(uint32_t a, uint32_t n) | - |
| 2 | { | - |
| 3 | returnexecuted 3952 times by 2 tests: return (a<<n)|(a>>(32-n)); (a<<n)|(a>>(32-n));executed 3952 times by 2 tests: return (a<<n)|(a>>(32-n)); | 3952 |
| 4 | } | - |
| 5 | int | - |
| 6 | MD4_Update(MD4_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 testsEvaluated by:- evptest
- gost2814789t
- hkdftest
- md4test
- md5test
- rmdtest
- rsa_test
- ssltest
| | FALSE | evaluated 149588 times by 22 testsEvaluated by:- asn1test
- dsatest
- ecdhtest
- evptest
- gost2814789t
- hkdftest
- hmactest
- keypairtest
- libcrypto.so.44.0.1
- md4test
- md5test
- pbkdf2
- pkcs7test
- rc4test
- rmdtest
- rsa_test
- servertest
- sha1test
- sha256test
- ssltest
- tls_prf
- tlstest
|
) | 551-149588 |
| 14 | returnexecuted 551 times by 8 tests: return 1;Executed by:- evptest
- gost2814789t
- hkdftest
- md4test
- md5test
- rmdtest
- rsa_test
- ssltest
1;executed 551 times by 8 tests: return 1;Executed by:- evptest
- gost2814789t
- hkdftest
- md4test
- md5test
- rmdtest
- rsa_test
- ssltest
| 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 testsEvaluated by:- asn1test
- dsatest
- ecdhtest
- evptest
- gost2814789t
- hkdftest
- hmactest
- keypairtest
- libcrypto.so.44.0.1
- md4test
- md5test
- pbkdf2
- pkcs7test
- rc4test
- rmdtest
- rsa_test
- servertest
- sha1test
- sha256test
- ssltest
- tls_prf
- tlstest
|
) | 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 testsEvaluated by:- hkdftest
- libcrypto.so.44.0.1
- pbkdf2
- rc4test
- rsa_test
- servertest
- sha1test
- sha256test
- ssltest
- tls_prf
- tlstest
| | FALSE | evaluated 121141 times by 22 testsEvaluated by:- asn1test
- dsatest
- ecdhtest
- evptest
- gost2814789t
- hkdftest
- hmactest
- keypairtest
- libcrypto.so.44.0.1
- md4test
- md5test
- pbkdf2
- pkcs7test
- rc4test
- rmdtest
- rsa_test
- servertest
- sha1test
- sha256test
- ssltest
- tls_prf
- tlstest
|
) { | 28447-121141 |
| 26 | p = (unsigned char *)c->data; | - |
| 27 | | - |
| 28 | if (len >= 64| TRUE | evaluated 7345 times by 7 testsEvaluated by:- hkdftest
- rc4test
- servertest
- sha1test
- sha256test
- ssltest
- tlstest
| | FALSE | evaluated 21102 times by 8 testsEvaluated by:- hkdftest
- libcrypto.so.44.0.1
- pbkdf2
- rsa_test
- servertest
- ssltest
- tls_prf
- tlstest
|
|| len + n >= 64| TRUE | evaluated 5291 times by 4 testsEvaluated by:- servertest
- ssltest
- tls_prf
- tlstest
| | FALSE | evaluated 15811 times by 8 testsEvaluated by:- hkdftest
- libcrypto.so.44.0.1
- pbkdf2
- rsa_test
- servertest
- ssltest
- tls_prf
- tlstest
|
) { | 5291-21102 |
| 29 | memcpy (p + n, data, 64 - n); | - |
| 30 | md4_block_data_order (c, p, 1); | - |
| 31 | n = 64 - n; | - |
| 32 | data += n; | - |
| 33 | len -= n; | - |
| 34 | c->num = 0; | - |
| 35 | memset (p,0,64); | - |
| 36 | }executed 12636 times by 8 tests: end of blockExecuted by:- hkdftest
- rc4test
- servertest
- sha1test
- sha256test
- ssltest
- tls_prf
- tlstest
else { | 12636 |
| 37 | memcpy (p + n, data, len); | - |
| 38 | c->num += (unsigned int)len; | - |
| 39 | returnexecuted 15811 times by 8 tests: return 1;Executed by:- hkdftest
- libcrypto.so.44.0.1
- pbkdf2
- rsa_test
- servertest
- ssltest
- tls_prf
- tlstest
1;executed 15811 times by 8 tests: return 1;Executed by:- hkdftest
- libcrypto.so.44.0.1
- pbkdf2
- rsa_test
- servertest
- ssltest
- tls_prf
- tlstest
| 15811 |
| 40 | } | - |
| 41 | } | - |
| 42 | | - |
| 43 | n = len/64; | - |
| 44 | if (n > 0| TRUE | evaluated 43766 times by 21 testsEvaluated by:- asn1test
- ecdhtest
- evptest
- gost2814789t
- hkdftest
- hmactest
- keypairtest
- libcrypto.so.44.0.1
- md4test
- md5test
- pbkdf2
- pkcs7test
- rc4test
- rmdtest
- rsa_test
- servertest
- sha1test
- sha256test
- ssltest
- tls_prf
- tlstest
| | FALSE | evaluated 90011 times by 18 testsEvaluated by:- dsatest
- ecdhtest
- evptest
- gost2814789t
- hkdftest
- hmactest
- libcrypto.so.44.0.1
- md4test
- md5test
- pbkdf2
- rmdtest
- rsa_test
- servertest
- sha1test
- sha256test
- ssltest
- tls_prf
- tlstest
|
) { | 43766-90011 |
| 45 | md4_block_data_order (c, data, n); | - |
| 46 | n *= 64; | - |
| 47 | data += n; | - |
| 48 | len -= n; | - |
| 49 | }executed 43766 times by 21 tests: end of blockExecuted by:- asn1test
- ecdhtest
- evptest
- gost2814789t
- hkdftest
- hmactest
- keypairtest
- libcrypto.so.44.0.1
- md4test
- md5test
- pbkdf2
- pkcs7test
- rc4test
- rmdtest
- rsa_test
- servertest
- sha1test
- sha256test
- ssltest
- tls_prf
- tlstest
| 43766 |
| 50 | | - |
| 51 | if (len != 0| TRUE | evaluated 98013 times by 22 testsEvaluated by:- asn1test
- dsatest
- ecdhtest
- evptest
- gost2814789t
- hkdftest
- hmactest
- keypairtest
- libcrypto.so.44.0.1
- md4test
- md5test
- pbkdf2
- pkcs7test
- rc4test
- rmdtest
- rsa_test
- servertest
- sha1test
- sha256test
- ssltest
- tls_prf
- tlstest
| | FALSE | evaluated 35764 times by 11 testsEvaluated by:- gost2814789t
- hkdftest
- hmactest
- pbkdf2
- rc4test
- servertest
- sha1test
- sha256test
- ssltest
- tls_prf
- tlstest
|
) { | 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:- asn1test
- dsatest
- ecdhtest
- evptest
- gost2814789t
- hkdftest
- hmactest
- keypairtest
- libcrypto.so.44.0.1
- md4test
- md5test
- pbkdf2
- pkcs7test
- rc4test
- rmdtest
- rsa_test
- servertest
- sha1test
- sha256test
- ssltest
- tls_prf
- tlstest
| 98013 |
| 56 | returnexecuted 133777 times by 22 tests: return 1;Executed by:- asn1test
- dsatest
- ecdhtest
- evptest
- gost2814789t
- hkdftest
- hmactest
- keypairtest
- libcrypto.so.44.0.1
- md4test
- md5test
- pbkdf2
- pkcs7test
- rc4test
- rmdtest
- rsa_test
- servertest
- sha1test
- sha256test
- ssltest
- tls_prf
- tlstest
1;executed 133777 times by 22 tests: return 1;Executed by:- asn1test
- dsatest
- ecdhtest
- evptest
- gost2814789t
- hkdftest
- hmactest
- keypairtest
- libcrypto.so.44.0.1
- md4test
- md5test
- pbkdf2
- pkcs7test
- rc4test
- rmdtest
- rsa_test
- servertest
- sha1test
- sha256test
- ssltest
- tls_prf
- tlstest
| 133777 |
| 57 | } | - |
| 58 | | - |
| 59 | | - |
| 60 | void MD4_Transform (MD4_CTX *c, const unsigned char *data) | - |
| 61 | { | - |
| 62 | md4_block_data_order (c, data, 1); | - |
| 63 | }executed 1440 times by 1 test: end of block | 1440 |
| 64 | | - |
| 65 | | - |
| 66 | | - |
| 67 | int MD4_Final (unsigned char *md, MD4_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 > (64 - 8)| TRUE | evaluated 87 times by 8 testsEvaluated by:- evptest
- md4test
- md5test
- rmdtest
- sha1test
- sha256test
- ssltest
- tlstest
| | FALSE | evaluated 85784 times by 21 testsEvaluated by:- asn1test
- dsatest
- ecdhtest
- evptest
- hkdftest
- hmactest
- keypairtest
- libcrypto.so.44.0.1
- md4test
- md5test
- pbkdf2
- pkcs7test
- rc4test
- rmdtest
- rsa_test
- servertest
- sha1test
- sha256test
- ssltest
- tls_prf
- tlstest
|
) { | 87-85784 |
| 76 | memset (p + n, 0, 64 - n); | - |
| 77 | n = 0; | - |
| 78 | md4_block_data_order (c, p, 1); | - |
| 79 | }executed 87 times by 8 tests: end of blockExecuted by:- evptest
- md4test
- md5test
- rmdtest
- sha1test
- sha256test
- ssltest
- tlstest
| 87 |
| 80 | memset (p + n, 0, 64 - 8 - n); | - |
| 81 | | - |
| 82 | p += 64 - 8; | - |
| 83 | | - |
| 84 | | - |
| 85 | | - |
| 86 | | - |
| 87 | (*((unsigned int *)(p))=(c->Nl), (p)+=4); | - |
| 88 | (*((unsigned int *)(p))=(c->Nh), (p)+=4); | - |
| 89 | | - |
| 90 | p -= 64; | - |
| 91 | md4_block_data_order (c, p, 1); | - |
| 92 | c->num = 0; | - |
| 93 | memset (p, 0, 64); | - |
| 94 | | - |
| 95 | | - |
| 96 | | - |
| 97 | | - |
| 98 | do { unsigned long ll; ll=(c)->A; (*((unsigned int *)((md)))=(ll), ((md))+=4); ll=(c)->B; (*((unsigned int *)((md)))=(ll), ((md))+=4); ll=(c)->C; (*((unsigned int *)((md)))=(ll), ((md))+=4); ll=(c)->D; (*((unsigned int *)((md)))=(ll), ((md))+=4); } while (0); | - |
| 99 | | - |
| 100 | | - |
| 101 | returnexecuted 85871 times by 21 tests: return 1;Executed by:- asn1test
- dsatest
- ecdhtest
- evptest
- hkdftest
- hmactest
- keypairtest
- libcrypto.so.44.0.1
- md4test
- md5test
- pbkdf2
- pkcs7test
- rc4test
- rmdtest
- rsa_test
- servertest
- sha1test
- sha256test
- ssltest
- tls_prf
- tlstest
1;executed 85871 times by 21 tests: return 1;Executed by:- asn1test
- dsatest
- ecdhtest
- evptest
- hkdftest
- hmactest
- keypairtest
- libcrypto.so.44.0.1
- md4test
- md5test
- pbkdf2
- pkcs7test
- rc4test
- rmdtest
- rsa_test
- servertest
- sha1test
- sha256test
- ssltest
- tls_prf
- tlstest
| 85871 |
| 102 | } | - |
| | |