Bug 1050202 - Take length parameter into account when deriving HMAC keys r=rbarnes,smaug