Finish support for AES_CTR acceleration on Solaris
Some Solaris hw/sw combinations have built-in support for AES_CTR acceleration. Wyllys Ingersoll started writing a patch to add support for this to our relay crypto, which can speed up relay performance a lot.
The latest version of this code is in branch "solaris-aes" in my public repository. It needs more work before it's ready to merge. The outstanding issues are:
- We don't have an autoconf test to see if we're building on a host with PKCS11 support. We should add one, and have it set USE_PKCS11_FRAMEWORK when we are. The usual autoconf way would be to test for the presence of some header or function.
- Last time I reviewed this patch, it looked like it didn't implement our aes_set_iv function. If that's so, the patch will break hidden services (and probably the unit tests too). So, aes_set_iv needs to get implemented.