line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package OpenID::Lite::SessionHandler::DH::SHA1; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
5
|
use Any::Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
6
|
|
4
|
|
|
|
|
|
|
extends 'OpenID::Lite::SessionHandler::DH'; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
484
|
use OpenID::Lite::Constants::AssocType qw(HMAC_SHA1); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
56
|
|
7
|
1
|
|
|
1
|
|
6
|
use OpenID::Lite::Constants::SessionType qw(DH_SHA1); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
44
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
2117
|
use Digest::SHA (); |
|
1
|
|
|
|
|
3408
|
|
|
1
|
|
|
|
|
116
|
|
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
|
|
|
1
|
|
7
|
no Any::Moose; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
8
|
|
29
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|