BouncyCastle library won't export | Thales IoT Developer Community
May 28, 2019 - 4:16pm, 1582 views
I am trying to program a communication with AWS and GraphQL. I am at the step, where I need to sign the request on my EHS5. The problem is, when I use BouncyCastle library (because normal JavaME doesn't have HmacSha256 encoding) I am getting the following error.
Uncaught exception: java.lang.NoClassDefFoundError: org/bouncycastle/crypto/digests/SHA256Digest
- java.lang.Class.invoke_verify(), bci=0
- java.lang.Class.initialize(), bci=100
The problem is, I have the class marked as to be exported. I am not sure what I am doing wrong here. Here's ATI1.
If there is any other way to get HmacSha256 encoding or a way to fix this, please let me know. Our entire project is stuck on this and I don't know why is this happening.