public IEnumerable <object[]> VerifyArgs() { Scheme.SetUpMode(DilithiumMode); var keys = Scheme.GenerateKeys(); yield return(new object[] { keys.Item1, Scheme.Sign(keys.Item2, "Hello") }); }
static void Main(string[] args) { var useBenchmark = true; if (useBenchmark) { var summary = BenchmarkRunner.Run <TestCases>(); } else { var bytes = new byte[] { 1, 191 }; Scheme.SetUpMode(3); var(pk, sk) = Scheme.GenerateKeys(); var sign = Scheme.Sign(sk, "Hello"); var verify = Scheme.Verify(pk, sign, "Hello"); Console.WriteLine(verify); } }
public void DilithiumSign(SecretKey secretKey) { Scheme.Sign(secretKey, "Hello"); }