line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Digest::EdonR; |
2
|
|
|
|
|
|
|
|
3
|
7
|
|
|
7
|
|
264218
|
use strict; |
|
7
|
|
|
|
|
20
|
|
|
7
|
|
|
|
|
323
|
|
4
|
7
|
|
|
7
|
|
42
|
use warnings; |
|
7
|
|
|
|
|
18
|
|
|
7
|
|
|
|
|
458
|
|
5
|
7
|
|
|
7
|
|
9077
|
use parent qw(Exporter Digest::base); |
|
7
|
|
|
|
|
3752
|
|
|
7
|
|
|
|
|
43
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.05'; |
8
|
|
|
|
|
|
|
$VERSION = eval $VERSION; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
eval { |
11
|
|
|
|
|
|
|
require XSLoader; |
12
|
|
|
|
|
|
|
XSLoader::load(__PACKAGE__, $VERSION); |
13
|
|
|
|
|
|
|
1; |
14
|
|
|
|
|
|
|
} or do { |
15
|
|
|
|
|
|
|
require DynaLoader; |
16
|
|
|
|
|
|
|
DynaLoader::bootstrap(__PACKAGE__, $VERSION); |
17
|
|
|
|
|
|
|
}; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
our @EXPORT_OK = qw( |
20
|
|
|
|
|
|
|
edonr_224 edonr_224_hex edonr_224_base64 |
21
|
|
|
|
|
|
|
edonr_256 edonr_256_hex edonr_256_base64 |
22
|
|
|
|
|
|
|
edonr_384 edonr_384_hex edonr_384_base64 |
23
|
|
|
|
|
|
|
edonr_512 edonr_512_hex edonr_512_base64 |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub add_bits { |
27
|
205
|
|
|
205
|
0
|
196402
|
my ($self, $data, $bits) = @_; |
28
|
205
|
100
|
|
|
|
700
|
if (2 == @_) { |
29
|
5
|
|
|
|
|
62
|
return $self->_add_bits(pack('B*', $data), length $data); |
30
|
|
|
|
|
|
|
} |
31
|
200
|
|
|
|
|
3058
|
return $self->_add_bits($data, $bits); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |