File Coverage

blib/lib/MicroECC.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


line stmt bran cond sub pod time code
1             package MicroECC;
2              
3 1     1   67424 use 5.010001;
  1         3  
4 1     1   5 use strict;
  1         1  
  1         20  
5 1     1   4 use warnings;
  1         2  
  1         58  
6              
7             use constant {
8 1         265 uECC_secp160r1 => 0,
9             uECC_secp192r1 => 1,
10             uECC_secp224r1 => 2,
11             uECC_secp256r1 => 3,
12             uECC_secp256k1 => 4,
13 1     1   7 };
  1         2  
14              
15             require Exporter;
16              
17             our @ISA = qw(Exporter);
18              
19             # Items to export into callers namespace by default. Note: do not export
20             # names by default without a very good reason. Use EXPORT_OK instead.
21             # Do not simply export all your public functions/methods/constants.
22              
23             # This allows declaration use MicroECC ':all';
24             # If you do not need this, moving things directly into @EXPORT or @EXPORT_OK
25             # will save memory.
26             our %EXPORT_TAGS = ( 'all' => [ qw(
27             uECC_secp160r1 uECC_secp192r1 uECC_secp224r1 uECC_secp256r1 uECC_secp256k1
28             make_key valid_public_key shared_secret curve_public_key_size curve_private_key_size
29             compute_public_key verify sign
30             ) ] );
31              
32             our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
33              
34             our @EXPORT = qw(
35            
36             );
37              
38             our $VERSION = '0.01';
39              
40             require XSLoader;
41             XSLoader::load('MicroECC', $VERSION);
42              
43              
44              
45             # Preloaded methods go here.
46              
47             1;
48             __END__