line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package OpenID::Lite::SignatureMethods; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
644
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
142
|
|
4
|
3
|
|
|
3
|
|
16
|
use warnings; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
96
|
|
5
|
|
|
|
|
|
|
|
6
|
3
|
|
|
3
|
|
510
|
use OpenID::Lite::Constants::AssocType qw(:all); |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
472
|
|
7
|
3
|
|
|
3
|
|
1615
|
use OpenID::Lite::SignatureMethod::HMAC_SHA1; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
72
|
|
8
|
3
|
|
|
3
|
|
1750
|
use OpenID::Lite::SignatureMethod::HMAC_SHA256; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
237
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
my %methods = ( |
11
|
|
|
|
|
|
|
HMAC_SHA1() => OpenID::Lite::SignatureMethod::HMAC_SHA1->new, |
12
|
|
|
|
|
|
|
HMAC_SHA256() => OpenID::Lite::SignatureMethod::HMAC_SHA256->new, |
13
|
|
|
|
|
|
|
); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub select_method { |
16
|
33
|
|
|
33
|
0
|
54
|
my ( $self, $type ) = @_; |
17
|
33
|
|
|
|
|
153
|
return $methods{$type}; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|