Key mangling, and elliptic curves.
[catacomb-perl] / test.pl
CommitLineData
660b443c 1use Catacomb qw(:const);
2
a1a90aaf 3($c, $g, $r, $h) = Catacomb::EC::Curve->getinfo("secp160r1");
4print $g->atinfp(), ": ", $g->x, ", ", $g->y, "\n";
5$p = $c->mul($g, $r);
6print $p->atinfp(), "\n";