Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by MattPalmer1086

6 hours ago

Sure, you can't use built in multiplication, but it isn't a very big hurdle. Just use repeated squares, it's fairly trivial to implement. I've worked on software that did this on very low power mobile payment devices.

2 comments

MattPalmer1086

Reply

SkiFire13  6 hours ago

Repeated squares is a way to implement exponentiation, not multiplication.

  • MattPalmer1086  5 hours ago

    Oops, yes, I meant exponentiation. Which you need (mod n) in RSA.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities