Fixed metadata creation.

Fixed creation of metadata with hmac 0x14.
Added ECDSA support and signature checks.
Improved hmac/cmac hash compare functions.
Fixed encryption of the large files 4GB+

Fixed offset calculation.
Just another fixes.

1) Fixed batch mode.
2) Improved ecdsa checks for zeroed signatures
3) Fixed program crash when rap\rifkey.bin file is not placed.
Merge pull request #1 from Sorvigolova/master

Some major and minor fixes for win32 version.