miracl / MIRACL

MIRACL Cryptographic SDK: Multiprecision Integer and Rational Arithmetic Cryptographic Library is a C software library that is widely regarded by developers as the gold standard open source SDK for elliptic curve cryptography (ECC).
https://miracl.com
652 stars 242 forks source link

How to modulo a large negative number #118

Closed qaz1423078740 closed 1 year ago

qaz1423078740 commented 1 year ago

I want to implement modulo negative numbers. How do I do that

mcarrickscott commented 1 year ago

Read sections 4.1 and 4.2 of the manual, which describe how multi-precision numbers are represented.

As stated there, there is no support for negative numbers

Mike

On Sun, May 21, 2023 at 11:12 AM qaz1423078740 @.***> wrote:

I want to implement modulo negative numbers. How do I do that

— Reply to this email directly, view it on GitHub https://github.com/miracl/MIRACL/issues/118, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAU3ZDWHNL4TU6RG6EG4SJDXHHS7LANCNFSM6AAAAAAYJJUGPQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>