Code in Azure function breaks locally on M1 Mac when AesGCM does Decrypt
This is the part of the code that breaks
using var cipher = new AesGcm(key);
cipher.Decrypt(nonce, toDecrypt, tag, decryptedData, associatedData);
I have installed openssl and set DYLD_LIBRARY_PATH in ~/.zshrc
Originally the code broke on Intel Mac as well but since I set DYLD_LIBRARY_PATH, it worked. Yet it still breaks on arm-based M1 Mac.
Configuration
- netcoreapp3.1
- OS Version: Mac OS Big Sur Version 11.4, (Apple M1), 16 GB
- Architecture: arm
- openssl version: LibreSSL 2.8.3, openssl@1.1
Can anyone help please? This seems to be the only issue that stops me from developing in .NET on M1 Mac.