Inherited Android code that uses the following cipher:
ks = new SecretKeySpec(key, "AES"); ciph = Cipher.getInstance("AES");
Since only "AES" is provided, I do not know what keys, modes, and add-ons are. I looked at the Bouncy Castle * documentation, but I cannot find where the AES instance is described. I would like to use a more explicit description of the instance (for example, "AES / ECB / PCKS5Padding"), if possible.
Does anyone know which keys, modes and additions this instance has?
Thanks!
* I read that Android uses Bouncy Castle as the default provider, but I did not find this official, so I could make a futile guess here.
source share