Fixed issue #34

Clue of this commit is here: http://stackoverflow.com/questions/24099520/commonhmac-in-swift
Merge pull request #35 from gecko655/SHA1DigestWithKey

Fixed crash when generating SHA1 digests, fixes #34