在C#中,我可以使用
完成此操作public static CspKeyContainerInfo GetKeyConatinerInformation(X509Certificate2 certificate)
{
if (certificate == null)
throw new ArgumentNullException("certificate");
ICspAsymmetricAlgorithm key = certificate.PublicKey.Key as ICspAsymmetricAlgorithm;
if (key == null)
throw new InvalidOperationException("Unknown key type");
return key.CspKeyContainerInfo;
}
我想知道如何通过使用C ++和lib CryptoAPI
来实现这一点