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
645 stars 242 forks source link

epoint2_set No irreducible basis defined #82

Open BambooAce opened 4 years ago

BambooAce commented 4 years ago

epoint *p2 = epoint_init(); big x2 = mirvar(0); big y2 = mirvar(0); cinstr(x2, "6C997F3E7F2C66A4A5D2FDA13756A37B1"); cinstr(y2, "4A38D11829D32D347BD0C0F584D546E9A"); epoint2_set(x2, y2, 0, p2);

When call epoint2_set , the process crash, and display No irreducible basis defined

mcarrickscott commented 4 years ago

Hello

You need to make a call to

prepare_basis(m,a,b,c,TRUE);

before calling epoint2_set()

where m is the size of the field (as in 2^m) and a,b,c describe the trinomial or pentanomial basis for the field.

Mike

On Tue, Oct 15, 2019 at 10:27 AM BambooAce notifications@github.com wrote:

epoint *p2 = epoint_init(); big x2 = mirvar(0); big y2 = mirvar(0); cinstr(x2, "6C997F3E7F2C66A4A5D2FDA13756A37B1"); cinstr(y2, "4A38D11829D32D347BD0C0F584D546E9A"); epoint2_set(x2, y2, 0, p2);

When call epoint2_set , the process crash, and display No irreducible basis defined

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/miracl/MIRACL/issues/82?email_source=notifications&email_token=AAU3ZDQI53IZY4EBBJY2YN3QOWEIDA5CNFSM4JAZYNIKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HR2BJLQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAU3ZDVO5A5ZHFCJCKWRCVDQOWEIDANCNFSM4JAZYNIA .