Closed rikard-sics closed 1 year ago
I added an initial note on this. We could expand more on this and describe pre-calculation, and choosing block-wise if it becomes too large.
If large size has to be transferred implementations may consider using the block-wise transfer (if supported). We could expand more on this and describe pre-calculation, and choosing block-wise if it becomes too large.
If large size has to be trasnfered implementations may consider using the block-wise transfer (if supported). REFERENCE.
Use TAG instead of MAC.
Say "authentication tag"
Say "total size"
Say "cipher padding"
Add reference to COSE struct document.
Text has now been updated further in 6339baf7. Reference to COSE and explanation of block-wise remain to do.
Note in OSCORE Messages Processing to never send a message larger than block size * l.
Meaning the COSE plaintext + MAC + possible padding should not exceed (the block-size for the algorithm used multiplied with l). Since we set a limit for the l value. You basically have 3 limits; q, v, and l.
You can precalculate to estimate the size, if it becomes too large you use block-wise.