Content information.
More...
#include <pccrc.h>
Content information.
Definition at line 317 of file pccrc.h.
◆ raw
◆ op
Content information operations.
Definition at line 322 of file pccrc.h.
◆ digest
Digest algorithm.
Definition at line 324 of file pccrc.h.
◆ digestsize
size_t peerdist_info::digestsize |
Digest size.
Note that this may be shorter than the digest size of the digest algorithm. The truncation does not always take place as soon as a digest is calculated. For example, version 2 content information uses SHA-512 with a truncated digest size of 32 (256 bits), but the segment identifier ("HoHoDk") is calculated by using HMAC with the full SHA-512 digest and then truncating the HMAC output, rather than by simply using HMAC with the truncated SHA-512 digest. This is, of course, totally undocumented.
Definition at line 337 of file pccrc.h.
◆ range
Content range.
Definition at line 339 of file pccrc.h.
◆ trim
◆ segments
unsigned int peerdist_info::segments |
Number of segments within the content information.
Definition at line 343 of file pccrc.h.
The documentation for this struct was generated from the following file: