Example #1
0
        public static bool Verify(string text, string rgbSignature, string publicKey, Encoding encoding = null)
        {
            var key      = Factory.ReadFromPublicKey(publicKey);
            var function = Factory.Create(key);

            return(function.Verify(text, rgbSignature, encoding));
        }
Example #2
0
        public static bool Verify(byte[] buffer, byte[] rgbSignature, string publicKey)
        {
            var key      = Factory.ReadFromPublicKey(publicKey);
            var function = Factory.Create(key);

            return(function.Verify(buffer, rgbSignature));
        }
Example #3
0
 public static DsaKey ReadFromPublicKey(string xmlPublicKey) => Factory.ReadFromPublicKey(xmlPublicKey);