NativeDtlsEngine.authenticateCidDatagram

private bool authenticateCidDatagram(DtlsPeerState state, const(ubyte)[] data) @safe

Authenticates a CID-bearing datagram under a peer's read keys.

RFC 9146 §6 permits address migration only after a record protected under the connection ID has been verified. The decrypted application data (if any) is delivered to the peer state.

Parameters

stateThe connected peer state looked up by CID.
dataThe raw datagram bytes (CID record framing).

Returns

true when an APPLICATION_DATA record authenticated under the

peer's current keys, false otherwise.