import binascii


def crc32(byte_buffer, crc=0):
    """
    Return 32-bit CRC of a byte buffer.

    :param byte_buffer: byte buffer (fulfills the Buffer Protocol)
    :param crc:         seed crc, can be passed along to accumulate the crc

    .. versionadded:: 9.2
    """
    crc = binascii.crc32(byte_buffer, crc)
    return crc