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