public void GetCryptName(out CryptKeyName name) { name = new CryptKeyName { pszName = Name, pszAlgid = certificate.SignatureAlgorithm.FriendlyName }; }
public void KeyProperties(IntPtr key) { var keysa = new CryptKeyName { pszName = Name, pszAlgid = certificate.SignatureAlgorithm.FriendlyName }; Marshal.StructureToPtr(keysa, key, false); }