You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot create MeRSA Keypair (MpRSA works fine) seems to be Flexiprovider issue or MeRSA does not like the parameters we provide.
To Reproduce click on "create new keypair" in keystore view, select MeRSA and enter password, click next.
java.security.KeyStoreException
at com.sun.crypto.provider.JceKeyStore.engineSetKeyEntry(JceKeyStore.java:283)
at java.security.KeyStoreSpi.engineSetEntry(KeyStoreSpi.java:536)
at java.security.KeyStore.setEntry(KeyStore.java:1326)
at org.jcryptool.crypto.keystore.backend.KeyStoreManager.addKeyPair(KeyStoreManager.java:237)
at org.jcryptool.crypto.keystore.ui.actions.AbstractKeyStoreAction.addKeyPairStatic(AbstractKeyStoreAction.java:75)
at org.jcryptool.crypto.keystore.ui.actions.AbstractKeyStoreAction.addKeyPair(AbstractKeyStoreAction.java:82)
at org.jcryptool.crypto.keystore.ui.actions.AbstractNewKeyStoreEntryAction.performNewKeyAction(AbstractNewKeyStoreEntryAction.java:24)
at org.jcryptool.crypto.flexiprovider.keystore.actions.NewKeyPairAction.access$0(NewKeyPairAction.java:1)
at org.jcryptool.crypto.flexiprovider.keystore.actions.NewKeyPairAction$1.run(NewKeyPairAction.java:119)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
The text was updated successfully, but these errors were encountered:
The parameters provided are fine. This is a FexiProvider issue due to a faulty constructor:
The instance of PrivateKey (in this case an instance of MeRSAPrivateKey) with which addKeyPair is called has got a member variable k (the exponent) that is null. The reason for this is that in the constructor
protected MeRSAPrivateKey(FlexiBigInt n, FlexiBigInt e, FlexiBigInt d,
FlexiBigInt p, FlexiBigInt q, FlexiBigInt dP, FlexiBigInt dQ,
FlexiBigInt crtCoeff, FlexiBigInt k, FlexiBigInt eInvP) {
super(n, e, d, p, q, dP, dQ, crtCoeff);
this.eInvP = eInvP;
this.crtCoeff = crtCoeff;
}
k is not set.
After setting a value for k (e. g. new de.flexiprovider.common.math.FlexiBigInt("1")) in debug mode a key pair is generated and displayed in the keystore view.
Cannot create MeRSA Keypair (MpRSA works fine) seems to be Flexiprovider issue or MeRSA does not like the parameters we provide.
To Reproduce click on "create new keypair" in keystore view, select MeRSA and enter password, click next.
java.security.KeyStoreException
at com.sun.crypto.provider.JceKeyStore.engineSetKeyEntry(JceKeyStore.java:283)
at java.security.KeyStoreSpi.engineSetEntry(KeyStoreSpi.java:536)
at java.security.KeyStore.setEntry(KeyStore.java:1326)
at org.jcryptool.crypto.keystore.backend.KeyStoreManager.addKeyPair(KeyStoreManager.java:237)
at org.jcryptool.crypto.keystore.ui.actions.AbstractKeyStoreAction.addKeyPairStatic(AbstractKeyStoreAction.java:75)
at org.jcryptool.crypto.keystore.ui.actions.AbstractKeyStoreAction.addKeyPair(AbstractKeyStoreAction.java:82)
at org.jcryptool.crypto.keystore.ui.actions.AbstractNewKeyStoreEntryAction.performNewKeyAction(AbstractNewKeyStoreEntryAction.java:24)
at org.jcryptool.crypto.flexiprovider.keystore.actions.NewKeyPairAction.access$0(NewKeyPairAction.java:1)
at org.jcryptool.crypto.flexiprovider.keystore.actions.NewKeyPairAction$1.run(NewKeyPairAction.java:119)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
The text was updated successfully, but these errors were encountered: