CI_Encryption improvements

 - HMAC authentication by default.
 - HKDF support.
 - Reduce code repetition.