Windows 10: SHA256 ComputeHash started throwing System.Security.Cryptography.CryptographicException:...

Discus and support SHA256 ComputeHash started throwing System.Security.Cryptography.CryptographicException:... in Windows 10 Gaming to solve the problem; Exception = {"ClassName":"System.Security.Cryptography.CryptographicException","Message":"Unknown error... Discussion in 'Windows 10 Gaming' started by BryanEM, Jul 22, 2024.

  1. BryanEM Win User

    SHA256 ComputeHash started throwing System.Security.Cryptography.CryptographicException:...


    Exception = {"ClassName":"System.Security.Cryptography.CryptographicException","Message":"Unknown error \"-1073741816\".","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at System.Security.Cryptography.BCryptHashAlgorithm.HashCoreByte[] array, Int32 ibStart, Int32 cbSize\r\n at System.Security.Cryptography.HashAlgorithm.TransformBlockByte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[] outputBuffer, Int32 outputOffset\r\n at System.Security.Cryptography.SHA256Managed.HashCoreByte[] rgb, Int32 ibStart, Int32 cbSize\r\n at System.Security.Cryptograp

    :)
     
    BryanEM, Jul 22, 2024
    #1

  2. SHA256 ComputeHash started throwing System.Security.Cryptography.CryptographicException: Unknown error -1073741816 after recent windows update

    `-1073741816` is `STATUS_INVALID_HANDLE`, I'm not sure why the message isn't formatting properly.

    The most likely situation for this error is that there are multiple parallel calls to `ComputeHash`. The `ComputeHash` function is not thread-safe (and never has been); but previously the most probable outcome from a parallel call was data corruption (a hash value that is incorrect for one or more callers).

    If you are using a shared/static field to hold the hash algorithm instance then you will need to change your code to interact with the object within a `lock` scope (or other synchronization mechanism), or change from using a shared/static version to a local version or `[ThreadStatic]` version.

    The next most likely situation would be that there is a parallel call to Dispose().

    If you are encountering this error and there has never been concurrent access on the HashAlgorithm instance, we would love to see a repro.

    -Jeremy Barton

    .NET Libraries, Cryptography
     
    Jeremy Barton (.NET), Jul 22, 2024
    #2
  3. Jmelgaard Win User
    SHA256 ComputeHash started throwing System.Security.Cryptography.CryptographicException: Unknown error -1073741816 after recent windows update

    I can confirm that adding a lock around the use of the SHA256 instance makes the exception go away.

    It would be REALLY NICE if the error would actually be more clear in that case then, but you touch on that your self so perhaps that is something to fix?
     
    Jmelgaard, Jul 22, 2024
    #3
  4. Brink Win User

    SHA256 ComputeHash started throwing System.Security.Cryptography.CryptographicException:...

    MSR JavaScript Cryptography Library Security Vulnerability

    Source: https://portal.msrc.microsoft.com/en.../CVE-2018-8319
     
    Brink, Jul 22, 2024
    #4
Thema:

SHA256 ComputeHash started throwing System.Security.Cryptography.CryptographicException:...

Loading...
  1. SHA256 ComputeHash started throwing System.Security.Cryptography.CryptographicException:... - Similar Threads - SHA256 ComputeHash started

  2. SHA256 ComputeHash started throwing System.Security.Cryptography.CryptographicExceptio n:...

    in Windows 10 Software and Apps
    SHA256 ComputeHash started throwing System.Security.Cryptography.CryptographicExceptio n:...: Exception = {"ClassName":"System.Security.Cryptography.CryptographicException","Message":"Unknown error \"-1073741816\".","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at System.Security.Cryptography.BCryptHashAlgorithm.HashCoreByte[] array, Int32...
  3. SHA256 ComputeHash started throwing System.Security.Cryptography.CryptographicExceptio n:...

    in Windows 10 BSOD Crashes and Debugging
    SHA256 ComputeHash started throwing System.Security.Cryptography.CryptographicExceptio n:...: Exception = {"ClassName":"System.Security.Cryptography.CryptographicException","Message":"Unknown error \"-1073741816\".","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at System.Security.Cryptography.BCryptHashAlgorithm.HashCoreByte[] array, Int32...
  4. Throwing error in secure browser test

    in Windows 10 Gaming
    Throwing error in secure browser test: I have checked in to the exam and taken photos my mine, I’d proof , test space and done with all other steps but while doing secure browser test , I ended the open applications not even single application is open except onvue but still it throwing error to resolve the issue ,...
  5. SHA256 ComputeHash started throwing System.Security.Cryptography.CryptographicExceptio n:...

    in Windows 10 Software and Apps
    SHA256 ComputeHash started throwing System.Security.Cryptography.CryptographicExceptio n:...: Unknown error "-1073741816". at System.Security.Cryptography.BCryptHashAlgorithm.HashFinal at System.Security.Cryptography.SHA256Cng.HashFinal at System.Security.Cryptography.HashAlgorithm.TransformFinalBlockByte[] inputBuffer, Int32 inputOffset, Int32 inputCount at...
  6. SHA256 ComputeHash started throwing System.Security.Cryptography.CryptographicExceptio n:...

    in Windows 10 BSOD Crashes and Debugging
    SHA256 ComputeHash started throwing System.Security.Cryptography.CryptographicExceptio n:...: Unknown error "-1073741816". at System.Security.Cryptography.BCryptHashAlgorithm.HashFinal at System.Security.Cryptography.SHA256Cng.HashFinal at System.Security.Cryptography.HashAlgorithm.TransformFinalBlockByte[] inputBuffer, Int32 inputOffset, Int32 inputCount at...
  7. SHA256 ComputeHash started throwing System.Security.Cryptography.CryptographicExceptio n:...

    in Windows 10 Gaming
    SHA256 ComputeHash started throwing System.Security.Cryptography.CryptographicExceptio n:...: Unknown error "-1073741816". at System.Security.Cryptography.BCryptHashAlgorithm.HashFinal at System.Security.Cryptography.SHA256Cng.HashFinal at System.Security.Cryptography.HashAlgorithm.TransformFinalBlockByte[] inputBuffer, Int32 inputOffset, Int32 inputCount at...
  8. What is the SHA256 of xcopy.exe?

    in Windows 10 Gaming
    What is the SHA256 of xcopy.exe?: A cmd window popped up as "xcopy.exe" and im trying to see if it's the real xcopy or a virus. https://answers.microsoft.com/en-us/windows/forum/all/what-is-the-sha256-of-xcopyexe/afbd0512-6097-492a-8a9f-1aac03fda453
  9. Cryptography Windows 10?

    in AntiVirus, Firewalls and System Security
    Cryptography Windows 10?: Does anyone know what a cryptographic operation is in Windows 10? Kryptographie Windows 10?
  10. MSR JavaScript Cryptography Library Security Vulnerability

    in Windows 10 News
    MSR JavaScript Cryptography Library Security Vulnerability: A Security Feature Bypass vulnerability exists in the MSR JavaScript Cryptography Library that is caused by multiple bugs in the library’s Elliptic Curve Cryptography (ECC) implementation. An attacker could potentially abuse these bugs to learn information about a server’s...