line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Crypt::DES_EEE3; |
3
|
1
|
|
|
1
|
|
6389
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
37
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
847
|
use Crypt::DES; |
|
1
|
|
|
|
|
1052
|
|
|
1
|
|
|
|
|
43
|
|
6
|
1
|
|
|
1
|
|
1059
|
use Crypt::DES_EDE3; |
|
1
|
|
|
|
|
425
|
|
|
1
|
|
|
|
|
34
|
|
7
|
1
|
|
|
1
|
|
6
|
use vars qw( $VERSION @ISA ); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
161
|
|
8
|
|
|
|
|
|
|
$VERSION = '0.01'; |
9
|
|
|
|
|
|
|
@ISA= qw(Crypt::DES_EDE3); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub encrypt { |
12
|
1
|
|
|
1
|
1
|
288
|
my($ede3, $block) = @_; |
13
|
1
|
|
|
|
|
9
|
$ede3->{des3}->encrypt( |
14
|
|
|
|
|
|
|
$ede3->{des2}->encrypt( |
15
|
|
|
|
|
|
|
$ede3->{des1}->encrypt($block) |
16
|
|
|
|
|
|
|
) |
17
|
|
|
|
|
|
|
); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub decrypt { |
21
|
1
|
|
|
1
|
1
|
47
|
my($ede3, $block) = @_; |
22
|
1
|
|
|
|
|
7
|
$ede3->{des1}->decrypt( |
23
|
|
|
|
|
|
|
$ede3->{des2}->decrypt( |
24
|
|
|
|
|
|
|
$ede3->{des3}->decrypt($block) |
25
|
|
|
|
|
|
|
) |
26
|
|
|
|
|
|
|
); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
__END__ |