iPXE
Data Fields
peerdist_info_segment Struct Reference

A content information segment. More...

#include <pccrc.h>

Data Fields

struct peerdist_infoinfo
 Content information.
unsigned int index
 Segment index.
struct peerdist_range range
 Content range.
unsigned int blocks
 Number of blocks within this segment.
size_t blksize
 Block size.
uint8_t hash [PEERDIST_DIGEST_MAX_SIZE]
 Segment hash of data.
uint8_t secret [PEERDIST_DIGEST_MAX_SIZE]
 Segment secret.
uint8_t id [PEERDIST_DIGEST_MAX_SIZE]
 Segment identifier.

Detailed Description

A content information segment.

Definition at line 347 of file pccrc.h.


Field Documentation

Content range.

Note that this range may exceed the overall content range.

Definition at line 357 of file pccrc.h.

Referenced by peerdist_info_segment(), peerdist_info_segment_okx(), peerdist_info_v1(), peerdist_info_v1_block(), peerdist_info_v2_block(), and peerdist_info_v2_segment().

Block size.

Definition at line 361 of file pccrc.h.

Referenced by peerdist_info_segment_okx(), peerdist_info_v1_block(), and peerdist_info_v2_segment().

Segment hash of data.

This is MS-PCCRC's "HoD".

Definition at line 366 of file pccrc.h.

Referenced by peerdist_info_segment(), peerdist_info_segment_hash(), peerdist_info_segment_okx(), and peerdist_info_v2_block().

Segment secret.

This is MS-PCCRC's "Ke = Kp".

Definition at line 371 of file pccrc.h.

Referenced by peerblk_open(), peerdist_info_segment(), peerdist_info_segment_hash(), and peerdist_info_segment_okx().

Segment identifier.

This is MS-PCCRC's "HoHoDk".

Definition at line 376 of file pccrc.h.

Referenced by peerblk_open(), peerdist_info_segment(), peerdist_info_segment_hash(), and peerdist_info_segment_okx().


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