4

I have a question,and I hope that I am correct here. I want to use the AES-NI acceleration in a C# program. I did not find any good source about that and wanted to ask if this is possible and if there is any good source for information about that. Also I wanted to ask, which key sizes are supported by AES-NI?

Simon Rühle
  • 229
  • 3
  • 12

1 Answers1

1

AesCryptoServiceProvider is supposed to use AES-NI (and similar instruction sets). This is not in the documentation but after multiple benchmarks I have noticed significant (156 mbps with, 34 mbps without) performance improvements on AES-NI machines. So I guess it's safe to assume AES-NI is used.

DividedByZero
  • 4,333
  • 2
  • 19
  • 33