yy.pl 209 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/usr/local/bin/perl

use ExtUtils::testlib;

use SSLeay;

$a=SSLeay::BN::new();

$a+="1234567";

print $a->bn2hex()."\n";


for (1 .. 20)
	{
	$a*=$a;
	$b=$a->bn2hex();
	print " ".$b."\n".length($b)."\n";
	}