Documentation

CslibFrontier.Computability.Probabilistic.AffineHash

Plain polynomial-time Boolean affine hashing and prefix-collision conditioning #

This module certifies Cslib.BitString.LinearHash.wordAffineHash, Cslib.BitString.LinearHash.wordAdjustAffineSeed and the zero test Cslib.BitString.LinearHash.hashZero directly in the plain ComputableInPolyTime calculus, together with uniform strict-PPT sampling of prefix-colliding affine seeds.

Main results #

References #

Evaluate wordAffineHash in plain polynomial time, with output dimension supplied in unary.

Project an affine seed onto the prefix-collision subgroup in plain polynomial time, with dimensions k, n, and r supplied in unary.

Sample a fresh (k * n + k)-bit affine seed and project it onto the prefix-collision subgroup of y and y₀ in uniform strict polynomial time.

Decide hashZero in plain polynomial time, with dimensions k and n supplied in unary.