code: def verify(self, signed):
          '''
          Recover the message (digest) from the signature using the public key
  
          :param str signed: The signature created with the private key
          :rtype: str
          :return: The message (digest) recovered from the signature, or an empty
              string if the decryption failed
          '''
          # Allocate a buffer large enough for the signature. Freed by ctypes.
          buf = create_string_buffer(libcrypto.RSA_size(self._rsa))
          signed = salt.utils.stringutils.to_bytes(signed)
          size = libcrypto.RSA_public_decrypt(len(signed), signed, buf, self._rsa, RSA_X931_PADDING)
          if size < 0:
              raise ValueError('Unable to decrypt message')
          return buf[0:sizef verify(self, signed):
          '''
          Recover the message (digest) from the signature using the public key
  
          :param str signed: The signature created with the private key
          :rtype: str
          :return: The message (digest) recovered from the signature, or an empty
              string if the decryption failed
          '''
          # Allocate a buffer large enough for the signature. Freed by ctypes.
          buf = create_string_buffer(libcrypto.RSA_size(self._rsa))
          signed = salt.utils.stringutils.to_bytes(signed)
          size = libcrypto.RSA_public_decrypt(len(signed), signed, buf, self._rsa, RSA_X931_PADDING)
          if size < 0:
              raise ValueError('Unable to decrypt message')
          return buf[0:size]
docs: Recover the message (digest) from the signature using the public key
  
          :param str signed: The signature created with the private key
          :rtype: str
          :return: The message (digest) recovered from the signature, or an empty
              string if the decryption failed