Documentation
¶
Overview ¶
Package talos implements modern ADV which supports large size for the values and tags.
Index ¶
Constants ¶
View Source
const ( Length = 256 * 1024 // 256KiB DataLength = Length - 40 Size = 2 * Length // Redundancy )
Basic constants configuring the ADV.
View Source
const ( Magic1 = 0x5a4b3c2d Magic2 = 0xa5b4c3d2 )
Magic constants.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ADV ¶
ADV implements the Talos extended ADV.
Layout (all in big-endian):
0x0000 4 bytes magic1 0x0004 4 bytes tag 0x0008 4 bytes size 0x000c (size) bytes value ... more tags -0x0024 32 bytes sha256 of the whole block with checksum set to zero -0x0004 4 bytes magic2
Whole data structure is written twice for redundancy.
Click to show internal directories.
Click to hide internal directories.