CAPICOM support on Windows 7

Hi all, CAPICOM has finally been deprecated, and it won’t be supported on Windows 7. This link is up to date and proposes alternatives to CAPICOM classes by using .NET classes and CryptoAPI: Alternatives to Using CAPICOM. The following article may help if you were using CAPICOM in your web site and you are planning…


Working with CNG in .NET 3.5

Hi all,   Do you want to work with CNG and .NET 3.5 and don’t want to P/Invoke into CryptoAPI & CNG API? Check out Security.Cryptography.dll library at CLR Security: “Security.Cryptography.dll provides a new set of algorithm implementations to augment the built in .NET framework supported algorithms. It also provides some APIs to extend the existing framework…


CryptographicException: The data to be decrypted exceeds the maximum for this modulus of 0 bytes

Hi all, Some time ago a customer of mine was getting the following CryptographicException when calling EncryptedXml.DecryptDocument method to decrypt an XmlDocument in their .NET app:  [System.Security.Cryptography.CryptographicException] = {“The data to be decrypted exceeds the maximum for this modulus of 0 bytes“}_HResult = -2146233296_HResult = 0x80131430No Inner Exception This was only happening with a smart card certificate associated…