public void Init(bool forWrapping, ICipherParameters parameters) { this.forWrapping = forWrapping; if (parameters is KeyParameter) { this.param = (KeyParameter)parameters; engine.Init(forWrapping, param); } else { throw new ArgumentException("Bad parameters passed to Dstu7624WrapEngine"); } }
public void Init(bool forWrapping, ICipherParameters parameters) { this.forWrapping = forWrapping; if (parameters is KeyParameter) { this.param = (KeyParameter)parameters; engine.Init(forWrapping, param); } else if (parameters != null) { throw new ArgumentException("invalid parameter passed to Dstu7624WrapEngine init - " + Platform.GetTypeName(parameters)); } }