Updated sig decryption algorithm