Add comments
Move calcHmac() to codec_utils.coffee