Yup, key value should use the same digest implementation as hmac, as it's doing what the hmac would do.