'Hash and verify the passed-in bytes with the signature.
This verifies a PKCS1-SHA1 signature on the passed-in data.
@type sigBytes: L{bytearray} of unsigned bytes
@param sigBytes: A PKCS1-SHA1 signature.
@type bytes: str or L{bytearray} of unsigned bytes
@param bytes: The value which will be hashed and verified.
@rtype: bool
@return: Whether the signature matches the passed-in data.'

def hashAndVerify(self, sigBytes, bytes):

    hashBytes = SHA1(bytearray(bytes))
    prefixedHashBytes1 = self._addPKCS1SHA1Prefix(hashBytes, False)
    prefixedHashBytes2 = self._addPKCS1SHA1Prefix(hashBytes, True)
    result1 = self.verify(sigBytes, prefixedHashBytes1)
    result2 = self.verify(sigBytes, prefixedHashBytes2)
    return (result1 or result2)
