lib/Crypt/Perl/X/TooLongToSign.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 11 | 11 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 15 | 16 | 93.7 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Crypt::Perl::X::TooLongToSign; | ||||||
2 | |||||||
3 | 2 | 2 | 1913 | use strict; | |||
2 | 17 | ||||||
2 | 86 | ||||||
4 | 2 | 2 | 19 | use warnings; | |||
2 | 17 | ||||||
2 | 150 | ||||||
5 | |||||||
6 | 2 | 2 | 18 | use parent 'Crypt::Perl::X::Base'; | |||
2 | 14 | ||||||
2 | 39 | ||||||
7 | |||||||
8 | sub new { | ||||||
9 | 42 | 42 | 0 | 524 | my ($class, $key_bits, $signee_bits) = @_; | ||
10 | |||||||
11 | 42 | 1410 | return $class->SUPER::new( "A $key_bits-bit key cannot sign a $signee_bits-bit payload!", { key_bits => $key_bits, payload_bits => $signee_bits } ); | ||||
12 | } | ||||||
13 | |||||||
14 | 1; |