problem with j2me crypto class
Hi all... below decryption code is work on java sdk. but when i try on j2me, the error come out said that cannot find symbol constructor SecretKeySpec and IvParameterSpec. does anyone has a clue on this problem? please help... thanks a lot.
byte raw = ciphertext. getBytes();
Cipher ciphertype = Cipher.getInstance("AES/CBC");
SecretKeySpec keySpec = new SecretKeySpec(raw, "AES");
IvParameterSpec ivSpec = new IvParameterSpec("7g^1m)3h4%czl*v1".getBytes());
ciphertype.init(Cipher.DECRYPT_MODE, keySpec, ivSpec);
byte outText = ciphertype.doFinal(hexToBytes("f1936fe02eed7bb472311e58e6de9677"));