1
在C#中,我可以通过使用如何通过CryptoAPI中的证书公钥获取密钥容器的信息?
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