[Mono-dev] Adding AES-NI support

Sebastien Pouliot sebastien.pouliot at gmail.com
Fri May 6 17:22:16 EDT 2011


Hello Joe,

On Fri, 2011-05-06 at 17:02 -0400, Joe Dluzen wrote:
> Hi all,
> 
> I'm looking at adding Intel AES-NI support to Mono. Most of the actual
> code that does useful stuff is done by other people (on what looks
> like a very liberal license), so I'm just gluing it all together.

That sounds great :)

>  Does
> the runtime currently have methods for determining the instruction
> sets that the CPU supports? I'd imagine that you'd want to use the
> accelerated implementation first if available, and if not, fall back
> to the current default, which I think is RijndaelManaged.

There's already a built-in mechanism for this (available in both MS.NET
and Mono). You can replace everything that correctly (i.e. use the
factory methods) use Rjindael/Aes (or most cryptographic
implementations) by using machine.config file.

As such you only need to concentrate on your own, AES-NI,
implementation. I.e. something that derive from Rjindael or Aes.

Sebastien

p.s. at some point, once we get a few different implementations, we'll
likely want something to help users. I got some notes about that... I'll
try to dig them out this weekend and post them.



More information about the Mono-devel-list mailing list