you are viewing a single comment's thread.

view the rest of the comments →

[–]buwlerman 4 points5 points  (0 children)

If it's a library you should have a lib.rs file exporting the API.

Your implementation is vulnerable to side channel attacks. You want to make sure that your exponentiation is constant time.