We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e36e26b commit a7e6447Copy full SHA for a7e6447
lib/Crypt/OpenPGP/Buffer.pm
@@ -9,7 +9,8 @@ sub get_mp_int {
9
my $bytes = int(($bits + 7) / 8);
10
my $off = $buf->{offset};
11
$buf->{offset} += $bytes;
12
- bin2mp($buf->bytes($off, $bytes));
+ my $int = bin2mp($buf->bytes($off, $bytes));
13
+ "$int";
14
}
15
16
sub put_mp_int {
t/02-buffer.t
@@ -1,10 +1,10 @@
1
use strict;
2
use Test::More tests => 6;
3
4
-use Math::Pari;
+use Math::BigInt;
5
use Crypt::OpenPGP::Buffer;
6
7
-my @num = map { PARI( $_ ) } qw( 34093840983 99999999999999999999 1 );
+my @num = map { Math::BigInt->new( $_ ) } qw( 34093840983 99999999999999999999 1 );
8
for my $n ( @num ) {
my $buffer = Crypt::OpenPGP::Buffer->new;
0 commit comments