-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AesGcm support is missing #19285
Comments
I can confirm that the .dotnet core code for this work great on linux, I'm not sure at what level the mono project can reuse code from dotnet core, but just taking there implementation would seem like a good idea. |
As far as I'm aware there is no platform reason this should be missing, openssl has support for AesGcm and that is what dotnet core uses successfully on linux. |
I ran into this issue while trying to port a .net core app to android. It's been pretty straightforward so far with the lack of aesgcm support being the only major pain point. |
As a temporary work around I've created a OpenSSL wrapper for AesGcm, which you can find here: https://www.nuget.org/packages/Ropu.AesGcm/ However I would much rather this was implemented in mono as part of .net Standard 2.1 |
I can confirm that this issue with also happens on iOS
|
I'm running into this issue too, after assuming 2.1 was supported and writing a bunch of crypto code for iOS and testing on MacOS where it fails with |
Just ran into the same issue when testing a project on Android - PlatformNotSupported Exception when trying to use the AesGcm class. For example, attempting to access the AesGcm.NonceByteSizes.MaxSize property throws this exception. I am using Xamarin.Android SDK 11.4.0.5 with Visual Studio Community 16.11.2. I selected this class because according to the docs, Xamarin.Android 10 is .NET Standard 2.1 compliant, which I believe requires AesGcm compatibility, so I was under the impression it would work. To anyone looking for an alternative, there is a detailed CBC-HMAC example here: https://docs.microsoft.com/en-us/dotnet/standard/security/vulnerabilities-cbc-mode |
I also ran into this issue when trying to use the AesGcm class in a Unity project. I was using jose-jwt library and got a I would really appreciate it if you could look into supporting AesGcm. |
Steps to Reproduce
Current Behavior
AesGcm is not supported
Expected Behavior
AesGcm is part of dotnet standard 2.1 which is officially supported, so I would except this to work.
On which platforms did you notice this
Xamarin.Android
Version Used:
Xamarin.Android 10.1.4.0
The text was updated successfully, but these errors were encountered: