4.1.5.2 511-Byte OPC Package
In order to illustrate a corner block-size case, instead assume that the OPC package is 511 bytes:
IV (16 bytes)
31 x Encrypted OPC data blocks (16 bytes each, 496 bytes total)
Share Protocol footer (48 bytes)
The Share Protocol footer would contain the following values:
Remainder (511 – 496 = 15 bytes)
Zeros (32 bytes)
RemainderLength: 0x0F (1 byte)
The following packet diagram shows the Share Protocol footer with these values.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Remainder |
|||||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
|
... |
0x00000000 (32 bytes) |
||||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
|
... |
RemainderLength |
||||||||||||||||||||||||||||||