line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Archive::BagIt::Plugin::Algorithm::SHA512; |
2
|
8
|
|
|
8
|
|
4498
|
use strict; |
|
8
|
|
|
|
|
18
|
|
|
8
|
|
|
|
|
257
|
|
3
|
8
|
|
|
8
|
|
42
|
use warnings; |
|
8
|
|
|
|
|
27
|
|
|
8
|
|
|
|
|
276
|
|
4
|
8
|
|
|
8
|
|
44
|
use Carp qw( croak ); |
|
8
|
|
|
|
|
17
|
|
|
8
|
|
|
|
|
511
|
|
5
|
8
|
|
|
8
|
|
62
|
use Moo; |
|
8
|
|
|
|
|
14
|
|
|
8
|
|
|
|
|
82
|
|
6
|
8
|
|
|
8
|
|
2852
|
use namespace::autoclean; |
|
8
|
|
|
|
|
16
|
|
|
8
|
|
|
|
|
41
|
|
7
|
|
|
|
|
|
|
with 'Archive::BagIt::Role::Algorithm'; |
8
|
|
|
|
|
|
|
with 'Archive::BagIt::Role::OpenSSL'; |
9
|
|
|
|
|
|
|
our $VERSION = '0.095'; # VERSION |
10
|
|
|
|
|
|
|
# ABSTRACT: The default SHA algorithms plugin (default for v1.0) |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
has '+plugin_name' => ( |
13
|
|
|
|
|
|
|
is => 'ro', |
14
|
|
|
|
|
|
|
default => 'Archive::BagIt::Plugin::Algorithm::SHA512', |
15
|
|
|
|
|
|
|
); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
has '+name' => ( |
18
|
|
|
|
|
|
|
is => 'ro', |
19
|
|
|
|
|
|
|
#isa => 'Str', |
20
|
|
|
|
|
|
|
default => 'sha512', |
21
|
|
|
|
|
|
|
); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |