adding a crypto alg in session