Beispiel #1
0
        public static ISignValue Sign(string text, string privateKey, Encoding encoding = null)
        {
            var key      = Factory.ReadFromPrivateKey(privateKey);
            var function = Factory.Create(key);

            return(function.Sign(text, encoding));
        }
Beispiel #2
0
        public static ISignValue Sign(byte[] buffer, string privateKey)
        {
            var key      = Factory.ReadFromPrivateKey(privateKey);
            var function = Factory.Create(key);

            return(function.Sign(buffer));
        }
Beispiel #3
0
 public static DsaKey ReadFromPrivateKey(string xmlPrivateKey) => Factory.ReadFromPrivateKey(xmlPrivateKey);