line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Crypt::Rijndael::PP::Debug; |
2
|
|
|
|
|
|
|
|
3
|
8
|
|
|
8
|
|
31
|
use strict; |
|
8
|
|
|
|
|
11
|
|
|
8
|
|
|
|
|
302
|
|
4
|
8
|
|
|
8
|
|
32
|
use warnings; |
|
8
|
|
|
|
|
10
|
|
|
8
|
|
|
|
|
261
|
|
5
|
|
|
|
|
|
|
|
6
|
8
|
|
|
8
|
|
29
|
use Exporter 'import'; |
|
8
|
|
|
|
|
9
|
|
|
8
|
|
|
|
|
1089
|
|
7
|
|
|
|
|
|
|
our @EXPORT_OK = qw( generate_printable_state ); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.2.1'; # VERSION |
10
|
|
|
|
|
|
|
# ABSTRACT: Debugging and Formatting Methods |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub generate_printable_state { |
13
|
25
|
|
|
25
|
0
|
3427
|
my $state = shift; |
14
|
|
|
|
|
|
|
|
15
|
25
|
|
|
|
|
36
|
my $state_as_string = ""; |
16
|
|
|
|
|
|
|
|
17
|
25
|
|
|
|
|
78
|
for( my $row_index = 0; $row_index < 4; $row_index++ ) { |
18
|
100
|
|
|
|
|
156
|
for( my $column_index = 0; $column_index < 4; $column_index++ ) { |
19
|
400
|
|
|
|
|
527
|
my $state_byte = unpack("H2", $state->[$row_index][$column_index] ); |
20
|
400
|
|
|
|
|
660
|
$state_as_string .= $state_byte . " "; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
100
|
|
|
|
|
86
|
chop $state_as_string; |
24
|
100
|
|
|
|
|
161
|
$state_as_string .= "\n"; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
25
|
|
|
|
|
24
|
chop $state_as_string; |
28
|
|
|
|
|
|
|
|
29
|
25
|
|
|
|
|
88
|
return $state_as_string; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |