예제 #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);
        }