<div dir="ltr"><div><div><span style="font-family:monospace,monospace">I'd like to propose the following to modify the Hash Option for the EPB:<br><br>Name:         epb_hash<br>Code:         3<br>Length:       variable<br>Description:<br><br>This option contains a hash or message digest of the Enhanced Packet Block <br>non-mutable fields. The first two bytes (16 bits) of the option value specify <br>the hashing algorithm. The second two bytes (16 bits) specificy algorithm-<br>specific options. At bit offset 32, the actual hash value is contained, whose <br>size depends on the hashing algorithm. Note that the option length is the hash <br>value length + 32. If a hashing algorithm produces a message digest that is not <br>32-bit aligned, the value should be padded with zeros. Hashing algorithm values <br>and options are shown in the table. Unless otherwise noted in an algorithm <br>option (i.e. any combination of 32 flags could be set to specify hash options) <br>the message digest will be taken of the body of the Enhanced Packet Block, <br>excluding the block header and footer and any options. This will allow the hash <br>of the original captured packet, including its timestamp and other fixed values,<br>and still allow for options to be added, removed, or reordered as the packet <br>block is processed.<br><br>TABLE:<br>Algorithm       Code      Option        Digest Size    Option Length (bytes)<br>2’s comp.       0x0000    0x0000        packet size    pkt size + 4<br>XOR (LRC32)     0x0001    0x0000        4 bytes        0x0008<br>CRC32           0x0002    0x0000        4 bytes        0x0008<br>MD5             0x0003    0x0000        128-bit        0x0014<br>SHA-1           0x0004    0x0000        160-bit        0x0018<br>RIPEMD          0x0005    0x0000        160-bit        0x0018<br>SHA-2           0x0006    0x0001        224-bit        0x0020<br>SHA-2           0x0006    0x0002        256-bit        0x0024    <br>SHA-2           0x0006    0x0003        384-bit        0x0034<br>SHA-2           0x0006    0x0004        512-bit        0x0044<br>Whirlpool       0x0007    0x0000        512-bit        0x0044<br>SHA-3           0x0008    0x0001        512-bit        0x0044<br>HMAC-MD5        0x0103    0x0000        128-bit        0x0044<br>HMAC-SHA-1      0x0104    0x0000        160-bit        0x0018<br>HMAC-SHA-2      0x0106    0x0001        224-bit        0x0020<br>HMAC-SHA-2      0x0106    0x0002        256-bit        0x0024<br>HMAC-Whirlpool  0x0107    0x0000        512-bit        0x0044<br>MAC-SHA-3       0x0108    0x0000        512-bit        0x0044<br><br><artwork><br>     /                                                               /<br>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<br>     |    epb_hash_code = 0x0003     | option length (var) = 0x0024  |<br>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<br>     | Hash Algorithm = 0x0006 (SHA2)| Hash Alg Opts = 0x0002 (256b) |<br>     +---------------------------------------------------------------+<br>     /                                                               /<br>     /                                                               /<br>     /               Hash value (variable e.g. 256-bits)             /<br>     /                                                               /<br>     /                                                               /<br>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<br>     /                                                               /<br>     /                   Other Options (variable)                    /<br>     /                                                               /<br>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<br>     |  end_of_options = 0x0000      |    options_length = 0x0000    |<br>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<br>     |                       Block Total Length                      |<br>     +---------------------------------------------------------------+<br></artwork> <br><br></span></div><span style="font-family:monospace,monospace">Regards,<br></span></div><span style="font-family:monospace,monospace">Michael<br></span></div>