def _add_padding(byte_list, intended_length, padding_byte=0x00):
    """
    Pads a list with 0's so that it reaches the intended length.
    """
    for i in range(intended_length - len(byte_list)):
        byte_list.append(padding_byte)
    return byte_list