alibaba / xquic

XQUIC Library released by Alibaba is a cross-platform implementation of QUIC and HTTP/3 protocol.
Apache License 2.0
1.7k stars 327 forks source link

[Bug]: nonce computation error in multipath-ietf-draft-01 branch #270

Closed nandsky closed 1 year ago

nandsky commented 1 year ago

What happened?

multipath的 nonce计算时 path id应该是网络序,现在貌似是主机序?

问题可能出现在:https://github.com/alibaba/xquic/blob/ceeed29947e7ad148e097d75c26ba6407368af36/src/tls/xqc_crypto.c#L158

Steps To Reproduce

RFC测试实例:

# https://quicwg.org/multipath/draft-ietf-quic-multipath.html#name-packet-protection-for-quic-

IV: 6b26114b9cba2b63a9e8dd4f
PN: aead
SN: 3
==
nonce: 6b2611489cba2b63a9e873e2

Relevant log output

No response