Documentation

CslibFrontier.Crypto.Protocols.UOV.HashAndSignPolyTime.DetPrograms

Deterministic unsalted ROM hash-and-sign word reductions and certificates #

Defines detPSDistinguisherWord, detPSOneDistinguisherWord, and detInverterWord together with their uniform strict IsOraclePPT / IsPPTOn efficiency certificates and typed forger adapter.

@[reducible, inline]

Cache entry (yBits, xOpt) stored by wordDetPSHandler.

@[reducible, inline]

Replay output plus (cache, signed) state returned by detPSDistinguisherWord.

@[reducible, inline]

Forged message word from DetPSReplayOut.

@[reducible, inline]

Forged signature word from DetPSReplayOut.

@[reducible, inline]

Memoized deterministic random-oracle table from DetPSReplayOut.

@[reducible, inline]

Signed message list recorded by DetPSReplayOut.

State handler for the word-level deterministic PS distinguisher detPSDistinguisherWord.

noncomputable def Cslib.Crypto.UOV.HashAndSign.detPSDistinguisherWord (sys : WordTrapdoorPreimageSystem) (psBound : ℕ → ℕ) (keyC keyD c d k : ℕ) (Control : Type) (machine : Turing.MultiTapePTM k Bool Control Bool) :

Word-level deterministic PS distinguisher corresponding to UOV.HashAndSign.detPSDistinguisher for a saved-coin word forger machine.

@[reducible, inline]

Caller context (n, pk, yStarWord, jVal) for target-embedding deterministic handlers.

@[reducible, inline]

Security parameter from DetTargetCaller.

@[reducible, inline]

Challenge target bit word from DetTargetCaller.

@[reducible, inline]

Guessed query index from DetTargetCaller.

@[reducible, inline]

Cache entry (yBits, isKnown, xOpt, matchedJ) stored by wordDetPSOneSimHandler.

@[reducible, inline]

Whether e holds a known simulated preimage (true) or the embedded challenge (false).

@[reducible, inline]

Simulated preimage slot in DetPSOneEntry.

@[reducible, inline]

Recorded match bit some (idx == jVal) for fresh .inr queries in DetPSOneEntry.

@[reducible, inline]

State (cache, signed, hCount) maintained by wordDetPSOneSimHandler.

@[reducible, inline]

Memoized random-oracle table from DetPSOneState.

@[reducible, inline]

Signed message list from DetPSOneState.

@[reducible, inline]

Fresh direct hash query counter from DetPSOneState.

Stateful ProbComp handler for detPSOneDistinguisherWord: embeds caller.yStarWord at the caller.jVal-th fresh .inr query and simulates all other fresh queries with sys.wordSampleSimPair.

noncomputable def Cslib.Crypto.UOV.HashAndSign.detPSOneDistinguisherWord (sys : WordTrapdoorPreimageSystem) (psBound : ℕ → ℕ) (keyC keyD c d k : ℕ) (Control : Type) (machine : Turing.MultiTapePTM k Bool Control Bool) :

1-query word-level PS distinguisher corresponding to UOV.HashAndSign.detPSOneDistinguisher for a saved-coin word forger machine.

@[reducible, inline]

Cache entry (yBits, isKnown, xOpt) stored by wordDetInvHandler.

@[reducible, inline]

Whether e holds a known simulated preimage (true) or the embedded challenge (false).

@[reducible, inline]

Simulated preimage slot in DetInvEntry.

@[reducible, inline]

State (cache, hCount) maintained by wordDetInvHandler.

@[reducible, inline]

Memoized random-oracle table from DetInvState.

@[reducible, inline]

Fresh direct hash query counter from DetInvState.

State handler for the word-level deterministic INV inverter detInverterWord.

noncomputable def Cslib.Crypto.UOV.HashAndSign.detInverterWord (sys : WordTrapdoorPreimageSystem) (keyC keyD c d k : ℕ) (Control : Type) (machine : Turing.MultiTapePTM k Bool Control Bool) :

Word-level deterministic INV reduction corresponding to UOV.HashAndSign.detInverter for a saved-coin word forger machine using exact dyadic target-query guessing (sampleDyadicIndex).