Hi, It seems that the last argument in the ErrorsSetCallback is always NULL for Encrypt (using mscrypto). No problem with Sign, Verify, and Decrypt. Same code for all. Is this consistent with what you are seeing ? i.e. "msg" of myErrorCallback(file, line, func, errorObject, errorSubject, reason, msg)