|
libaaruformat 1.0
Aaru Data Preservation Suite - Format Library
|
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. | |
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').
| uint8_t Checksums::blake3[BLAKE3_OUT_LEN] |
BLAKE3 digest (32 bytes).
Definition at line 109 of file context.h.
Referenced by write_checksum_block().
| bool Checksums::hasBlake3 |
True if blake3[] buffer populated.
Definition at line 104 of file context.h.
Referenced by write_checksum_block().
| bool Checksums::hasMd5 |
True if md5[] buffer populated.
Definition at line 101 of file context.h.
Referenced by process_checksum_block(), and write_checksum_block().
| bool Checksums::hasSha1 |
True if sha1[] buffer populated.
Definition at line 102 of file context.h.
Referenced by process_checksum_block(), and write_checksum_block().
| bool Checksums::hasSha256 |
True if sha256[] buffer populated.
Definition at line 103 of file context.h.
Referenced by process_checksum_block(), and write_checksum_block().
| bool Checksums::hasSpamSum |
True if spamsum pointer allocated and signature read.
Definition at line 105 of file context.h.
Referenced by process_checksum_block(), and write_checksum_block().
| uint8_t Checksums::md5[16] |
MD5 digest (16 bytes).
Definition at line 106 of file context.h.
Referenced by process_checksum_block(), and write_checksum_block().
| uint8_t Checksums::sha1[20] |
SHA-1 digest (20 bytes).
Definition at line 107 of file context.h.
Referenced by process_checksum_block(), and write_checksum_block().
| uint8_t Checksums::sha256[32] |
SHA-256 digest (32 bytes).
Definition at line 108 of file context.h.
Referenced by process_checksum_block(), and write_checksum_block().
| uint8_t* Checksums::spamsum |
SpamSum fuzzy hash (ASCII), allocated length+1 with trailing 0.
Definition at line 110 of file context.h.
Referenced by aaruf_close(), process_checksum_block(), and write_checksum_block().