Branch Coverage

blib/lib/Crypt/RSA/SS/PKCS1v15.pm
Criterion Covered Total %
branch 15 36 41.6


line true false branch
49 0 8 if ($params{'Version'})
62 0 18 unless $M
63 0 18 unless $key
67 0 18 unless ($em = $self->encode($M, $k))
68 0 0 if $self->errstr eq 'Message too long.'
70 0 0 if $self->errstr eq 'Intended encoded message length too short'
88 0 17 unless $M
89 0 17 unless $key
90 0 17 unless $S
92 0 17 if length $S != $k
99 0 17 unless ($em1 = $self->encode($M, $k))
100 0 0 if $self->errstr eq 'Message too long.'
102 0 0 if $self->errstr eq 'Intended encoded message length too short.'
108 12 5 if $em eq $em1
119 0 35 unless defined $encoding
121 0 35 unless defined $hashfunc
137 0 35 unless defined $H and length $H > 0
140 0 35 if $emlen < length($T) + 11