working out key bugs in JavaAES