JSR177 API- Supported Transformation Types | Telit Cinterion IoT Developer Community
August 3, 2017 - 9:28am, 1836 views
Hello,
I will use JSR177 API of WTK in my application. I will encrypt/decrypt some files.
Cipher class in the API is used for encryption and decryption operations.
At first, static getInstance method of Cipher class is called to get a Cipher instance. After that, encryption/decryption operations are carried out using this instance.
getInstance method gets a String parameter called transformation. The form of transformation is explained in JSR177 javadoc like below:
A transformation is of the form:
- "algorithm/mode/padding" or
- "algorithm"
(in the latter case, provider-specific default values for the mode and padding scheme are used). For example, the following is a valid transformation:
Cipher c = Cipher.getInstance("DES/CBC/PKCS5Padding");
My question is, which algorithm/mode/padding combinations are supported by module(BGS5) WTK?
Is there a list documented on somewhere?
Generally the possible values of “transformation”, could be found on the following web page:
http://download.oracle.com/otn_hosted_doc/jdeveloper/904preview/jdk14doc...
But you are right that the API documentation does not specify which “<Algorithm>/<Mode>/<Padding>” values are supported.
I'll request the improvement on that.
In a meantime I have sent you some more information by email.
Regards,
Bartłomiej
Hello Bartlomiej,
Thanks for the answer and consideration.
Best Regards,