-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
galois.GF(2^128) problem #531
Comments
I'm glad you're enjoying the library. The keyword argument you're looking for is So, for you, you can create the field like this In [1]: import galois
In [2]: GF = galois.GF(2**128, irreducible_poly="x^128 + x^7 + x^2 + x + 1")
In [3]: GF
Out[3]: <class 'galois.GF(2^128)'>
In [4]: print(GF.properties)
Galois Field:
name: GF(2^128)
characteristic: 2
degree: 128
order: 340282366920938463463374607431768211456
irreducible_poly: x^128 + x^7 + x^2 + x + 1
is_primitive_poly: True
primitive_element: x |
Thanks for the solution you provided! |
Hello,
I am relatively new to coding and want to express my gratitude for your library, which helps me a lot!
Currently, I am encountering an issue while working with calculations in GF(2^128). When attempting to create a class for GF(2^128), I encountered a LookupError. When using "galois.irreducible_poly," I identified an irreducible polynomial: "x^128 + x^7 + x^2 + x + 1."
I am seeking guidance on how to make GF(2^128) compatible with this specific irreducible polynomial. Any assistance would be greatly appreciated!
Thank you very much for your time and support!
The text was updated successfully, but these errors were encountered: