public void MakeNew1024bit() { var keygen = new BinaryKeyAppConfig(); var key = keygen.MakeNew(1024 / 8); output.WriteLine(Newtonsoft.Json.JsonConvert.SerializeObject(key.Select(Q => (int)Q))); Assert.Equal(1024 / 8, key.Length); }
public void MakeNewDefault128bit() { var keygen = new BinaryKeyAppConfig(); var s = new StringBuilder(); var key = keygen.MakeNew(); foreach (var b in key) { s.Append(", " + b); } output.WriteLine(s.ToString().TrimStart(',', ' ')); Assert.Equal(128 / 8, key.Length); }