core-wg / oscore-key-limits

Other
0 stars 0 forks source link

Say in OSCORE Messages Processing to not send a message with COSE plaintext + MAC + possible padding larger than block size * l #6

Closed rikard-sics closed 1 year ago

rikard-sics commented 2 years ago

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.

rikard-sics commented 2 years 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.

rikard-sics commented 2 years ago

Use TAG instead of MAC.

Say "authentication tag"

rikard-sics commented 2 years ago

Say "total size"

Say "cipher padding"

rikard-sics commented 2 years ago

Add reference to COSE struct document.

rikard-sics commented 2 years ago

Text has now been updated further in 6339baf7. Reference to COSE and explanation of block-wise remain to do.