You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the System.Security.Cryptography.HashAlgorithmName methods throw a PlatformNotSupportedException when executed in a C# program that got compiled against the wasi-wasm runtime. While the WASI Crypto API hasn't been finalized (AFAICT) and wasmtimedoesn't provide any implementation, it would be really useful if at least the managed implementation of these crypto functions were available for programs running under wasi-wasm.
Reproduction Steps
Compile any program accessing any of the crypto functions (e.g. SHA1). When run an exception will be thrown:
System.PlatformNotSupportedException: SystemSecurityCryptography_PlatformNotSupported
at System.Security.Cryptography.SHA1.Create()
...
Expected behavior
While no WASI Crypto API has been finalized and made available via wasmtime, it would be really useful if the managed implementations could be used. I am trying to use Roslyn APIs, which internally use both SHA1 and SHA256 and thus cannot be executed under wasi-wasm.
Activity
[wasi] Quarantine System.Text.Json tests that hash property names
[wasi] Quarantine tests that need System.Security.Cryptography
[wasi] Fix up System.Text.Encoding tests on WASI
[wasi] Fix FileProviders.Physical test filtering on WASI
[wasi] Quarantine System.Text.Json tests that hash property names
[wasi] Quarantine tests that need System.Security.Cryptography
[wasi] Fix up System.Text.Encoding tests on WASI
[wasi] Remove crypto quarantines now that WASI has System.Security.Cr…
[wasi] Run Microsoft.Bcl.Cryptography.Tests on WASI
[wasi] Fix FileProviders.Physical test filtering on WASI
[wasi] Quarantine System.Text.Json tests that hash property names
[wasi] Quarantine tests that need System.Security.Cryptography
[wasi] Fix up System.Text.Encoding tests on WASI
[wasi] Remove crypto quarantines now that WASI has System.Security.Cr…
[wasi] Run Microsoft.Bcl.Cryptography.Tests on WASI
[wasi] Fix FileProviders.Physical test filtering on WASI
[wasi] Quarantine System.Text.Json tests that hash property names
[wasi] Quarantine tests that need System.Security.Cryptography
[wasi] Fix up System.Text.Encoding tests on WASI
[wasi] Remove crypto quarantines now that WASI has System.Security.Cr…
[wasi] Run Microsoft.Bcl.Cryptography.Tests on WASI
[wasi] Pass runtimeconfig properties to the runtime in wasihost (#134964
[wasi] Fix FileProviders.Physical test filtering on WASI
[wasi] Quarantine System.Text.Json tests that hash property names
[wasi] Quarantine tests that need System.Security.Cryptography
[wasi] Fix up System.Text.Encoding tests on WASI
[wasi] Remove crypto quarantines now that WASI has System.Security.Cr…
[wasi] Run Microsoft.Bcl.Cryptography.Tests on WASI