descrypt aes fix

This commit is contained in:
Henry Varona 2016-12-12 14:57:19 -04:30
parent b39d73f4d2
commit 62aa363bc4

View file

@ -212,7 +212,7 @@ public class Util {
byte countByte = (byte)((byte)out[out.length-1] % 16); byte countByte = (byte)((byte)out[out.length-1] % 16);
int count = countByte & 0xFF; int count = countByte & 0xFF;
if ((count > 15) || (count <= 0)){ if ((count > 15) || (count <= 0) || count > out.length){
return out; return out;
} }