Improved the crypto_cmp function.

It now uses the NaCl functions when the length is appropriate.

Moved crypto defines to crypto_core.h