Skip to content
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

Values of m, n, t?? #8

Open
rkarn opened this issue May 12, 2022 · 3 comments
Open

Values of m, n, t?? #8

rkarn opened this issue May 12, 2022 · 3 comments

Comments

@rkarn
Copy link

rkarn commented May 12, 2022

I need m>8, n>20 and t>3

I run the following command to generate keys:
python3 mceliece.py -v gen 8 20 3 PRIV_KEY_FILE PUB_KEY_FILE

I get below error:

Traceback (most recent call last):
File "/root/mceliece/mceliece.py", line 147, in
generate(int(args['M']), int(args['N']), int(args['T']), args['PRIV_KEY_FILE'], args['PUB_KEY_FILE'])
File "/root/mceliece/mceliece.py", line 44, in generate
mceliece.generate_random_keys()
File "/root/mceliece/mceliece/mceliececipher.py", line 37, in generate_random_keys
self.S_inv = self.S.inv()
File "/root/mceliece/mceliece/mathutils.py", line 503, in inv
eye = flint.nmod_mat(self.arr.shape[0], self.arr.shape[1],
IndexError: tuple index out of range

How to set the correct combination of m,n,t?

@byAhro
Copy link

byAhro commented Jun 7, 2022

Hi, I see that you have got the same problem like me. I found out that there is a few options to generate the pair of the keys but only one is giving fine plainText after decryption. Is there any solution to use the parametrs like from article which I am attaching belove?
https://eprint.iacr.org/2010/271.pdf

@rkarn
Copy link
Author

rkarn commented Jun 16, 2022

Hi @byAhro , in the paper you attached, the value of parameters are huge. My machine is unable to accept that. I tried with comparatively smaller value as follows:

m=20; n = 1024; t=50

It falls into infinite loop and eventually I had to terminate the program.

image

@ammuiyer
Copy link

Was this ever figured out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants