def _unsign_data(self, data, options):
if options['<STR_LIT>'] not in self.signature_algorithms:<EOL><INDENT>raise Exception('<STR_LIT>'<EOL>% options['<STR_LIT>'])<EOL><DEDENT>signature_algorithm =self.signature_algorithms[options['<STR_LIT>']]<EOL>algorithm = self._get_algorithm_info(signature_algorithm)<EOL>key_salt = '<STR_LIT>'<EOL>if algorithm['<STR_LIT>']:<EOL><INDENT>key_salt = data[-algorithm['<STR_LIT>']:]<EOL>data = data[:-algorithm['<STR_LIT>']]<EOL><DEDENT>key = self._generate_key(options['<STR_LIT>'],<EOL>self.signature_passphrases, key_salt, algorithm)<EOL>data = self._decode(data, algorithm, key)<EOL>return data<EOL>
Verify and remove signature