0
$\begingroup$

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

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.