Skip to main content

CAPACITY_DOMAIN_IDX

Constant CAPACITY_DOMAIN_IDX 

Source
pub const CAPACITY_DOMAIN_IDX: usize = 9;
Expand description

The index in the hasher state where the domain is set when initializing the hasher.

The domain is stored in the second element of the capacity word. With LE sponge state layout [RATE0, RATE1, CAP], this is at index 9 (= CAPACITY_RANGE.start + 1).