import math


def resize_bytes(input_bytes: bytes, length: int):
    """Takes in a byte string and an integer. Outputs the byte string repeated till it is of length integer"""
    multiplier = math.ceil(length / len(input_bytes))
    raw_output = input_bytes * multiplier

    return raw_output[:length]