Thank you for the latest update of removing the dependency on Spongycastle, it reduced the overall size of my app by ~2MB. However I have encountered a NullPointerException when I tested it on Gingerbread (I know it's a pin in the rear to still have it at 50.8% of the pie).
The following is the stacktrace, thanks in advance!
E/TAG(2609): java.lang.NullPointerException
E/TAG(2609): at javax.crypto.Cipher.doFinal(Cipher.java:1124)
E/TAG(2609): at com.mypkg.myclass.FixBrokenCipherSpiProvider$FixBrokenCipherSpi.engineDoFinal(FixBrokenCipherSpiProvider.java:191)
E/TAG(2609): at javax.crypto.Cipher.doFinal(Cipher.java:1028)
E/TAG(2609): at org.keyczar.AesKey$AesStream.doFinalDecrypt(AesKey.java:241)
E/TAG(2609): at org.keyczar.Crypter.decrypt(Crypter.java:167)
E/TAG(2609): at org.keyczar.Crypter.decrypt(Crypter.java:84)
E/TAG(2609): at org.keyczar.Crypter.decrypt(Crypter.java:183)
Hi Kenny,
Thank you for the latest update of removing the dependency on Spongycastle, it reduced the overall size of my app by ~2MB. However I have encountered a NullPointerException when I tested it on Gingerbread (I know it's a pin in the rear to still have it at 50.8% of the pie).
The following is the stacktrace, thanks in advance!
E/TAG(2609): java.lang.NullPointerException E/TAG(2609): at javax.crypto.Cipher.doFinal(Cipher.java:1124) E/TAG(2609): at com.mypkg.myclass.FixBrokenCipherSpiProvider$FixBrokenCipherSpi.engineDoFinal(FixBrokenCipherSpiProvider.java:191) E/TAG(2609): at javax.crypto.Cipher.doFinal(Cipher.java:1028) E/TAG(2609): at org.keyczar.AesKey$AesStream.doFinalDecrypt(AesKey.java:241) E/TAG(2609): at org.keyczar.Crypter.decrypt(Crypter.java:167) E/TAG(2609): at org.keyczar.Crypter.decrypt(Crypter.java:84) E/TAG(2609): at org.keyczar.Crypter.decrypt(Crypter.java:183)