'Verify the ``msg` and ``sig`` using ``key``.'

def verify(self, key, msg, sig):

    verifier = key.verifier(sig, self.padding, self.hash)
    verifier.update(msg)
    try:
        verifier.verify()
    except cryptography.exceptions.InvalidSignature as error:
        logger.debug(error, exc_info=True)
        return False
    else:
        return True
