@classmethod
def hash_iter(cls, hash_cls, key, iterable, **kwargs):
    """Return hash of data from iterable of bytes."""
    ctx = cls(hash_cls, key, **kwargs)
    for chunk in iterable:
        ctx.update(chunk)
    return ctx.finalize()
