Lite/SessionHandler/DH/SHA1.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 20 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Lite/Role/Parser.pm ↑ Summary Lite/SessionHandler/DH/SHA256.pm »
1 package OpenID::Lite::SessionHandler::DH::SHA1;
2  
3 1 ▶use Any::Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 extends 'OpenID::Lite::SessionHandler::DH';
5  
6 1 ▶use OpenID::Lite::Constants::AssocType qw(HMAC_SHA1);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use OpenID::Lite::Constants::SessionType qw(DH_SHA1);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use Digest::SHA ();
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 has '+_session_type' => (
12 default => DH_SHA1,
13 );
14  
15 has '+_allowed_assoc_types' => (
16 default => sub { [ HMAC_SHA1 ] },
17 );
18  
19 has '+_secret_length' => (
20 default => 20,
21 );
22  
23 override '_hash' => sub {
24 my ( $self, $dh_sec ) = @_;
25 return Digest::SHA::sha1( $dh_sec );
26 };
27  
28 1 ▶no Any::Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
29 __PACKAGE__->meta->make_immutable;
30 1;
31  
32  
« Lite/Role/Parser.pm ↑ Summary Lite/SessionHandler/DH/SHA256.pm »