line |
true |
false |
branch |
26
|
7 |
8 |
if (p != NULL) |
28
|
7 |
8 |
if (q != NULL) |
30
|
7 |
8 |
if (g != NULL) |
39
|
2 |
4 |
if ((d->p == NULL && p == NULL) |
|
2 |
0 |
if ((d->p == NULL && p == NULL) |
40
|
2 |
4 |
|| (d->q == NULL && q == NULL) |
|
2 |
0 |
|| (d->q == NULL && q == NULL) |
41
|
2 |
4 |
|| (d->g == NULL && g == NULL)) |
|
0 |
2 |
|| (d->g == NULL && g == NULL)) |
44
|
6 |
0 |
if (p != NULL) { |
48
|
6 |
0 |
if (q != NULL) { |
52
|
6 |
0 |
if (g != NULL) { |
63
|
5 |
3 |
if (pub_key != NULL) |
65
|
3 |
5 |
if (priv_key != NULL) |
75
|
2 |
3 |
if (d->pub_key == NULL && pub_key == NULL) |
|
0 |
2 |
if (d->pub_key == NULL && pub_key == NULL) |
78
|
3 |
2 |
if (pub_key != NULL) { |
82
|
2 |
3 |
if (priv_key != NULL) { |
93
|
3 |
3 |
if (pr != NULL) |
95
|
3 |
3 |
if (ps != NULL) |
101
|
4 |
0 |
if (r == NULL || s == NULL) |
|
0 |
4 |
if (r == NULL || s == NULL) |
145
|
2 |
1 |
if (seed) { |
146
|
2 |
0 |
seedpv = SvPV(seed, seed_len); |
150
|
0 |
3 |
if (!dsa) { |
156
|
0 |
0 |
if (err == 0) { |
193
|
1 |
0 |
dgst_pv = SvPV(dgst, dgst_len); |
194
|
0 |
1 |
if (!(sig = DSA_do_sign((const unsigned char *) dgst_pv, (int)dgst_len, dsa))) { |
214
|
44 |
0 |
dgst_pv = SvPV(dgst, dgst_len); |
217
|
0 |
44 |
if (!(DSA_sign(0, (const unsigned char *) dgst_pv, (int)dgst_len, sigret, &siglen, dsa))) { |
236
|
60 |
0 |
dgst_pv = SvPV(dgst, dgst_len); |
237
|
60 |
0 |
sig_pv = SvPV(sigbuf, sig_len); |
239
|
0 |
60 |
if (RETVAL == -1) |
253
|
3 |
0 |
dgst_pv = SvPV(dgst, dgst_len); |
255
|
0 |
3 |
if (RETVAL == -1) |
267
|
0 |
0 |
if(!(f = fopen(filename, "r"))) |
281
|
0 |
1 |
if(!(f = fopen(filename, "w"))) |
299
|
2 |
0 |
private_flag = SvTRUE( private_flag_SV ); |
|
0 |
2 |
private_flag = SvTRUE( private_flag_SV ); |
|
0 |
0 |
private_flag = SvTRUE( private_flag_SV ); |
|
0 |
2 |
private_flag = SvTRUE( private_flag_SV ); |
|
0 |
0 |
private_flag = SvTRUE( private_flag_SV ); |
|
0 |
0 |
private_flag = SvTRUE( private_flag_SV ); |
|
0 |
2 |
private_flag = SvTRUE( private_flag_SV ); |
|
0 |
0 |
private_flag = SvTRUE( private_flag_SV ); |
|
0 |
0 |
private_flag = SvTRUE( private_flag_SV ); |
|
0 |
0 |
private_flag = SvTRUE( private_flag_SV ); |
|
0 |
0 |
private_flag = SvTRUE( private_flag_SV ); |
|
0 |
0 |
private_flag = SvTRUE( private_flag_SV ); |
|
2 |
0 |
private_flag = SvTRUE( private_flag_SV ); |
|
2 |
0 |
private_flag = SvTRUE( private_flag_SV ); |
|
1 |
1 |
private_flag = SvTRUE( private_flag_SV ); |
|
0 |
1 |
private_flag = SvTRUE( private_flag_SV ); |
|
0 |
0 |
private_flag = SvTRUE( private_flag_SV ); |
|
1 |
1 |
private_flag = SvTRUE( private_flag_SV ); |
|
0 |
0 |
private_flag = SvTRUE( private_flag_SV ); |
300
|
2 |
0 |
key_string = SvPV( key_string_SV, key_string_length ); |
301
|
0 |
2 |
if( (stringBIO = BIO_new_mem_buf(key_string, (int)key_string_length)) == NULL ) |
305
|
1 |
1 |
: PEM_read_bio_DSA_PUBKEY( stringBIO, NULL, NULL, NULL ); |
308
|
0 |
2 |
if ( RETVAL == NULL ) |
320
|
0 |
2 |
if(!(f = fopen(filename, "r"))) |
334
|
0 |
2 |
if(!(f = fopen(filename, "w"))) |
348
|
0 |
2 |
if(!(f = fopen(filename, "r"))) |
362
|
0 |
2 |
if(!(f = fopen(filename, "w"))) |
472
|
2 |
0 |
p = BN_bin2bn(SvPV(p_SV, len), (int)len, NULL); |
474
|
2 |
0 |
if (NULL == old_q) { |
479
|
0 |
2 |
if (NULL == q) { |
483
|
2 |
0 |
if (NULL == old_g) { |
488
|
0 |
2 |
if (NULL == g) { |
493
|
0 |
2 |
if (!DSA_set0_pqg(dsa, p, q, g)) { |
513
|
2 |
0 |
q = BN_bin2bn(SvPV(q_SV, len), (int)len, NULL); |
515
|
0 |
2 |
if (NULL == old_p) { |
520
|
0 |
2 |
if (NULL == p) { |
524
|
0 |
2 |
if (NULL == old_g) { |
529
|
0 |
2 |
if (NULL == g) { |
534
|
0 |
2 |
if (!DSA_set0_pqg(dsa, p, q, g)) { |
554
|
2 |
0 |
g = BN_bin2bn(SvPV(g_SV, len), (int)len, NULL); |
556
|
0 |
2 |
if (NULL == old_p) { |
561
|
0 |
2 |
if (NULL == p) { |
565
|
0 |
2 |
if (NULL == old_q) { |
570
|
0 |
2 |
if (NULL == q) { |
575
|
0 |
2 |
if (!DSA_set0_pqg(dsa, p, q, g)) { |
591
|
2 |
0 |
pub_key = BN_bin2bn(SvPV(pub_key_SV, len), (int)len, NULL); |
592
|
0 |
2 |
if (!DSA_set0_key(dsa, pub_key, NULL)) { |
608
|
1 |
1 |
if (NULL == old_pub_key) { |
610
|
0 |
1 |
if (NULL == pub_key) { |
613
|
0 |
1 |
if (!DSA_set0_key(dsa, pub_key, NULL)) { |
619
|
2 |
0 |
priv_key = BN_bin2bn(SvPV(priv_key_SV, len), (int)len, NULL); |
620
|
0 |
2 |
if (!DSA_set0_key(dsa, NULL, priv_key)) { |
688
|
2 |
0 |
r = BN_bin2bn(SvPV(r_SV, len), (int)len, NULL); |
690
|
2 |
0 |
if (NULL == old_s) { |
695
|
0 |
2 |
if (NULL == s) { |
699
|
0 |
2 |
if (!DSA_SIG_set0(dsa_sig, r, s)) { |
716
|
2 |
0 |
s = BN_bin2bn(SvPV(s_SV, len), (int)len, NULL); |
718
|
0 |
2 |
if (NULL == old_r) { |
723
|
0 |
2 |
if (NULL == r) { |
727
|
0 |
2 |
if (!DSA_SIG_set0(dsa_sig, r, s)) { |