Skip to main content

Module index

Module index 

Source

Structs§

IndexFlags
IndexRecord

Constants§

ALG_DISC_DEFAULT
Algorithm discriminator — the u16 at index-record bytes 46–47 (ahu-format-spec.md §2.4.1).
ALG_DISC_ML_DSA_44
ALG_DISC_ML_DSA_65
ALG_DISC_ML_DSA_87
INDEX_RECORD_SIZE

Functions§

binary_search
Search for a record with the given key and discriminator 0 (default).
binary_search_preferred
Search for the best-matching record given a list of preferred discriminators. Tries each discriminator in order; returns the first hit. Falls back to discriminator 0 if none of the preferences match.
binary_search_with_discriminator
Search for a record with the given key and specific discriminator.
compute_entry_key
validate_sort_order
Validate that records are sorted ascending by (entry_key, discriminator) with no duplicate pair (ahu-format-spec.md §2.4.1). Equal entry keys must carry strictly ascending discriminators; a repeated pair is a DuplicateEntryKey error, any descending order an IndexNotSorted error.