dotnet / pinvoke

A library containing all P/Invoke code so you don't have to import it every time. Maintained and updated to support the latest Windows OS.
MIT License
2.12k stars 222 forks source link

GCM Example #441

Closed lellis1936 closed 1 year ago

lellis1936 commented 4 years ago

AES GCM is rightfully becoming very popular; perhaps an example would be useful to include somewhere in the project?

As an aside, I've created a Gist for GCM with this library: https://gist.github.com/lellis1936/4a0904f2029682583e93b27dfb2082c0

VaslD commented 4 years ago

Just want to note that AES GCM is available in System.Security.Cryptography as of .NET Standard 2.1 as an alternative to P/Invoking.

lellis1936 commented 4 years ago

Just want to note that AES GCM is available in System.Security.Cryptography as of .NET Standard 2.1 as an alternative to P/Invoking.

Thanks for this. Good to know but I'm sure you're aware of the controversy over Microsoft's dropping .Net Framework support as of 2.1. Too bad, I think that is a bad idea for Microsoft.

VaslD commented 4 years ago

I don't like it either. But considering Microsoft is working on unifying all of .NET (.NET 5 and 6) – at least that's what's in the news – I don't see Framework itself getting much love in the future. So it's probably a good choice to migrate to Core now than later. Anyway, like I said, "alternative to P/Invoking".