Gemalto is now part of the Thales Group, find out more.

You are here

BouncyCastle library won't export | Thales IoT Developer Community

petr.kabrt

May 28, 2019 - 4:16pm, 653 views

Hello,

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.

ati1

Cinterion

EHS5-E

REVISION 03.001

A-REVISION 00.000.55

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.

Best Regards,

Petr