| 1 | package Crypt::Perl::X::TooLongToSign; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use parent 'Crypt::Perl::X::Base'; | ||
| 7 | |||
| 8 | sub new { | ||
| 9 | my ($class, $key_bits, $signee_bits) = @_; | ||
| 10 | |||
| 11 | 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; |