Score:0

How can I change the McEliece main parameters?

aq flag

I use the Bouncy Castle Crypto API to implement McEliece in Java. I have also managed to encrypt and decrypt a message and it works without any problems.

When I use the debugger, I see that the program uses n = 2048, k = 1498, t = 50 as default parameters. Is it possible to change these parameters?

The first step I do is:

McElieceCipher cipher = new McElieceCipher();
McElieceKeyPairGenerator generator = new McElieceKeyPairGenerator();
AsymmetricCipherKeyPair keyPair = generator.generateKeyPair();

I know that there is an init method in the KeyGenerator where you can set this but it did not work... I have looked at these docs for this:

https://www.bouncycastle.org/docs/docs1.5on/org/bouncycastle/pqc/crypto/mceliece/McElieceParameters.html

https://www.bouncycastle.org/docs/docs1.5on/org/bouncycastle/pqc/crypto/mceliece/McElieceKeyGenerationParameters.html

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.