Open sschulz-t opened 8 months ago
As the MTU is negotiated, the chunk size is expected to follow the MTU size except the last one. The total content size is known so the last chunk can be less.
so 1000 Bytes payload split to 400 + 400 + 200 Bytes is correct if the negotiated MTU is ~400
Regarding https://github.com/openid/openid4vp_ble/blob/e5370d5b7a2fa82b627b67bda6858ff81a64114d/main.md?plain=1#L332
Are all chunks (except the last one) of the same size?
Example: 1000 Bytes payload split to 400 + 400 + 200 Bytes
Is it also allowed to send: 1000 Bytes payload split to 400 + 100 + 200 + 300 Bytes ?
I must admit that I have no real use case for this but the specification should be clear on that. Otherwise some verifiers might implement it that way and break compatibility.