rnapier/RNCryptor — pull request #25 by GojaN (2012-06-08 22:29:46+00:00)
Title: Fixes and RNCryptorSettings refactoring

* Refactoring of RNCryptorSettings. Split the crypto setting from the key derivation setting. This way you can configure the HMac key derivation, the crypto key derivation and de cryptor independently. The new structure, RNCryptorKeyDerivationSettings, allows to configure the algorithm and the PRF function for the derivation.

* Fix parameter 'algorithm' in the call to CCHmacInit(). There wasn't use the one configured in the settings.

* Fix the '_RNGetData' and '_RNWriteData' for the 'IV' vector, there wasn't use the size value configured in the settings