Hi,

I'm using imports from the Bouncy Castle crypto api for Codename One. 

import javabc.BigInteger;
import org.bouncycastle.crypto.digests.SHA256Digest;
import org.bouncycastle.crypto.params.RSAKeyParameters;
import org.bouncycastle.crypto.signers.RSADigestSigner;
import org.bouncycastle.util.encoders.Base64;

The BigInteger import surprised me a bit since there is 
com.codename1.util.BigInteger  version, but that one 
isn't compatible with the RSAKeyParameters object. 

The program compiles and runs, the problem is the result - for some reason 
it won't verify the signature,  while
in standard Java environment it does. 
 

Dátum: streda 1. júla 2020, čas: 5:12:05 UTC+2, odosielateľ: Shai Almog

> Hi,
> which imports are you using?
> You need to be careful about importing unsupported java packages. 
>
> Try using this: https://stackoverflow.com/a/57560500/756809
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/b7dc6056-f9a9-46e9-a20f-ae242568f1cdn%40googlegroups.com.

Reply via email to