Closed roberthusak closed 3 years ago
Seems that the issue can be fixed via updating Isopoh.Cryptography.Argon2 to v1.1.7+ See: https://github.com/mheyman/Isopoh.Cryptography.Argon2/issues/22#issuecomment-663999974
@hez2010 thanks, we'll update and see
@hez2010 Thanks, it works well now.
Test case:
Excerpt from the results:
The problems also shows up when running
ScriptTests
, sporadically running one of the Argon2 tests longer than 1 minute.It seems to be caused by the currently used library Isopoh.Cryptography.Argon2, see https://github.com/mheyman/Isopoh.Cryptography.Argon2/issues/22 and https://github.com/mheyman/Isopoh.Cryptography.Argon2/issues/25. PerfView shows long pauses for GC (probably caused by the specific behaviour of
SecureArray
), the manual creation of threads might contribute to the problem as well.Preliminary tests show we can use the Konscious.Security.Cryptography library instead, but we need it to be strongly signed before that (https://github.com/kmaragon/Konscious.Security.Cryptography/issues/38) to prevent the problems on .NET Framework (https://github.com/peachpiecompiler/peachpie/issues/536).