Key mangling, and elliptic curves.
[catacomb-perl] / test.pl
... / ...
CommitLineData
1use Catacomb qw(:const);
2
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";