public EccKeyGenerator(KeyOptionSet options) { this.options = options; var algorithm = GetAlgorithm(); var parameters = GetParameters(); Result = CngKey.Create(algorithm, options.IsEphemeral? null : options.KeyName, parameters); }
public KeyCommand FromArgs(string[] args) { Options = new KeyOptionSet(); var p = _optionSet; try { p.Parse(args); } catch (OptionException e) { Console.WriteLine(e.Message); } return this; }