| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/evp/p_verify.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | - | |||||||
| 3 | int EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf, | - | ||||||
| 4 | unsigned int siglen, EVP_PKEY *pkey) | - | ||||||
| 5 | { | - | ||||||
| 6 | unsigned char m[64]; | - | ||||||
| 7 | unsigned int m_len = 0; | - | ||||||
| 8 | int i = 0; | - | ||||||
| 9 | EVP_PKEY_CTX *pkctx = | - | ||||||
| 10 | ((void *)0) | - | ||||||
| 11 | ; | - | ||||||
| 12 | - | |||||||
| 13 | if (EVP_MD_CTX_test_flags(ctx, 0x0200)
| 0-25 | ||||||
| 14 | if (!EVP_DigestFinal_ex(ctx, m, &m_len)
| 0 | ||||||
| 15 | goto never executed: err;goto err;never executed: goto err; | 0 | ||||||
| 16 | } never executed: else {end of block | 0 | ||||||
| 17 | int rv = 0; | - | ||||||
| 18 | EVP_MD_CTX *tmp_ctx = EVP_MD_CTX_new(); | - | ||||||
| 19 | if (tmp_ctx ==
| 0-25 | ||||||
| 20 | ((void *)0)
| 0-25 | ||||||
| 21 | ) { | - | ||||||
| 22 | ERR_put_error(6,(108),((1|64)),__FILE__,32); | - | ||||||
| 23 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||
| 24 | } | - | ||||||
| 25 | rv = EVP_MD_CTX_copy_ex(tmp_ctx, ctx); | - | ||||||
| 26 | if (rv
| 0-25 | ||||||
| 27 | rv = EVP_DigestFinal_ex(tmp_ctx, m, &m_len); executed 25 times by 1 test: rv = EVP_DigestFinal_ex(tmp_ctx, m, &m_len);Executed by:
| 25 | ||||||
| 28 | EVP_MD_CTX_free(tmp_ctx); | - | ||||||
| 29 | if (!rv
| 0-25 | ||||||
| 30 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||
| 31 | } executed 25 times by 1 test: end of blockExecuted by:
| 25 | ||||||
| 32 | - | |||||||
| 33 | i = -1; | - | ||||||
| 34 | pkctx = EVP_PKEY_CTX_new(pkey, | - | ||||||
| 35 | ((void *)0) | - | ||||||
| 36 | ); | - | ||||||
| 37 | if (pkctx ==
| 0-25 | ||||||
| 38 | ((void *)0)
| 0-25 | ||||||
| 39 | ) | - | ||||||
| 40 | goto never executed: err;goto err;never executed: goto err; | 0 | ||||||
| 41 | if (EVP_PKEY_verify_init(pkctx) <= 0
| 0-25 | ||||||
| 42 | goto never executed: err;goto err;never executed: goto err; | 0 | ||||||
| 43 | if (EVP_PKEY_CTX_ctrl(pkctx, -1, ((1<<3) | (1<<4) | (1<<5) | (1<<6) | (1<<7)), 1, 0, (void *)(EVP_MD_CTX_md(ctx))) <= 0
| 0-25 | ||||||
| 44 | goto never executed: err;goto err;never executed: goto err; | 0 | ||||||
| 45 | i = EVP_PKEY_verify(pkctx, sigbuf, siglen, m, m_len); | - | ||||||
| 46 | err: code before this statement executed 25 times by 1 test: err:Executed by:
| 25 | ||||||
| 47 | EVP_PKEY_CTX_free(pkctx); | - | ||||||
| 48 | return executed 25 times by 1 test: i;return i;Executed by:
executed 25 times by 1 test: return i;Executed by:
| 25 | ||||||
| 49 | } | - | ||||||
| Switch to Source code | Preprocessed file |