ec/dsa: use pow over square.multiply