This file is indexed.

/usr/share/perl5/Net/OAuth/SignatureMethod/HMAC_SHA1.pm is in libnet-oauth-perl 0.27-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package Net::OAuth::SignatureMethod::HMAC_SHA1;
use warnings;
use strict;
use Digest::HMAC_SHA1;
use MIME::Base64;

sub sign {
    my $self = shift;
    my $request = shift;
    my $hmac = Digest::HMAC_SHA1->new($request->signature_key);
    $hmac->add($request->signature_base_string);
    return encode_base64($hmac->digest, '');
}

sub verify {
    my $self = shift;
    my $request = shift;
    return $request->signature eq $self->sign($request);
}

=head1 NAME

Net::OAuth::SignatureMethod::HMAC_SHA1 - HMAC_SHA1 Signature Method for OAuth protocol

=head1 SEE ALSO

L<Net::OAuth>, L<http://oauth.net>

=head1 AUTHOR

Keith Grennan, C<< <kgrennan at cpan.org> >>

=head1 COPYRIGHT & LICENSE

Copyright 2007 Keith Grennan, all rights reserved.

This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.

=cut

1;