Skip to content

aritchie/android_net9_crypto_crash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NET9 Android Crash with Assembly Compression disabled

Tracking Issues

The following code:

using var sha = SHA1.Create();
var hash = sha.ComputeHash(bytes);
var hi = Convert.ToHexString(hash);

Causes this:

android.runtime.JavaProxyThrowable: [System.Security.Cryptography.CryptographicException]: Cryptography_ConcurrentUseNotSupported
at System.Security.Cryptography.ConcurrencyBlock.Enter + 0x1a(Unknown Source)
at System.Security.Cryptography.HashProviderDispenser+EvpHashProvider.FinalizeHashAndReset + 0x0(Unknown Source)
at System.Security.Cryptography.HashProvider.FinalizeHashAndReset + 0x13(Unknown Source)
at System.Security.Cryptography.SHA1+Implementation.HashFinal + 0x0(Unknown Source)
at System.Security.Cryptography.HashAlgorithm.CaptureHashCodeAndReinitialize + 0x0(Unknown Source)
at System.Security.Cryptography.HashAlgorithm.ComputeHash + 0x22(Unknown Source)
at Sentry.Internal.Extensions.HashExtensions.GetHashString + 0x12(Unknown Source)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages