Ideal functionalities with a private outgoing call port #
This module defines UC.HybridFunctionality, an n-party ideal functionality equipped with a
private outgoing call port G, in this library's call-and-return, call-bounded port model.
Each activation (onInput for party inputs and onBackdoor for adversary backdoor queries) is a
stateful ProbOracleComp G program that may call G and wait for the answer before continuing.
Closing F with a closed resource machine R κ C : Machine OracleSpec.empty G via
HybridFunctionality.close F R yields an ordinary UC.Protocol by sequential machine composition
(F.toMachine κ C).comp (R κ C), reusing Machine.comp from
CslibFrontier.Crypto.Protocols.UC.Machine.
Model and scope #
- Library construction (no cited definition). In the interactive Turing machine model of
[Can20a], Section 3.1.2 (JACM p. 28:23), the external-write instruction lets an ITI
write to a tape of another ITI, subject to the control function, which determines which
external-write instructions are allowed;
HybridFunctionalityrestricts outgoing calls to call-and-return oracle invocations (ProbOracleComp G). - Private resource. In
HybridFunctionality.close F R, there is no direct raw resource port for the environment or the adversary; all resource calls are mediated byF, either through a permitted (including corrupted) party activation viaonInputor throughonBackdoor. By contrast, the library's routedUC.HybridProtocolconstruction (CslibFrontier.Crypto.Protocols.UC.Composition) routes subroutine calls behindcorruptRouterand exposes the subroutine's routed network port to the adversary. - Initialization order and indexing. Like a
UC.Protocol, the resourceRis indexed by(κ, C). BecausecloseisMachine.comp,R κ Cis initialized beforeF.init κ C. - Call-bounded budgets. As throughout
CslibFrontier.Crypto.Protocols.UC, budgets (Machine.IsBounded,Protocol.PolyBounded) count oracle calls and private samples only, leaving local computation unbounded; computational polynomial-time machine execution is open in #6043.
Main definitions #
Cslib.Crypto.Protocols.UC.HybridFunctionality: ann-party ideal functionality with a private outgoing call portG.Cslib.Crypto.Protocols.UC.HybridFunctionality.toMachine: the interactive machine of a hybrid functionality, exporting the party and backdoor ports and importingG.Cslib.Crypto.Protocols.UC.HybridFunctionality.close: closing a hybrid functionality with a private resourceRto obtain aUC.Protocol.Cslib.Crypto.Protocols.UC.IdealFunctionality.toHybrid: viewing a closedIdealFunctionalityas a hybrid functionality overOracleSpec.empty.
Main results #
Cslib.Crypto.Protocols.UC.IdealFunctionality.toHybrid_toMachine:toHybridfollowed bytoMachinerecoversIdealFunctionality.toProtocol.Cslib.Crypto.Protocols.UC.HybridFunctionality.close_polyBounded: closing a bounded hybrid functionality with a bounded resource yields a bounded protocol.Cslib.Crypto.Protocols.UC.HybridFunctionality.exec_close: the UC execution ofF.close Ris the exact program obtained by running the resourceR κ Cagainst the reduction program linkingabsorbAdversary C A Z κ zwithrouteCorrupt C (F.toMachine κ C).Cslib.Crypto.Protocols.UC.HybridFunctionality.advantage_close: swapping the private resource of a hybrid functionality reduces to theSSP.advantagebetween the two resources for that explicit reduction program.Cslib.Crypto.Protocols.UC.HybridFunctionality.isQueryBounded_closeReduction: polynomial call budget for the resource-swap reduction program.
References #
- R. Canetti, Universally Composable Security, J. ACM 67(5), Article 28, 2020, Section 3.1.2 (JACM p. 28:23): the general external-write mechanism that motivates functionalities invoking subroutines (restricted here to call-and-return with a private resource).
- C. Brzuska, A. Delignat-Lavaud, C. Fournet, K. Kohbrok, M. Kohlweiss, State Separation for
Code-Based Game-Playing Proofs: the package-algebra reduction behind
SSP.advantage_comp.
Library construction (no cited definition): an n-party ideal functionality with a private
outgoing call port G in this library's call-and-return reading, where onInput and onBackdoor
may call G and wait for the answer. The general mechanism in [Can20a], Section 3.1.2
(JACM p. 28:23), is the external-write instruction, restricted here to call-and-return.
- State : Type
The private state.
The initial state, given the security parameter and the corrupted parties.
Party
igives inputx(or polls) and receives its pending output, if any; the activation may call the resource portG.A backdoor query of the adversary; the activation may call the resource port
G.
Library construction (no cited result): the interactive machine of F for security parameter
κ and corrupted parties C: party inputs go to onInput, the network port is the backdoor, and
resource calls go out on G.
Library construction (no cited result): F with its resource calls answered by R, a private
resource indexed by (κ, C) with no direct raw resource port for the environment or the
adversary; all resource calls are mediated by F, either through a permitted (including
corrupted) party activation via onInput or through onBackdoor. Because close uses
Machine.comp, R κ C is initialized before F.init κ C.
Library construction (no cited result): an ideal functionality viewed as a hybrid functionality
over the empty resource interface OracleSpec.empty.
Library infrastructure (no cited result): converting an ideal functionality to a hybrid
functionality and then to a machine recovers IdealFunctionality.toProtocol.
Library infrastructure (no cited result), in this library's call-bounded port model (budgets bound oracle call counts only; computational polynomial time is open in #6043): closing a bounded hybrid functionality with a bounded resource gives a bounded protocol.
Library infrastructure (no cited result): running the UC execution of F.close R is, as an
exact equation of programs, running the private resource R κ C against the program that links
absorbAdversary C A Z κ z with the corruption-routed machine routeCorrupt C (F.toMachine κ C).
Library infrastructure (no cited result): swapping the private resource of a hybrid
functionality is a state-separating reduction. The environment's advantage between F.close R and
F.close R' (with the same adversary) equals the SSP.advantage between the two resources for the
program that links absorbAdversary C A Z κ z with routeCorrupt C (F.toMachine κ C).
Library infrastructure (no cited result), in this library's call-bounded port model (budgets
bound oracle call counts only; computational polynomial time is open in #6043): call budget for
the resource-swap reduction program in HybridFunctionality.advantage_close.