blib/lib/Crypt/DES_EEE3.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 2 / 2 totaltotal 100% 27 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1  
2 package Crypt::DES_EEE3;
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use Crypt::DES;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Crypt::DES_EDE3;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use vars qw( $VERSION @ISA );
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 $VERSION = '0.01';
9 1 @ISA= qw(Crypt::DES_EDE3);
10  
11 1 ▶sub encrypt {
Subroutine encrypt: called CC=1 SCAR=0.0
Pod documented
12 1 my($ede3, $block) = @_;
13 $ede3->{des3}->encrypt(
14 $ede3->{des2}->encrypt(
15 1 $ede3->{des1}->encrypt($block)
16 )
17 );
18 }
19  
20 1 ▶sub decrypt {
Subroutine decrypt: called CC=1 SCAR=0.0
Pod documented
21 1 my($ede3, $block) = @_;
22 $ede3->{des1}->decrypt(
23 $ede3->{des2}->decrypt(
24 1 $ede3->{des3}->decrypt($block)
25 )
26 );
27 }
28  
29 1 1;
30 __END__
↑ Summary