Branch Coverage

blib/lib/Crypt/Rijndael_PP.pm
Criterion Covered Total %
branch 89 182 48.9


line true false branch
1017 2496716 9988 $_[0] && $_[1] ? :
1104 0 56120 unless @_ == 261
1231 426 0 $keyBits == 256 ? :
6 426 $keyBits == 192 ? :
6 432 $keyBits == 128 ? :
1233 6 0 $blockBits == 256 ? :
6 6 $blockBits == 192 ? :
426 12 $blockBits == 128 ? :
1236 432 6 $keyBits >= $blockBits ? :
1237 430 0 $tmp == 256 ? :
6 430 $tmp == 192 ? :
2 436 $tmp == 128 ? :
1289 194 3004 if ($KC != 8) { }
1353 3 0 $blockBits == 256 ? :
3 3 $blockBits == 192 ? :
1999 6 $blockBits == 128 ? :
1356 2002 3 $keyBits >= $blockBits ? :
1357 2001 0 $tmp == 256 ? :
3 2001 $tmp == 192 ? :
1 2004 $tmp == 128 ? :
1439 0 0 $blockBits == 256 ? :
0 0 $blockBits == 192 ? :
0 0 $blockBits == 128 ? :
1442 0 0 $keyBits >= $blockBits ? :
1443 0 0 $tmp == 256 ? :
0 0 $tmp == 192 ? :
0 0 $tmp == 128 ? :
1451 0 0 if $rounds > $ROUNDS
1484 0 0 if ($rounds == $ROUNDS)
1531 3 0 $blockBits == 256 ? :
3 3 $blockBits == 192 ? :
1999 6 $blockBits == 128 ? :
1535 2002 3 $keyBits >= $blockBits ? :
1536 2001 0 $tmp == 256 ? :
3 2001 $tmp == 192 ? :
1 2004 $tmp == 128 ? :
1631 0 0 $blockBits == 256 ? :
0 0 $blockBits == 192 ? :
0 0 $blockBits == 128 ? :
1635 0 0 $keyBits >= $blockBits ? :
1636 0 0 $tmp == 256 ? :
0 0 $tmp == 192 ? :
0 0 $tmp == 128 ? :
1645 0 0 if $rounds > $ROUNDS
1686 0 0 if ($rounds == 0)
1757 0 438 unless (defined $key and ref $key eq 'HASH')
1768 438 0 if ($direction == 0 or $direction == 1) { }
1781 438 0 if ($keyLen == 128 or $keyLen == 192 or $keyLen == 256) { }
1792 438 0 if (defined $keyMaterial)
1857 428 0 if ($mode == 1 or $mode == 2 or $mode == 3) { }
1882 428 0 if (defined $IV)
1922 0 2002 if (not defined $key or $$key{'direction'} != 0 or $$key{'keyLen'} != 128 and $$key{'keyLen'} != 192 and $$key{'keyLen'} != 256)
1933 0 6 if (not defined $cipher or $$cipher{'mode'} != 1 and $$cipher{'mode'} != 2 and $$cipher{'mode'} != 3 or $$cipher{'blockLen'} != 128 and $$cipher{'blockLen'} != 192 and $$cipher{'blockLen'} != 256)
1962 559 1446 if ($$cipher{'mode'} == 1) { }
1446 0 elsif ($$cipher{'mode'} == 2) { }
2060 0 2005 if (not defined $cipher && defined $key or $$key{'direction'} == 0 or $$cipher{'blockLen'} != $$key{'blockLen'})
2073 0 2002 if (not defined $key or $$key{'direction'} != 1 or $$key{'keyLen'} != 128 and $$key{'keyLen'} != 192 and $$key{'keyLen'} != 256)
2084 0 6 if (not defined $cipher or $$cipher{'mode'} != 1 and $$cipher{'mode'} != 2 and $$cipher{'mode'} != 3 or $$cipher{'blockLen'} != 128 and $$cipher{'blockLen'} != 192 and $$cipher{'blockLen'} != 256)
2113 559 1446 if ($$cipher{'mode'} == 1) { }
1446 0 elsif ($$cipher{'mode'} == 2) { }
2249 0 0 if (not defined $cipher && defined $key or $$key{'direction'} == 0 or $$cipher{'blockLen'} != $$key{'blockLen'})
2273 0 0 if ($$key{'direction'} == 0) { }
0 0 elsif ($$key{'direction'} == 1) { }
2352 0 10 unless defined $mode
2357 0 10 if (length($key) * 4 != $keysize)
2363 0 10 if $@
2366 0 10 if $@
2371 0 10 if $@
2395 0 896 if $@
2398 0 100 unless defined $out
2412 0 896 if $@
2415 0 100 unless defined $out
2423 0 209 unless defined $keysize
2424 0 209 unless defined $blocksize
2428 0 209 if (length $key < $keysize / 4) { }
0 209 elsif (length $key > $keysize / 4) { }
2436 0 209 if (length($data) % ($blocksize / 8))
2444 0 209 if $@
2451 0 209 if $@
2462 0 1109 if $@
2466 0 209 unless defined $out
2475 0 209 unless defined $keysize
2476 0 209 unless defined $blocksize
2480 0 209 if (length $key < $keysize / 4) { }
0 209 elsif (length $key > $keysize / 4) { }
2491 0 209 if $@
2498 0 209 if $@
2509 0 1109 if $@
2513 0 209 unless defined $out
2526 0 0 if (defined $self and ref $self and defined $$self{'keysize'})
2535 0 0 if (defined $self and ref $self and defined $$self{'blocksize'})