| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Crypt::Mac; |
|
2
|
|
|
|
|
|
|
|
|
3
|
14
|
|
|
14
|
|
109
|
use strict; |
|
|
14
|
|
|
|
|
25
|
|
|
|
14
|
|
|
|
|
406
|
|
|
4
|
14
|
|
|
14
|
|
67
|
use warnings; |
|
|
14
|
|
|
|
|
25
|
|
|
|
14
|
|
|
|
|
539
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.079_007'; |
|
6
|
|
|
|
|
|
|
|
|
7
|
14
|
|
|
14
|
|
71
|
use Carp; |
|
|
14
|
|
|
|
|
22
|
|
|
|
14
|
|
|
|
|
913
|
|
|
8
|
|
|
|
|
|
|
$Carp::Internal{(__PACKAGE__)}++; |
|
9
|
14
|
|
|
14
|
|
5184
|
use CryptX; |
|
|
14
|
|
|
|
|
37
|
|
|
|
14
|
|
|
|
|
3414
|
|
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub addfile { |
|
12
|
0
|
|
|
0
|
0
|
|
my ($self, $file) = @_; |
|
13
|
|
|
|
|
|
|
|
|
14
|
0
|
|
|
|
|
|
my $handle; |
|
15
|
0
|
0
|
|
|
|
|
if (ref(\$file) eq 'SCALAR') { |
|
16
|
0
|
0
|
|
|
|
|
open($handle, "<", $file) || die "FATAL: cannot open '$file': $!"; |
|
17
|
0
|
|
|
|
|
|
binmode($handle); |
|
18
|
|
|
|
|
|
|
} |
|
19
|
|
|
|
|
|
|
else { |
|
20
|
0
|
|
|
|
|
|
$handle = $file |
|
21
|
|
|
|
|
|
|
} |
|
22
|
0
|
0
|
|
|
|
|
die "FATAL: invalid handle" unless defined $handle; |
|
23
|
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
my $n; |
|
25
|
0
|
|
|
|
|
|
my $buf = ""; |
|
26
|
0
|
|
|
|
|
|
local $SIG{__DIE__} = \&CryptX::_croak; |
|
27
|
0
|
|
|
|
|
|
while (($n = read($handle, $buf, 32*1024))) { |
|
28
|
0
|
|
|
|
|
|
$self->add($buf); |
|
29
|
|
|
|
|
|
|
} |
|
30
|
0
|
0
|
|
|
|
|
die "FATAL: read failed: $!" unless defined $n; |
|
31
|
|
|
|
|
|
|
|
|
32
|
0
|
|
|
|
|
|
return $self; |
|
33
|
|
|
|
|
|
|
} |
|
34
|
|
|
|
|
|
|
|
|
35
|
0
|
|
|
0
|
|
|
sub CLONE_SKIP { 1 } # prevent cloning |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=pod |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 NAME |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Crypt::Mac - [internal only] |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=cut |