OpenCoverage

dsa_sign.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/dsa/dsa_sign.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2DSA_SIG *-
3DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa)-
4{-
5 return
executed 2 times by 2 tests: return dsa->meth->dsa_do_sign(dgst, dlen, dsa);
Executed by:
  • dsatest
  • libcrypto.so.44.0.1
dsa->meth->dsa_do_sign(dgst, dlen, dsa);
executed 2 times by 2 tests: return dsa->meth->dsa_do_sign(dgst, dlen, dsa);
Executed by:
  • dsatest
  • libcrypto.so.44.0.1
2
6}-
7-
8int-
9DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp)-
10{-
11 return
executed 2 times by 2 tests: return dsa->meth->dsa_sign_setup(dsa, ctx_in, kinvp, rp);
Executed by:
  • dsatest
  • libcrypto.so.44.0.1
dsa->meth->dsa_sign_setup(dsa, ctx_in, kinvp, rp);
executed 2 times by 2 tests: return dsa->meth->dsa_sign_setup(dsa, ctx_in, kinvp, rp);
Executed by:
  • dsatest
  • libcrypto.so.44.0.1
2
12}-
13-
14DSA_SIG *-
15DSA_SIG_new(void)-
16{-
17 return
executed 4 times by 2 tests: return calloc(1, sizeof(DSA_SIG));
Executed by:
  • dsatest
  • libcrypto.so.44.0.1
calloc(1, sizeof(DSA_SIG));
executed 4 times by 2 tests: return calloc(1, sizeof(DSA_SIG));
Executed by:
  • dsatest
  • libcrypto.so.44.0.1
4
18}-
19-
20void-
21DSA_SIG_free(DSA_SIG *sig)-
22{-
23 if (sig !=
sig != ((void *)0)Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • dsatest
  • libcrypto.so.44.0.1
FALSEevaluated 1 time by 1 test
Evaluated by:
  • freenull
1-4
24 ((void *)0)
sig != ((void *)0)Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • dsatest
  • libcrypto.so.44.0.1
FALSEevaluated 1 time by 1 test
Evaluated by:
  • freenull
1-4
25 ) {-
26 BN_free(sig->r);-
27 BN_free(sig->s);-
28 free(sig);-
29 }
executed 4 times by 2 tests: end of block
Executed by:
  • dsatest
  • libcrypto.so.44.0.1
4
30}
executed 5 times by 3 tests: end of block
Executed by:
  • dsatest
  • freenull
  • libcrypto.so.44.0.1
5
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2