public void VeriffySignature()
 {
     var m         = "{\"DeviceId\": \"7A7FA6EF-C86E-48C3-94C0-3B4FD588467B\",PofileId\": 17}";
     var service   = new SignVerificationService();
     var message   = configurationSection["testCipherMessage"];
     var key       = configurationSection["testCipherKey"];
     var signature = configurationSection["testCipherSignature"];
     var result    = service.Verify(m, key, signature);
 }
        public void SignatureChainTest()
        {
            var service = new SignVerificationService();

            var message    = "super tajna sprava";
            var keys       = service.GenerateKeyPair();
            var privateKey = keys.Private as ECPrivateKeyParameters;
            var publicKey  = keys.Public as ECPublicKeyParameters;

            var signature = service.SignData(message, privateKey);

            var isVerified = service.Verify(message, publicKey, signature);
        }