Allow setting IV and salt modes by Proc