Loading...
Searching...
No Matches
Checksums Struct Reference

Collected whole‑image checksums / hashes present in a checksum block. More...

`#include <aaruformat/context.h>`

## Data Fields

bool | hasMd5
| True if md5[] buffer populated.
bool | hasSha1
| True if sha1[] buffer populated.
bool | hasSha256
| True if sha256[] buffer populated.
bool | hasBlake3
| True if blake3[] buffer populated.
bool | hasSpamSum
| True if spamsum pointer allocated and signature read.
uint8_t | md5 [16]
| MD5 digest (16 bytes).
uint8_t | sha1 [20]
| SHA-1 digest (20 bytes).
uint8_t | sha256 [32]
| SHA-256 digest (32 bytes).
uint8_t | blake3 [BLAKE3_OUT_LEN]
| BLAKE3 digest (32 bytes).
uint8_t * | spamsum
| SpamSum fuzzy hash (ASCII), allocated length+1 with trailing 0.

## Detailed Description

Collected whole‑image checksums / hashes present in a checksum block.

Only hash arrays with corresponding has* flags set contain valid data. spamsum is a dynamically allocated NUL‑terminated buffer (original SpamSum signature bytes followed by appended '\0').

Definition at line 102 of file context.h.

## Field Documentation

## blake3

uint8_t Checksums::blake3[BLAKE3_OUT_LEN]

BLAKE3 digest (32 bytes).

Definition at line 112 of file context.h.

Referenced by write_checksum_block().

## hasBlake3

bool Checksums::hasBlake3

True if blake3[] buffer populated.

Definition at line 107 of file context.h.

Referenced by write_checksum_block().

## hasMd5

bool Checksums::hasMd5

True if md5[] buffer populated.

Definition at line 104 of file context.h.

Referenced by process_checksum_block(), and write_checksum_block().

## hasSha1

bool Checksums::hasSha1

True if sha1[] buffer populated.

Definition at line 105 of file context.h.

Referenced by process_checksum_block(), and write_checksum_block().

## hasSha256

bool Checksums::hasSha256

True if sha256[] buffer populated.

Definition at line 106 of file context.h.

Referenced by process_checksum_block(), and write_checksum_block().

## hasSpamSum

bool Checksums::hasSpamSum

True if spamsum pointer allocated and signature read.

Definition at line 108 of file context.h.

Referenced by process_checksum_block(), and write_checksum_block().

## md5

uint8_t Checksums::md5[16]

MD5 digest (16 bytes).

Definition at line 109 of file context.h.

Referenced by process_checksum_block(), and write_checksum_block().

## sha1

uint8_t Checksums::sha1[20]

SHA-1 digest (20 bytes).

Definition at line 110 of file context.h.

Referenced by process_checksum_block(), and write_checksum_block().

## sha256

uint8_t Checksums::sha256[32]

SHA-256 digest (32 bytes).

Definition at line 111 of file context.h.

Referenced by process_checksum_block(), and write_checksum_block().

## spamsum

uint8_t* Checksums::spamsum

SpamSum fuzzy hash (ASCII), allocated length+1 with trailing 0.

Definition at line 113 of file context.h.

Referenced by aaruf_close(), process_checksum_block(), and write_checksum_block().

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

- include/aaruformat/context.h