def METHOD_NAME(n_rounds, input_bf):
    intermediate = input_bf
    for _ in range(n_rounds):
        sha = hashlib.sha256()
        sha.update(intermediate)
        current = sha.digest()
        intermediate += current
    return current