Updated signature decryption function