iPXE
Data Fields
peerdist_info Struct Reference

Content information. More...

#include <pccrc.h>

Data Fields

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

Detailed Description

Content information.

Definition at line 317 of file pccrc.h.


Field Documentation

Raw content information.

Definition at line 319 of file pccrc.h.

Referenced by peerdist_info(), peerdist_info_get(), peerdist_info_okx(), peerdist_info_v2_segments(), peermux_filter(), and peermux_info_close().

Content information operations.

Definition at line 322 of file pccrc.h.

Referenced by peerdist_info(), peerdist_info_block(), and peerdist_info_segment().

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.

Referenced by peerblk_open(), peerdist_info_block_okx(), peerdist_info_hash_ntoa(), peerdist_info_okx(), peerdist_info_passphrase_okx(), peerdist_info_segment_hash(), peerdist_info_segment_okx(), peerdist_info_v1(), peerdist_info_v1_block(), peerdist_info_v1_block_offset(), peerdist_info_v1_segment(), peerdist_info_v2(), peerdist_info_v2_block(), peerdist_info_v2_cursor_next(), and peerdist_info_v2_segment().

Content range.

Definition at line 339 of file pccrc.h.

Referenced by peerdist_info(), peerdist_info_okx(), peerdist_info_v1(), peerdist_info_v2(), and peerdist_info_v2_segment().

Number of segments within the content information.

Definition at line 343 of file pccrc.h.

Referenced by peerdist_info(), peerdist_info_okx(), peerdist_info_segment(), peerdist_info_v1(), peerdist_info_v1_segment(), peerdist_info_v2(), peerdist_info_v2_segment(), and peermux_step().


The documentation for this struct was generated from the following file: