def SRP_step5(state):
    xH = sha256(intToBytes(state["salt"]) + state["P"]).hexdigest();
    x = int(xH, 16);
    S = mypow((state["B"] - state["k"] * mypow(state["g"], x, state["p"])), (state["a"] + state["u"] * x), state["p"]);
    state["C_K"] = sha256(intToBytes(S)).digest();
    return state;

# S               1. Generate S = (A * v**u) ** b % N
#                 2. Generate K = SHA256(S)
dataset/ETHPy150Open reschly/cryptopals/prob36.py/SRP_step5/original