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