[Cryptography] How can I make use of the AES hardware on new CPUs?
exa.exa at gmail.com
Sat Mar 15 18:07:58 EDT 2014
> First, how do I get at them?
I would take the easiest opensource approach and look (steal) how the
For example, OpenSSL does something similar here:
And Intel has a bunch of docs here:
(There's even sample code)
> Second, is there a way to detect whether or not that hardware
> is present, so that I can create something that may run more
> slowly but at least doesn't crash horribly if run on an
> earlier CPU without an AES instruction built in?
>From this direction, I strongly recommend that you use preexisting
crypto library that already implements this (also with the fallback).
There's also a nice (my personal favourite) article on that:
Hope that helps,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cryptography