Decrypt my World

Cryptography, Security, Debugging and more!

Browse by Tags

Tagged Content List
  • Blog Post: ExportParameters returns Invalid type specified error

    Hi all, Some time ago a customer of mine was trying to export the private key associated to a certificate stored in a smart card , and for that he was trying to use the RSACryptoServiceProvider.ExportParameters method with a code like the following: " System.Security.Cryptography.X509Certificates...
  • Blog Post: 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...
  • Blog Post: CryptographicException: Unable to open the access token of the current thread

    Hi all, When working with RSACryptoServiceProvider , we may get an exception like the following: System.Security.Cryptography. CryptographicException : Unable to open the access token of the current thread at System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr...
  • Blog Post: RSACryptoServiceProvider fails when used with ASP.NET

    Hi, welcome back, I will talk today about a very common issue we face when we try to use .NET's RSACryptoServiceProvider class in ASP.NET . When we try to create a new RSACryptoServiceProvider object in this scenario, we may get the following exception: "System.Security.Cryptography.CryptographicException...
  • Blog Post: How to trace CryptoAPI calls (2)

    Hi, welcome back, Let's try to understand a bit better what's going on my CryptoAPI Tracer script . Let's take a look to one of the most important breakpoints I set on a CryptoAPI function: bm Advapi32!CryptAcquireContextW ".printf \"\\n>>>>>>>>>>>>>>>>>>>>>>...
  • Blog Post: CryptoAPI Tracer script

    Hi, welcome back, As I promised in my previous post, How to trace CryptoAPI calls , I'm posting the complete script I'm developing to trace all CryptoAPI calls being made by an application. This script shows the In & Out parameters being passed to the API, the result of calling the API, and in...
  • Blog Post: How to trace CryptoAPI calls

    Hi, welcome back, An application may use CryptoAPI without us developers realizing it. Security classes in .NET Framework use CryptoAPI behind the scenes. CAPICOM .dll uses it, too. The issue appears when the API returns an error which can help us to find the real cause of the issue, but the code...
Page 1 of 1 (7 items)