Crypt-MagicSignatures-Key
view release on metacpan or search on metacpan
t/14-object.t view on Meta::CPAN
WX6US5Vsi31HHFh_rku1OPdPrHjQhtN8HeFYnNBpd4U
AA0=.:::::=
TEST_PKEY
ok(my $key4 = Crypt::MagicSignatures::Key->new($test_public_key), 'New public key without e');
is($key4->e, '65537', 'Exponent default');
# Set e to nan:
stderr_like(
sub {
ok(!$key4->e(Math::BigInt->bnan), 'Set e to NaN');
},
qr/e is not a number/,
'Set e to NaN'
);
# Set d to nan:
stderr_like(
sub {
ok(!$key4->d(Math::BigInt->bnan), 'Set d to NaN');
},
qr/d is not a number/,
'Set d to NaN'
);
no strict 'refs';
# test rsasp1
stderr_like(
sub {
*{"${module}::_rsasp1"}->($key3, Math::BigInt->new($key3->n));
},
qr/Message representative out of range/,
( run in 0.242 second using v1.01-cache-2.11-cpan-4d50c553e7e )