def byte_pad(data: bytes, block_size: int) -> bytes:
    """
    Pad data with 0x00 until its length is a multiple of block_size.

    Add a whole block of 0 if data lenght is already a multiple of block_size.
    """
    padding = bytes(block_size - (len(data) % block_size))
    return data + padding