Enforce that crypto operation and key algorithm are consistent.