line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package OpenID::Lite::SessionHandler::DH::SHA256; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
7
|
use Any::Moose; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
8
|
|
4
|
|
|
|
|
|
|
extends 'OpenID::Lite::SessionHandler::DH'; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
522
|
use OpenID::Lite::Constants::AssocType qw(HMAC_SHA256); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
64
|
|
7
|
1
|
|
|
1
|
|
5
|
use OpenID::Lite::Constants::SessionType qw(DH_SHA256); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
45
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
4
|
use Digest::SHA (); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
120
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has '+_session_type' => ( |
12
|
|
|
|
|
|
|
default => DH_SHA256, |
13
|
|
|
|
|
|
|
); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
has '+_allowed_assoc_types' => ( |
16
|
|
|
|
|
|
|
default => sub { [ HMAC_SHA256 ] }, |
17
|
|
|
|
|
|
|
); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
has '+_secret_length' => ( |
20
|
|
|
|
|
|
|
default => 32, |
21
|
|
|
|
|
|
|
); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
override '_hash' => sub { |
24
|
|
|
|
|
|
|
my ( $self, $dh_sec ) = @_; |
25
|
|
|
|
|
|
|
return Digest::SHA::sha256( $dh_sec ); |
26
|
|
|
|
|
|
|
}; |
27
|
|
|
|
|
|
|
|
28
|
1
|
|
|
1
|
|
4
|
no Any::Moose; |
|
1
|
|
|
|
|
9
|
|
|
1
|
|
|
|
|
4
|
|
29
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|