Когда я пытаюсь использовать любой класс SHA3 или любой класс алгоритма Shake, я получаю исключение, сообщающее, что данная операция не поддерживается на моей платформе. Могу ли я как-нибудь это исправить без необходимости использования каких-либо других внешних библиотек?
Код: Выделить всё
using System.Security.Cryptography;
var hash = SHA3_256.HashData("Example data to hash"u8);
Код: Выделить всё
Unhandled exception. System.PlatformNotSupportedException: Operation is not supported on this platform.
at System.Security.Cryptography.SHA3_256.TryHashData(ReadOnlySpan`1 source, Span`1 destination, Int32& bytesWritten)
at System.Security.Cryptography.SHA3_256.HashData(ReadOnlySpan`1 source, Span`1 destination)
at System.Security.Cryptography.SHA3_256.HashData(ReadOnlySpan`1 source)
at Program.$(String[] args) in C:\Users\admin\source\repos\Net8Test\Net8Test\Program.cs:line 3
Подробнее здесь: https://stackoverflow.com/questions/775 ... y-platform
Мобильная версия