3
Hy,使用QT AES/ECB/PKCS5Padding解密
我正在为QT Mobile Symbian^3设备开发应用程序。我需要解密使用AES,ECB和PKCS5填充加密的消息。 下面是对该消息进行解密java代码:
public static byte[] decrypt(byte[] raw, byte[] encrypted) throws Exception {
SecretKeySpec skeySpec = new SecretKeySpec(raw, "AES");
Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
cipher.init(Cipher.DECRYPT_MODE, skeySpec);
return cipher.doFinal(encrypted);
}
你知道QT Symbian的任何解决方案?
亲切的问候, 波格丹