June 13, 2016 - 5:29pm, 3031 views
AES-GCM ciphering is supported by IMP-NG BGS5 WTK library?
Have you got an example Java code that using Cipher class for AES-GCM encrypt-decrypt?
When I try creating an instance of Cipher class like below,
private Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding");
I'm receiving java.security.NoSuchAlgorithmException: AES/GCM/NoPadding.
If I change transformation string as "AES/CBC/NoPadding" or "AES/CBC/PKCS5Padding" it is OK. No exception.
How can I use "AES/GCM/NoPadding" transformation with Cipher class?
Using external library, updating wtk or else?
Is there a way of doing this?
It is not supported. As far as I know it is only supported in Java 8.
Unfortunately we have currently no examples for JSR177.
But thanks for pointing it out. We might prepare something in the future.
Thanks for the answer.
How can I do that? I need it now.
Some options that comes to my mind is
- Updating wtk jar to provide Java 8 support.(Is it possible?)
- Using an external java implementation like bouncy castle api.
There is an embedded Java on the the module and it is not possible to update it. Of course you can use external libraries in your project but these libraries must be compatible with Microedition Java IMP_NG CLDC 1.1. Most probably you would need to adopt some library before you would be able to use it.
© 2013-2014 Gemalto M2M GmbH