Updated to run on KitKat, removed SpongyCastle dependency