Skip to main content

ALG_DISC_DEFAULT

Constant ALG_DISC_DEFAULT 

Source
pub const ALG_DISC_DEFAULT: u16 = 0;
Expand description

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

The discriminator distinguishes signature-algorithm variants of the same certificate. Records are sorted ascending by (entry_key, discriminator) and a duplicate pair is invalid. In single-algorithm bundles every record uses 0; in dual-algorithm bundles the classical response uses 0 and the post-quantum variant uses its algorithm-specific value.

Value 1 is unassigned in this profile. The decoder preserves any other u16 value and includes it in ordering, but preservation is not endorsement: an unknown value implies no support for the producer’s intended signature algorithm.