You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mbedtls_ssl_check_ctr_renegotiate() doesn't take care of the special record counter format in DTLS. It simply compares the full eight bytes. So depending on the current epoch value and conf->renego_period value, it may return an incorrect result.
For example,
in_ctr
conf->renego_period
expected
actual return value
00 00 FF FF FF FF FF 01
FF FF FF FF FF FF FF 00
true
false
00 01 00 00 00 00 00 00
00 00 FF FF FF FF FF 00
false
true
It is expected to ignore the first two bytes in conf->renego_period and check only the last six bytes of in_ctr/out_ctr in DTLS.
The text was updated successfully, but these errors were encountered:
mbedtls_ssl_check_ctr_renegotiate()
doesn't take care of the special record counter format in DTLS. It simply compares the full eight bytes. So depending on the current epoch value andconf->renego_period
value, it may return an incorrect result.For example,
in_ctr
conf->renego_period
It is expected to ignore the first two bytes in
conf->renego_period
and check only the last six bytes ofin_ctr
/out_ctr
in DTLS.The text was updated successfully, but these errors were encountered: