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