ablumenf / ECCpy

Elliptic Curve Cryptography (ECC) Toolkit (Python)
1 stars 2 forks source link

How to present an integer to polynomial? #1

Open JayDao-itivnu opened 3 years ago

JayDao-itivnu commented 3 years ago

Your elements are presenting as polynomial forms. How to present them as integer numbers? Thank you

ablumenf commented 3 years ago

Can you be a bit more specific? Elements in cryptography can generally be thought of as numbers mod a prime (if dealing with prime fields), or in the case of binary fields, polynomials mod an irreducible polynomial. You can read a little bit about binary fields here: https://aaronblumenfeld.com/crypto/numtheory/#binary

If by polynomial, you mean e.g., y^2 = x^3 + 64379x + 22921 (mod 71933), that's just the form of an elliptic curve.