line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Crypt::Rijndael::PP::Debug; |
2
|
|
|
|
|
|
|
|
3
|
8
|
|
|
8
|
|
33
|
use strict; |
|
8
|
|
|
|
|
9
|
|
|
8
|
|
|
|
|
245
|
|
4
|
8
|
|
|
8
|
|
30
|
use warnings; |
|
8
|
|
|
|
|
11
|
|
|
8
|
|
|
|
|
180
|
|
5
|
|
|
|
|
|
|
|
6
|
8
|
|
|
8
|
|
25
|
use Exporter 'import'; |
|
8
|
|
|
|
|
12
|
|
|
8
|
|
|
|
|
1035
|
|
7
|
|
|
|
|
|
|
our @EXPORT_OK = qw( generate_printable_state ); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.2.0'; # VERSION |
10
|
|
|
|
|
|
|
# ABSTRACT: Debugging and Formatting Methods |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub generate_printable_state { |
13
|
25
|
|
|
25
|
0
|
4208
|
my $state = shift; |
14
|
|
|
|
|
|
|
|
15
|
25
|
|
|
|
|
38
|
my $state_as_string = ""; |
16
|
|
|
|
|
|
|
|
17
|
25
|
|
|
|
|
74
|
for( my $row_index = 0; $row_index < 4; $row_index++ ) { |
18
|
100
|
|
|
|
|
175
|
for( my $column_index = 0; $column_index < 4; $column_index++ ) { |
19
|
400
|
|
|
|
|
497
|
my $state_byte = unpack("H2", $state->[$row_index][$column_index] ); |
20
|
400
|
|
|
|
|
671
|
$state_as_string .= $state_byte . " "; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
100
|
|
|
|
|
91
|
chop $state_as_string; |
24
|
100
|
|
|
|
|
151
|
$state_as_string .= "\n"; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
25
|
|
|
|
|
30
|
chop $state_as_string; |
28
|
|
|
|
|
|
|
|
29
|
25
|
|
|
|
|
86
|
return $state_as_string; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |