Data Fields
peerdist_info Struct Reference

Content information. More...

#include <pccrc.h>

Data Fields

struct peerdist_raw raw
 Raw content information. More...
struct peerdist_info_operationsop
 Content information operations. More...
struct digest_algorithmdigest
 Digest algorithm. More...
size_t digestsize
 Digest size. More...
struct peerdist_range range
 Content range. More...
struct peerdist_range trim
 Trimmed content range. More...
unsigned int segments
 Number of segments within the content information. More...

Detailed Description

Content information.

Definition at line 317 of file pccrc.h.

Field Documentation

◆ raw

struct peerdist_raw peerdist_info::raw

Raw content information.

Definition at line 319 of file pccrc.h.

Referenced by peermux_filter().

◆ op

struct peerdist_info_operations* peerdist_info::op

Content information operations.

Definition at line 322 of file pccrc.h.

◆ digest

struct digest_algorithm* peerdist_info::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

struct peerdist_range peerdist_info::range

Content range.

Definition at line 339 of file pccrc.h.

◆ trim

struct peerdist_range peerdist_info::trim

Trimmed content range.

Definition at line 341 of file pccrc.h.

Referenced by peerdist_info_block().

◆ 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: