验证来自 Chrome 的 STUN 绑定(bind)请求的 MESSAGE-INTEGRITY 属性时,我该如何使用 HMAC-SHA1 key ? (chrome 处于 ICE-CONTROLLING 角色,因为 SDP 提供来自 ICE-LITE 对等方)
RFC-5245状态:
To compute the message integrity for the check, the agent uses the remote username fragment and password learned from the SDP from its peer. The local username fragment is known directly by the agent for its own candidate.
但它没有说明代理如何将这些连接起来形成 HMAC SHA1 key
我尝试了不同的ice-username:ice-password组合来形成 key ,但似乎没有一个能够生成与来自chrome的绑定(bind)请求中的消息完整性属性相同的哈希值。
有人知道 HMAC key 是如何形成的吗?
最佳答案
关于google-chrome - WebRTC ICE-Stun 消息完整性属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58541034/