Пример #1
0
 public void GetCryptName(out CryptKeyName name)
 {
     name = new CryptKeyName
     {
         pszName  = Name,
         pszAlgid = certificate.SignatureAlgorithm.FriendlyName
     };
 }
Пример #2
0
        public void KeyProperties(IntPtr key)
        {
            var keysa = new CryptKeyName
            {
                pszName  = Name,
                pszAlgid = certificate.SignatureAlgorithm.FriendlyName
            };

            Marshal.StructureToPtr(keysa, key, false);
        }