Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
 public void DilithiumVerify(PublicKey publicKey, Signature signature)
 {
     Scheme.Verify(publicKey, signature, "Hello");
 }