Branch Coverage

blib/lib/Crypt/EECDH.pm
Criterion Covered Total %
branch 19 28 67.8


line true false branch
35 2 0 if (defined $arg{'SigningKey'} and defined $arg{'Signature'})
37 1 1 if ($self->sigscheme eq 'Ed25519') { }
38 0 1 unless &Crypt::Ed25519::verify($arg{'PublicKey'}, $arg{'SigningKey'}, $arg{'Signature'})
43 0 1 unless $ecdsa->verify('Message', $arg{'PublicKey'}, 'Signature', $arg{'Signature'}, 'Key', $arg{'SigningKey'})
69 0 2 if $options ne ''
74 0 2 if &hmac_sha256($iv . $ciphertext, $sign_key) ne $mac
80 0 2 unless substr($plaintext, -$pad_length, $pad_length, '') eq chr($pad_length) x $pad_length
89 2 2 if ($arg{'PrivateKey'}) { }
92 1 1 if ($self->sigscheme eq 'Ed25519') { }
108 1 1 if ($self->sigscheme eq 'Ed25519') { }
119 1 8 if $auto eq 'DESTROY'
120 8 0 if ($auto =~ /^(debug|sigscheme)$/x) { }
121 2 6 if defined $_[0]
131 0 0 if $self->debug