RAR: Better granularity w/ KPC=0 (vs auto-homing). Auto-define NVIDIA from
cl_nv_pragma_unroll for architecture tweaks. Bump plaintext length for
better coalescion. Init lengths to 6 so the self-tests don't end up wildly
diverging threads (when it just sets a few keys out of thousands).
RAR: Fix LWS at 64, there is no point in evaluating it.
RAR: Decrease register use a lot, only one RawPsw buffer. KPC tweaks.
Get rid of the switch (for AMD) in sha_final() using a new bit flip macro.
Optional fixed length in kernel. Approaching 10,000 c/s on HD 7950
Get rid of compiler warnings in Mozilla format.
RAR: Minor optimisations verified on GTX580. Self-test length fixes.
Unroll inner loop by four for fixed-length kernels, dropping a switch statement.
RAR: Disable the 4x inner loop unrolling for AMD, it was detrimental
RAR: Use vectorized memcpy if AMD
RAR: Drop impossible conditionals for unrolled nvidia code.
RAR: Vectorize output copy for AMD. This too made an unintuitive boost.
"Easy fix" for compilation warnings on Lion.

Signed-off-by: Dhiru Kholia <dhiru.kholia@gmail.com>
Use CommonCrypto on OS X instead of OpenSSL for EpiServer format.

$ ../run/john -format=episerver -t # before
Benchmarking: EPiServer [32/64]... DONE
Raw:	3116K c/s real, 3116K c/s virtual

$ ../run/john -format=episerver -t # after
Benchmarking: EPiServer [32/64]... DONE
Raw:	3799K c/s real, 3876K c/s virtual
Use CommonCrypto on OS X instead of OpenSSL for RAR format.

$ ../run/john -format=rar -t # before
Benchmarking: RAR3 (4 characters) [32/64]... DONE
Raw:	39.6 c/s real, 40.0 c/s virtual

$ ../run/john -format=rar -t # after
Benchmarking: RAR3 (4 characters) [32/64]... DONE
Raw:	47.5 c/s real, 48.0 c/s virtual
Use CommonCrypto on OS X instead of OpenSSL for SybaseASE format.

$ ../run/john -format=sybasease -t
Benchmarking: sybasease [32/64]... DONE
Many salts:	167520 c/s real, 169212 c/s virtual
Only one salt:	167287 c/s real, 167287 c/s virtual

$ ../run/john -format=sybasease -t
Benchmarking: sybasease [32/64]... DONE
Many salts:	224160 c/s real, 224160 c/s virtual
Only one salt:	217853 c/s real, 220032 c/s virtual
Use CommonCrypto on OS X instead of OpenSSL for hmailserver format.

$ ../run/john -format=hmailserver -t # before
Benchmarking: hmailserver [32/64]... DONE
Many salts:	1365K c/s real, 1365K c/s virtual
Only one salt:	1289K c/s real, 1289K c/s virtual

$ ../run/john -format=hmailserver -t # after
Benchmarking: hmailserver [32/64]... DONE
Many salts:	1741K c/s real, 1758K c/s virtual
Only one salt:	1609K c/s real, 1625K c/s virtual
Use CommonCrypto on OS X instead of OpenSSL for raw-sha512 format.

Signed-off-by: Dhiru Kholia <dhiru.kholia@gmail.com>
Use CommonCrypto on OS X instead of OpenSSL.

$ ../run/john -format=hmac-sha512 -t #before
Benchmarking: HMAC SHA512 [64/64]... DONE
Raw:	274775 c/s real, 277523 c/s virtual

$ ../run/john -format=hmac-sha512 -t # after
Benchmarking: HMAC SHA512 [64/64]... DONE
Raw:	332289 c/s real, 332289 c/s virtual

$ ../run/john -format=xsha512 -t # before
Benchmarking: Mac OS X 10.7+ salted SHA-512 [64/64]... DONE
Many salts:	1048K c/s real, 1059K c/s virtual
Only one salt:	1027K c/s real, 1047K c/s virtual

$ ../run/john -format=xsha512 -t # after
Benchmarking: Mac OS X 10.7+ salted SHA-512 [64/64]... DONE
Many salts:	1278K c/s real, 1291K c/s virtual
Only one salt:	1244K c/s real, 1244K c/s virtual
Use CommonCrypto on OS X instead of OpenSSL in drupal7 format.
Use CommonCrypto on OS X instead of OpenSSL in cryptsha512 format.
Fixed Makefile for CUDA builds for make -j
Added hccap2john and prepared wpapsk-cuda format for real use