Manuscript Offprint
arXiv:2610.22047SMT-Boosted Security Types and Correctness for Low-Level MPC
CHRISTIAN SKALKA, University of Vermont, USA
STEVEN BALDASTY, University of Vermont, USA
YEONHEE YEH, University of Vermont, USA
FELIX WALBERG, University of Vermont, USA
JOSEPH P. NEAR, University of Vermont, USA
Secure Multi-Party Computation (MPC) is an important enabling technology for data privacy in modern distributed applications. We develop a new Hoare logic and type theory to automatically enforce correctness, confidentiality, and integrity properties of protocols written in the Prelude/Overture language framework. Both definition and automation of our analyses leverages SMT verification, supporting precision and efficiency. Our approach is compositional, scalable, and generalizes to arbitrary prime fields and secret sharing schemes.
1 Introduction
Data privacy is a critical concern in distributed applications including privacy-preserving machine learning [20, 21, 23, 25] and blockchains [16, 19, 26, 37]. Secure multiparty computation (MPC) is a key software-based enabling technology for these applications. MPC protocols provide both confidentiality and integrity properties, formulated as real/ideal (aka simulator) security and universal composability (UC) [14], with well-studied manual proof methods [24]. MPC security semantics has also been reformulated as hyperproperties [2, 18, 34] to support automated language-based proof methods. Recent research in the SMT community has developed theories of finite fields [30] with clear relevance to verification of cryptographic schemes that rely on field arithmetic. The goal of this paper is to combine hyperproperty formulations of security with SMT verification as a foundation for enforcing correctness and security properties of MPC protocols.
Our focus is on low-level MPC protocols. Previous high-level MPC-enabled languages such as Wysteria [31] and Viaduct [2] are designed to provide effective programming of full applications, and incorporate sophisticated compilation techniques such as orchestration [1] to guarantee high-level security properties. But these approaches rely on libraries of low-level MPC protocols, such as binary and arithmetic circuits. These low-level protocols are probabilistic, encapsulate abstractions such as secret sharing and semi-homomorphic encryption, and are complementary to high-level language design.
While Overture provides a foundation for low-level MPC protocol specification, it does not provide higher-level features such as function definitions, and the share and integrity type systems are not automated. So we define the
Authors' Contact Information: Christian Skalka, University of Vermont, Burlington, Vermont, USA, ceskalka@uvm.edu; Steven Baldasty, University of Vermont, Burlington, Vermont, USA, sbaldast@uvm.edu; Yeonhee Yeh, University of Vermont, Burlington, Vermont, USA, yyeh@uvm.edu; Felix Walberg, University of Vermont, Burlington, Vermont, USA, fwalberg@uvm.edu; Joseph P. Near, University of Vermont, Burlington, Vermont, USA, jnear@uvm.edu.
Christian Skalka, Steven Baldasty, Yeonhee Yeh, Felix Walberg, and Joseph P. Near
main() { genshares("x1", 1, 2); genshares("x2", 1, 2); genshares("y1", 2, 1); genshares("y2", 2, 1); xorgmw("z1", "x1", "y1"); andgmw("g1", "x1", "y1"); xorgmw("g2", "x2", "y2"); xorgmw("z2", "g2", "g1") } postcondition: (|RECON("z2"), RECON("z1")| == BVAdd(|RECON("x2"), RECON("x1")|, |RECON("y2"), RECON("y1")|))

Fig. 1. A two-bit adder circuit (without carry) in Prelude with verification postcondition, using the GMW protocol.
Prelude language as a higher-level metaprogramming language that evaluates to Overture protocols. Prelude supports compositional definition of protocol components and also supports automation of constraint verification and type checking especially by leveraging SMT automation. Thus Prelude program analysis automates security and correctness properties of the low-level Overture protocols that Prelude programs evaluate to.
The specification of an MPC protocol is called its ideal functionality and a standard approach [27] is to implement ideal functionalities as either arithmetic or boolean circuits. An advantage of this is that subprotocols for primitive operations, such as addition and multiplication, or logic gates, can be implemented and optimized as subprotocols. Consider the example of a two-bit adder binary circuit in Figure 1. The ideal functionality of the circuit is two-bit vector addition (ignoring carry). On the left is a Prelude program that implements the protocol by “wiring” secure logic gates implemented using the Goldreich-Micali-Wigderson (GMW) protocol [17]. These are encapsulated in the xorgmw and andgmw definitions. In the first lines of the program, clients 1 and 2 each generate secret shares of their secret bits− and for client 1, and and for client 2. Shares are identified in the program by strings "x1", "y1", etc., as are the gates in the protocol. So the circuit is wired in the same way as the logic circuit diagram on the right. Each gate specifies a subprotocol where the operations are performed on encrypted wire data− in the case of GMW, these are secret shares.
An important feature of the example is the postcondition that specifies the correctness of the circuit. Here the syntax denotes a concatenation of bits into a bit vector, and BVAdd is bit vector addition. These operations are components of the SMT cvc5 Bit-Vector theory and the postcondition is automatically verified using it. RECON is a constraint-level function indicating the reconstructed value represented by secret shares. So the postcondition says that the reconstructed shares of the outputs are equal to the sum of the reconstructed secret shares of the inputs.
In the remainder of the paper we will go into more complete detail about the underlying definitions of genshares, xorgmw, and andgmw (see in particular Figure 17 in Section 7 and Figure 22 in Section 8.1). This includes their share type checking that guarantees passive simulator security in this and other examples. Another important point is that other protocols can be used to define gates, for example malicious secure protocols, since Prelude and Overture support low-level protocol specification.
1.2 A Brief Introduction to MPC Protocols
An MPC protocol allows a collection of parties to compute a function of their private inputs without revealing those inputs to each other. The function to be computed is typically called the ideal functionality, and a correct protocol must produce the same output as the ideal functionality. An MPC protocol is secure if it reveals no additional information to the parties beyond what is intentionally revealed by the ideal functionality. The information available to a party (its input, randomness, received messages, and outputs) is called its view; an adversary can observe the views of all corrupted parties [14, 24].
Secret sharing splits a secret value into shares that allow limited computations but prevent individual parties from learning the secret. Additive secret sharing is one example: to additively share between two parties, we sample a uniform and gives the shares and to the respective parties. To reconstruct the secret, we compute . Each share by itself is uniform and therefore does not reveal , but two shares together uniquely determine . This construction is a finite-field one-time pad (OTP): for every possible , the observed value has the same uniform distribution, so even an adversary with unlimited computational power learns nothing about . The mask must be fresh for every secret. For example, reusing to mask and reveals their difference, since . In this paper RECON denotes reconstruction, and over additive reconstruction is XOR, as used for GMW wire values [14, 17].
Additive secret sharing is a form of semi-homomorphic encryption: it allows limited forms of computation without decryption. Adding two additive sharings componentwise gives a sharing of the sum. However, additive secret shares cannot be multiplied to obtain shares of the product; to support multiplication, MPC protocols use additional machinery (e.g. oblivious transfer in GMW, or preprocessed Beaver triples in arithmetic protocols [8, 14, 17, 29]).
Oblivious transfer (OT) is a two-party protocol that allows one party to select a value from the other without revealing which one was selected. The sender supplies two values , and the receiver supplies a choice bit b. The receiver obtains without learning , while the sender learns nothing about b. For example, GMW uses OT to select an entry from a table that implements a Boolean gate without revealing either party's secret-shared input bits. Different OT implementations rely on different assumptions, so our language treats OT abstractly and requires only these functional and privacy guarantees [14, 17].
Another approach moves expensive work into an input-independent preprocessing phase that distributes correlated randomness before the parties know their private inputs. A Beaver triple [7] consists of secret shares of random values satisfying . To multiply shared and , the parties reconstruct the masked differences and , then locally obtain shares of . Reusing a Beaver triple leads to correlations that break security, so triples and other preprocessing resources must be fresh where required and securely generated; this paper specifies their needed properties without implementing that generation protocol [8, 14, 29].
MPC confidentiality is conventionally defined by comparing a real protocol execution with an ideal execution in which a trusted party receives the inputs, evaluates the ideal functionality, and returns only its specified outputs. A simulator for a corrupt coalition receives only the information available in the ideal execution—in particular, the coalition’s inputs and prescribed outputs—and must generate a simulated view indistinguishable from its real protocol view. The existence of such a simulator means that anything learned from the real messages could also have been learned from the allowed ideal information—in other words, the real protocol reveals no more than the ideal functionality [24].
Depending on the setting, indistinguishability may mean equality of distributions, statistical closeness, or computational indistinguishability. Equality gives perfect, or information-theoretic, security even against unlimited computation. Statistical security permits a small difference between the distributions, bounding the distinguishing advantage even for unlimited computation. Computational security instead considers efficient adversaries and rests on a hardness assumption. Its security parameter, such as a key length (or a field size for field-based authentication), controls both cost
Christian Skalka, Steven Baldasty, Yeonhee Yeh, Felix Walberg, and Joseph P. Near
and protection; a distinguishing advantage is negligible when it decreases faster than any inverse polynomial as that parameter grows. This paper uses equality of finite distributions in its core model.
The adversary model determines how the corrupt parties behave. A passive (or honest-but-curious) adversary records and analyzes the combined view of corrupt parties, but those parties follow the protocol. A malicious (or active) adversary may instead choose arbitrary inputs, messages, and local computations. Malicious security therefore combines confidentiality and integrity [14].
BDOZ and SPDZ protect integrity using authenticated shares [8, 10, 11, 29]. A message authentication code (MAC) is a tag that binds a value to secret authentication information; in these protocols, another party holds the information needed to check a share's tag. A corrupt party cannot tamper with a share, since it is impossible to produce a corresponding valid tag. The MACs are linearly homomorphic, so tags can be updated consistently when shares are added. Before revealing an authenticated value, the parties check the resulting tag and abort if it is invalid.
Ideal outputs may intentionally reveal information, so MPC security differs from ordinary noninterference. MPC security requires only that the protocol's execution reveal nothing additional compared to the ideal functionality. Section 3 formalizes this idea as noninterference modulo output and uses it as a hyperproperty that implies passive simulator security.
1.3 Summary of the Theory and Implementation
Here we summarize the main theoretical developments and results in the paper and their connections. In Section 2 we define the Overture language model. In Section 3 we articulate our security model as hyperproperties of noninterference modulo output (Definition 3.8) and integrity (Definition 3.10). As has been shown in previous work [34, 35], noninterference modulo output is sound for passive simulator security, while the addition of integrity obtains malicious security. Compared to this prior whole-program analysis, our use of weaker customized postconditions supports compositional reuse of verified components. Section 9 quantifies the resulting performance improvement. Figure 2 summarizes how the languages, analyses, and guarantees fit together.
In Section 4 we develop an SMT-based Hoare logic endowed with notions of validity and derivability, where the latter is shown to imply the former (Lemma 4.7). This is an important foundation both for our verification method and for notions of constraint correctness in type systems. In Section 5 we develop a novel share type system, enabling security verification for protocols that use secret sharing as a building block; our approach works for any secret sharing scheme and enforces noninterference modulo output and therefore passive security (Theorem 5.9). The share type system also supports verification of protocols with respect to ideal functionality. In Section 6, we develop a different type system that enforces integrity (Theorem 6.3). Thus both share and integrity typability of a Overture protocol imply that it is malicious secure.
In Section 7 we define the Prelude syntax and semantics, including pre- and postcondition annotations on functions (as in the example in Figure 1). Intuitively, any Prelude program evaluates to a Overture protocol, so we refer to it as a metaprogramming language. We define an automated Hoare logic for Overture programs, to verify pre- and postcondition annotations. This automated Hoare logic is shown to be sound in the sense that pre- and postconditions will be valid for any function applications (Lemma 7.5). An implication of this (Corollary 7.6) means that function pre- and postconditions are compositional and need only be verified once, achieving greater performance efficiency. In Section 8, we develop an automated type system for Prelude that guarantees that any well-typed Prelude program evaluates to a share-typable Overture protocol (Theorem 8.6) and hence its passive security.

Fig. 2. Relationships among the paper's formal components and security guarantees. Blue boxes denote languages and their semantics, orange boxes denote verification analyses, and green boxes denote the correctness and security guarantees they establish. Dashed outlines group components by abstraction level.
In Section 9 we develop and discuss extended example applications of our type analyses to real protocols including the Goldreich-Micali-Wigderson (GMW), Ben-Or-Goldwasser-Widgerson (BGW), and Bendlin-Damgard-Orland-Zakarias (BDOZ). We also summarize our implementation of the Prelude Hoare logic and evaluate verification of both binary and arithmetic gate and circuit properties. Our implementation integrates with cvc5 SMT to support efficient verification, including Satisfiability Modulo Finite Fields (SMFF) [30] for binary and arithmetic circuits, and the Bit-Vector theory for binary circuits. The Prelude Hoare logic analysis has been fully implemented in the current work in an Antlr/Scala/cvc5-based workflow.
The implementation that produced our experimental results is available in our companion repository . It uses ANTLR4 to parse Prelude the source code, Scala to convert the Prelude abstract syntax tree into cvc5 constraints, and the cvc5 solver to prove that for all functions the precondition and function body meet the postcondition. When built, the tool runs as a single Java archive (JAR). The repository includes installation instructions, source code, further documentation, and a variety of Prelude examples.
1.4 Related Work and Our Contributions
The goal of the Prelude/Overture framework is to automate correctness and security verification of low-level protocols. Other prior work has considered automated verification of high-level protocols and manual verification of low-level protocols. We summarize this comparison in Figure 3. In this Figure we consider related systems in several dimensions. This includes whether the language system provides probabilistic features (e.g., sampling) that are fundamental to low-level protocols. It also includes whether existing verification methods include probabilistic conditioning that is essential to condition analysis of information leakage inherent in ideal functionalities. We consider whether the system is designed for low-level protocols, as opposed to being a framework for integrating them in applications (e.g., during
https://github.com/uvm-plaid/prelude-public
Christian Skalka, Steven Baldasty, Yeonhee Yeh, Felix Walberg, and Joseph P. Near
| probabilistic features | ||||||
|---|---|---|---|---|---|---|
| probabilistic conditioning | low-level protocols | passive security | malicious security | hyperproperties | automation | |
| Haskell EDSL [28] | ✓ | ✓ | ✓ | ✓ | ✓ | |
| MPC in SecreC [3] | ✓ | ✓ | ✓ | ✓ | ✓ | |
| [12] | ✓ | ✓ | ✓ | ✓ | ||
| PSL [5] | ✓ | ✓ | ||||
| Lilac [22] | ✓ | ✓ | ||||
| Wys* [32] | ✓ | ✓ | ✓ | |||
| Viaduct [1, 2] | ✓ | ✓ | ✓ | ✓ | ||
| MPC in EasyCrypt [18] | ✓ | ✓ | ✓ | ✓ | ✓ | |
| Swanky [18] | ✓ | ✓ | ✓ | |||
| Prelude/Overture 1 [34] | ✓ | ✓ | * | * | ✓ | * |
| Prelude/Overture 2 [35] | ✓ | ✓ | ✓ | * | ✓ | * |
| This work | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Fig. 3. Comparison of systems for verification of MPC security in PLs. * indicates relatively limited support.
compilation). We consider whether the system has integrated methods and/or mechanisms for proving passive and malicious security, and whether sound hyperproperties have been formulated to support enforcement of security via program analysis such as type systems. Finally, we consider whether proof/enforcement mechanisms are automated in the system, vs., e.g., realized in proof assistants.
The most closely related works are previous versions of the Prelude/Overture framework [34, 35]. In the earliest work [34] foundations for Prelude/Overture are introduced including a verification algorithm. However, this algorithm only works for - e.g., binary circuits– and the datalog-based automation is a brute-force whole program analysis. Subsequent work [35] extends the language model to arbitrary prime fields and introduces the use of SMT to optimize verification in prime fields, though the automation is still a whole-program analysis. The type systems presented in these works support a gradual release property, weaker than noninterference modulo output, and integrity properties. The current work provides several advancements of Prelude/Overture:
-
We develop a compositional Hoare logic that provides a foundation for compositional verification and type safety results.
-
We define a share type system that enforces noninterference modulo output as a result of type safety. This implies that share types enforce passive security and, together with integrity typability, imply malicious security.
-
Share types also support verification of ideal functionality specification of protocol outputs.
-
We extend the share type system to Prelude, along with a compositional language of pre- and postconditions for functions. Type safety in Prelude ensures that share typing in programs is preserved by evaluation to Overture protocols.
-
The extensions in this work additionally enable the type-based enforcement of noninterference modulo output for more complex secret sharing protocols, e.g., that leverage Beaver triples.
-
We implement and evaluate the compositional verification of pre- and postconditions by considering examples of large circuits, specifically Bristol circuits. This evaluation demonstrates empirical advantages of compositional vs. whole-program verification.
The SAW/Cryptol framework [13] supports definitions of cryptographic protocols and verification of functional correctness using SMT. The Swanky extension [15] is especially related to our work, since it is intended to apply to MPC protocols in binary and prime fields. For example, Swanky has been used in the implementation of ZK systems [6]. However, while the goals of our system are overlapping with regard to verification of protocol correctness, we are also focused on type systems for enforcement of security properties, incorporating reasoning about probabilistic behavior of protocols. SAW/Cryptol and Swanky, by contrast, are not designed to verify security properties of protocols, since these are inherently probabilistic. Our language model also more readily accommodates primitives for message passing between multiple parties. But as we discuss in Section 10, leveraging Swanky to accelerate verification is an interesting direction for future work.
Other low-level languages with probabilistic features for privacy preserving protocols have been proposed. The language [12] uses a type system to automatically enforce so-called probabilistic trace obliviousness. But similar to previous work on oblivious data structures [38], obliviousness is related to pure noninterference, not the conditional form related to passive MPC security (Definition 3.8). A Haskell-based security type system has been defined as an embedded DSL [28] that enforces a version of noninterference that is sound for passive security, but does not consider malicious security. Properties of real/ideal passive and malicious security for a probabilistic language have been (manually) formulated in EasyCrypt [18].
Several high-level languages have been developed for writing MPC applications. Previous work on analysis for the SecreC language [3, 9] is concerned with properties of complex MPC circuits, in particular a user-friendly specification and automated enforcement of declassification bounds in programs that use MPC in subprograms. The Wys* language [32], based on Wysteria [31], has similar goals and includes a trace-based semantics for reasoning about the interactions of MPC protocols. Their compiler also guarantees that underlying multi-threaded protocols enforce the single-threaded source language semantics. These two lines of work were focused on passive security. The Viaduct language [2] has a well-developed information flow type system that automatically enforces both confidentiality and integrity through hyperproperties such as robust declassification, in addition to rigorous compilation guarantees through orchestration [1]. However, these high level languages lack probabilistic features and other abstractions of low-level protocols, the implementation and security of which are typically assumed as a selection of library components.
Program logics for probabilistic languages and specifically reasoning about properties such as joint probabilistic independence is also important related work. Probabilistic Separation Logic (PSL) [5] develops a logical framework for reasoning about probabilistic independence (aka separation) in programs, and they consider several (hyper)properties, such as perfect secrecy of one-time-pads and indistinguishability in secret sharing, that are critical to MPC. Lilac [22] extends this line of work with formalisms for conditional independence which is also particularly important for MPC [34].
Christian Skalka, Steven Baldasty, Yeonhee Yeh, Felix Walberg, and Joseph P. Near
expressions
located variables
protocols
Fig. 4. Syntax of Overture
2 Overture Syntax and Operational Semantics
The Overture language establishes a basic model of synchronous protocols between a federation of clients exchanging values in a finite field. Synchronous means that the sender and receiver in each communication “block” until data is exchanged. This is consistent with standard models of MPC and real protocols [14]. In order to align with existing SMT theories [30] we restrict our consideration to prime fields. We identify clients by natural numbers and federations-finite sets of clients- are always given statically. Our threat model assumes a partition of the federation into honest H and corrupt C subsets. We model probabilistic programming via a random tape semantics. That is, we will assume that programs can make reference to values chosen from a uniform random distribution defined in the initial program memory. Programs aka protocols execute deterministically given the random tape.
2.1 Syntax
The syntax of Overture, defined in Figure 4, includes values v and standard operations of addition, subtraction, and multiplication in a finite field where p is some prime. Protocols are given input secret values s[w] as well as random samples r[w] on the input tape, implemented using a memory as described below (Section 2.2) where w is a distinguishing identifier string. Protocols are sequences of assignment commands of three different forms:
-
m[w]@t₂ := ε@t₁: This is a unicast message send where expression ε is computed by client t₁ and sent to client t₂ as message m[w].
-
p[w] := ε@l: This is a public reveal where expression ε is computed by client l and broadcast to the federation, typically to communicate intermediate results for use in final output computations.
-
out@l := ε@l: This is an output where expression ε is computed by client l and reported as its output. As a sanity condition we disallow commands out@l₁ := ε@l₂ where l₁ ≠ l₂.
The distinction between messages and broadcast public reveal is consistent with previous formulations, e.g., [28]. While this distinction is important, it will frequently be helpful to refer to located variables in general so we collect them in a syntactic sort x. To help identify and distinguish between collections of variables in protocols we introduce the following notation.
Definition 2.1. We let range over located variables which are identifiers where client ownership is specified- e.g., is a message foo that was sent to . We let range over sets of variables, and more specifically, ranges over sets of secret variables , ranges over sets of random variables , ranges over sets of message variables , ranges over sets of public variables , and ranges over sets of output variables out@l. Given a program , we write to denote the particular set of variables in and secrets to denote , and we write to denote the particular set of random samplings in . We write to denote .
Fig. 5. Semantics of Overture expressions (top) and programs (bottom).
For any set of variables X and clients I, we write to denote the subset of X owned by any client , in particular we write and to denote the subsets belonging to honest and corrupt parties, respectively.
In all cases we disallow overwriting of variables, since assignment is intended to represent distinct message sends. An example of a Overture protocol, for additive secret sharing, is discussed in Section 4.2.
2.2 Semantics
Memories are fundamental to the semantics of Overture and provide random tape and secret inputs to protocols, and also record message sends, public broadcast, and client outputs.
Definition 2.2. Memories are finite (partial) mappings from variables to values . The domain of a memory is written and is the finite set of variables on which the memory is defined. We write for to denote the memory such that and otherwise for all . We write iff and for all . Given any and with for all , we write to denote the memory with domain such that:
In our subsequent presentation we will often want to consider arbitrary memories that range over particular variables and to restrict memories to particular subsets of their domain:
Definition 2.3. Given a set of variables X and memory , we write to denote the memory with and for all . We define as the set of all memories with domain X:
So for example, the set of all random tapes for a protocol is , and the memory is restricted to the secrets in .
Given a variable-free expression , we write to denote the standard interpretation of in the arithmetic field . With the introduction of variables to expressions, we need to interpret variables with respect to a specific memory, and all variables used in an expression must belong to a specified client. Thus, we denote interpretation of expressions computed on a client as . This interpretation is defined in Figure 5, along with the big-step reduction relation to evaluate commands. Reduction is a mapping from configurations to final memories where all three command forms- message send, broadcast, and output- are implemented as updates to the memory .
Christian Skalka, Steven Baldasty, Yeonhee Yeh, Felix Walberg, and Joseph P. Near
Fig. 6. Adversarial semantics of Overture.
Oblivious Transfer. A passive secure oblivious transfer (OT) protocol based on previous work [5] can be defined in Overture, albeit assuming some shared randomness. Alternatively, a simple passive secure OT can be defined with the addition of public key cryptography as a primitive. But given the diversity of approaches to OT, we instead assume that OT is abstract with respect to its implementation. In particular, we do not define a semantics of OT in Figure 5. However we will be able to define a formal specification of OT− we return to this in Section 4. Informally, any use is of the form – given a choice bit provided by a receiver , the sender sends either or . Critically, learns nothing about and learns nothing about the unselected value.
Sanity conditions on protocols. To simplify the presentation we will disregard protocols that are semantically ill-defined. That is, we generally assume that for any program there exists with . This rules out use of undefined variables and, in the adversarial semantics, programs consisting of just a failing assert.
2.3 Overture Adversarial Semantics
In the malicious model we assume that corrupt clients are in thrall to an adversary that does not necessarily follow the rules of the protocol. We model this by positing a rewrite function which is given a corrupt memory and expression , and returns a rewritten expression that can be interpreted to yield a corrupt input. We define the evaluation relation that incorporates the adversary in Figure 6.
A key technical distinction of the malicious setting is that it typically incorporates “abort”. Honest parties implement strategies to detect rule-breaking– aka cheating– by using, e.g., message authentication codes with semi-homomorphic properties as in BDOZ/SPDZ [29]. If cheating is detected, the protocol is aborted. Note that abort is an explicit action, not semantic ill-formedness (disallowed by sanity conditions). To model this, we extend Overture with an assert command:
As we will discuss, this form of asserting equality between expressions is sufficient to capture MAC checking and support integrity in protocols. The big-step adversarial semantics relation is then defined in Figure 6 as a mapping from configurations to a memory or . Note that any corrupted party is free to ignore any failing assert, in addition to rewriting their own protocol steps.
2.3.1 Protocol Runs. Our semantics require that random tapes contain values for all program values sampled from a uniform distribution over . Input memories also contain input secret values and possibly other initial view elements as a result of pre-processing, e.g., Beaver triples for efficient multiplication, and/or MACed share distributions as in BDOZ/SPDZ [14, 29]. We therefore posit a predicate preproc on memories that specifies relevant preconditions, e.g., that it contains Beaver triples with associated properties, or pre-distributed keys for MAC checking.
We define as the set of final memories resulting from execution of given any initial memory, possibly augmented with a preprocessed memory (a memory that satisfies a predicate ), and is the analog in the malicious setting. It is necessary to define independently since adversaries can rewrite their own protocol steps and thus affect protocol semantics. Since we constrain programs to not overwrite any variable, we are assured that final memories contain both a complete record of all initial secrets as well as views resulting from communicated information. This formulation will be fundamental to our consideration of probability distributions and hyperproperties of protocols.
Definition 2.4. Given with secrets and and predicate preproc on memories, define:
And similarly for any adversary we define adversarial runs as follows:
3 Security Model
MPC protocols are intended to implement some ideal functionality with per-client outputs. In the Overture setting, given a protocol that implements , with , the domain of is and its range is . Security in the MPC setting means that, given , a secure protocol does not reveal any more information about honest secrets to parties in beyond what is implicitly declassified by . Security comes in passive and malicious flavors, wherein the adversary either follows the rules or not, respectively. Characterization of both real world protocol execution and simulation is defined probabilistically. In this work we will focus on the enforcement of hyperproperties of passive and malicious security developed in related work [34], that were shown to be sound for real/ideal security properties that are traditionally used for MPC. As in that work we use probability mass functions to express joint dependencies between input and output variables, as a metric of information leakage.
3.1 Probability Mass Functions (pmfs)
Pmfs map realizations of variables in a joint distribution to values in [0..1]. For convenience and following [5, 34] we use memories to represent realizations, so for example given a pmf over variables we write to denote the (joint) probability that . Recall from Section 2.2 that denotes the combination of memories, so for example .
Definition 3.1. A probability mass function over random variables (written ) is a function with domain and range such that:
Now, we can define a notion of marginal and conditional distributions as follows, which are standard for discrete probability mass functions.
Christian Skalka, Steven Baldasty, Yeonhee Yeh, Felix Walberg, and Joseph P. Near
Definition 3.2. Given with , the marginal distribution of variables in is denoted and defined as follows:
Definition 3.3. Given , the conditional distribution of given where is denoted and defined as follows:
The first case applies when the marginal probability that takes the value assigned by the restricted memory is zero; without this case, the conditional probability would be undefined. We also define some convenient syntactic sugaring for application of pmfs to realizations when their domains don’t match.
Definition 3.4. Given and with , .
As in previous work [5, 12, 22, 34], probabilistic independence, aka separation, is an important concept and we adopt the following standard notation to express conditional and unconditional separation:
Definition 3.5. We write iff for all we have . If is empty we write .
3.2 Basic Distribution of a Protocol
We treat all elements of as equally likely. This establishes the basic program distribution that can be marginalized and conditioned to quantify input/output information dependencies.
Definition 3.6. The basic distribution of , written , is defined such that for all :
For any the basic distribution of , written , is defined such that for all :
where pads out undefined views and outputs with :
3.3 Honest and Corrupt Views
Information about honest secrets can be revealed to corrupt clients through messages sent from honest to corrupt clients, and through publicly broadcast information from honest clients. Dually, corrupt clients can impact protocol integrity through the messages sent from corrupt to honest clients, and through publicly broadcast information from corrupt clients. We call the former corrupt views, and the latter honest views. We let V range over sets of views, i.e., subsets of .
Definition 3.7 (Corrupt and Honest Views). We let range over views which are sets of messages and reveals. Given a program with , define . Letting be a partitioning of the federation clients, define:
Given a partitioning of the federation H, C, we call corrupt views and honest views.
3.4 Hyperproperties of Confidentiality and Integrity
In this section we restate hyperproperties developed in previous work [34]. The reader is referred to that paper for a more thorough discussion of their relation to real/ideal security. In this paper, we leverage that relation to establish security properties in our type system.
3.4.1 Confidentiality. Since MPC protocols release some information about secrets through their outputs– that equal the ideal functionality applied to all secret inputs– they do not enjoy strict noninterference. Public reveals and protocol outputs are fundamentally forms of declassification. But the following property of probabilistic noninterference conditioned on output is sound for passive security. Intuitively, in this definition we can think of as the distribution of honest inputs given the adversarial knowledge of corrupt inputs and public outputs . This establishes an upper bound on information that can be leaked to the adversary as determined by the ideal functionality under the assumption of corrupted parties– or, put another way, the adversary’s ability to guess knowing and . We can think of as the distribution of given the same corrupt inputs and public outputs, and additionally the adversarial views communicated during runs of . If these distributions are the same, we can deduce that the protocol reveals no more information about than the corrupt inputs and public outputs alone. More details and a proof that this property is sound for passive simulator security are reported in previous work [34].
Definition 3.8 (Noninterference modulo output). We say that a program with satisfies noninterference modulo output iff for all and and we have:
In practice, MPC protocols typically satisfy a gradual release property [33], where the distribution of messages exchanged during the protocol are independent of the distribution of input secrets, with only final reveal and output stages having dependence on input secrets. Referring to Example 4.2.1, the messages exchanged during the protocol in this case are all in independent uniform distributions, while the broadcast reveals p[1 - 3] used to reconstruct the outputs out@1 - 3 are dependent. Gradual release is strictly weaker than noninterference. It says that intentional reveals and outputs (declassifications) are the only point of information escape in the protocol, but does not specify what information may be revealed.
Definition 3.9. Given H, C, a protocol with satisfies gradual release iff .
Noninterference modulo output directly implies passive simulator security [34], so a sound analysis for noninterference modulo output is also a sound analysis for passive simulator security. However, such an analysis is not necessarily complete: there exist MPC protocols that satisfy passive simulator security, but which do not satisfy noninterference modulo output. In particular, our definition of noninterference modulo output requires equality of the two distributions, which does not hold in protocols for which indistinguishability relies on computational hardness assumptions (this includes protocols based on public-key cryptography, such as many protocols for oblivious transfer). Our approach is not capable of proving security for these protocols.
Christian Skalka, Steven Baldasty, Yeonhee Yeh, Felix Walberg, and Joseph P. Near
3.4.2 Integrity. Integrity is an important hyperproperty in security models that admit malicious adversaries. Consistent with formulations in deterministic settings, we define protocol integrity as the preservation of high equivalence (of secrets and views). Intuitively, this property says that any adversarial strategy either “mimics” a passive strategy with some choice of inputs or causes an abort.
Definition 3.10 (Integrity). We say that a protocol with has integrity iff for all , , and , if there exists with and:
where and .
Integrity plus noninterference modulo output implies malicious security in the real/ideal model [34], and integrity plus gradual release is a probabilistic form of robust declassification [33].
4 Overture SMT-Based Hoare Logic
In previous work it was shown that the semantics of Overture in can be implemented with Datalog [34], which is a form of constraint programming. In this paper we explore using SMT instead which has several advantages. SMT is a highly studied and optimized system with a variety of theories. In particular, we can leverage the cvc5 Bit-Vector theory for verification in and extend verification to abritrary prime fields using Satisfiability Modulo Finite Fields [30]. As we will show in subsequent sections, this interpretation supports automated enforcement of correctness guarantees as well as static type analysis for enforcing confidentiality and integrity properties. In this section we formulate a Hoare Logic for Overture as a foundation for protocol verification.
4.1 Constraint Satisfiability and Entailment
We introduce the following syntax of SMT-style constraints for Overture. The language of constraint terms includes field values and operations (+, -, and *), and also bit operations (construction | · |, summation ⊕, and subtraction ⊝). We note that bit vector operations are included only in the constraint language– they allow us to leverage cvc5 bit vector operations and constraints, while protocols (circuits) themselves still manipulate individual bits. We illustrate how this can be used for verification in Section 9.
constraints
While constraint terms are similar to expressions , in contrast they can “cross party lines”. This is needed to express correctness properties– for example, in the Goldreich-Micali-Wigderson (GMW) protocol wire values in circuits are represented by reconstructive shares [14]. If by convention shares of values are represented by on clients, then assuming two clients the reconstructed value can be expressed as . So, while summing values across clients is disallowed in Overture protocols, we can express properties of shared values via constraints.
This language of constraints has an obvious direct interpretation in SMT, in particular the cvc5 Bit-Vector theory in the case of and Satisfiability Modulo Finite Fields [30] for other prime fields. We can leverage this to implement a critical entailment property, written . Our entailment relation is based on satisfiability in a standard sense, where we represent models as memories (mappings from variables to values).
Fig. 7. Interpretation of Overture expressions (top) and programs (bottom) as constraints
Definition 4.1. We write iff satisfies, aka is a model of, . We write iff implies for all , and note that this relation is a preorder.
Given this definition, the following Theorem is well-known and a fundamental technique in SMT to implement our (common) notion of entailment.
THEOREM 4.2. iff is not satisfiable.
4.2 Programs as Constraint Systems
A central idea of our approach is that we can interpret any protocol as a set of equality constraints (denoted ) and use an SMT solver to verify properties relevant to correctness, confidentiality, and integrity. Further, we can leverage entailment for tractability– we can use annotations to obtain a weakened precondition for relevant properties. That is, given , program annotations or other cues can be used to find a minimal with for verifying correctness and security.
The mapping from programs to constraints is defined in Figure 7. The interpretation of OT is omitted from this figure which is general. For (using to denote negation) the interpretation is:
In general we will assume that any preprocessing predicate is defined via a constraint , i.e., for all . Intuitively, a protocol satisfies a correctness (post)condition if its SMT interpretation together with entails .
4.2.1 Example: Correctness of 3-Party Addition. Consider the following 3-party additive secret sharing protocol, where each party generates two additive secret shares [14] for their respective secrets. Each party publicly reveals the sums of all their shares, and the sum of those is the protocol output for each party.
Letting be this protocol, we can verify correctness as follows– that is, the output sum of all shares is the sum of the three input secrets:
We can establish a logical identity between the models of a program and its (non-adversarial) runs as follows.
THEOREM 4.3.
Christian Skalka, Steven Baldasty, Yeonhee Yeh, Felix Walberg, and Joseph P. Near
Fig. 8. Overture Hoare logic derivation rules
This result follows as a consequence of a more general Lemma that incorporates a notion of preconditions:
LEMMA 4.4. Given with . Then .
4.3 Overture Hoare Logic
To reason effectively about pre and postconditions we introduce a Hoare logic for Overture, where means that are the preconditions and postconditions, respectively, of . A semantic notion of validity for Hoare triples is defined as follows:
Definition 4.5. is valid iff .
The following Lemma establishes that this is a meaningful (and standard) definition. It follows by Lemma 4.4 and transitivity of .
LEMMA 4.6. Given with and . Then implies .
Now we can introduce a validity-preserving derivation system for the Overture Hoare logic. The derivation rules are specified in Figure 8, where in rule FRAME we define as the variables in that are assigned to. The rules are mostly standard except for Assert which includes the expected equality in a precondition, and Hyp. It is possible that Hyp is derivable, but in any case it is validity preserving as we show in the following Lemma. Its main use in this paper will be to enable an automated Hoare logic check we develop later (Section 7.3).
LEMMA 4.7. If is derivable, then it is valid.
PROOF. By induction on the derivation and cases analysis on the last derivation step. We only need to consider Hyp since other cases are standard. In this case the consequent is of the form where is derivable by inversion of Hyp and hence valid by the induction hypothesis. Thus , and we can strengthen the condition on the rhs of the entailment as , so by standard reasoning we have: , and since iff , we have .
5 Share Types
Our approach to static confidentiality analysis is to enforce the use of sound techniques in semi-homomorphic encryption in protocols. As discussed in the example in Section 4.2.1, protocols integrate interactive elements, such as the sharing of one-time-pad (OTP) encrypted secrets, and noninteractive elements, such as addition (of shares). To comport with this we introduce distinct judgement forms for interactive and noninteractive protocol elements. Our type system as presented will assume 2-client protocols, but this is for clarity of presentation and the analysis can be generalized to more parties. So in this Section we define the federation as (client 1 and client 2).
Our confidentiality analysis mainly considers protocols in terms of their SMT interpretations as described in Section 4. We introduce a share type language , classifying share terms. We represent share terms using standard notation [29]. A share term represents a secret-shared value where client 1 has and client 2 has , and this shared value can be reconstructed as a public value .
Share generation and reconstruction. A secret sharing scheme includes functions (genshares, recon) that generate and reconstruct shares, respectively. The genshares function takes some input and randomness and produces two shares (or as many is needed for the number of clients in the federation):
and:
In order for genshares to be sound with regard to confidentiality, we require that both of and are marginally independent of , and also of any other values in the protocol. This entails the requirement that is consumed by genshares, e.g., as an OTP. We formally characterize soundness of genshares in our protocol model in Definition 5.3. We emphasize that our type system is agnostic with respect to the definition of genshares and recon modulo soundness—we use an additive shares encoding in this work, but the analysis could apply instead to, e.g., Shamir sharing.
More generally, when we ascribe the type : shares, this means that are shares of their reconstruction recon( ), noting that shares can be obtained either by genshares or by noninteractive homomorphic protocols. Likewise, : output means that has been publicly revealed via broadcast shares, and our type system requires that with : shares. This implies that the process of revealing reveals nothing besides . The ascription : public is similar, with the additional meaning that is a publicly-known value independent of any client inputs. This includes known constant values used in protocols, and more interestingly secure openings. Secure openings are commonly used to interactively compute public values that are masked with OTPs secret-shared with clients in initialization protocols, as for example in Beaver Triple multiplication which we discuss in Section 9.
We proceed by formally describing the type analysis, then discussing an illustrative example, and finally by demonstrating share type soundness in Theorem 5.9. This result shows that our analysis enforces noninterference modulo output, in contrast to the previous system for Overture that only enforce a gradual release property [35]. By connecting this analysis with protocol correctness properties enforced by the Hoare logic discussed in Section 4, the output can also be connected to an intended ideal functionality.
5.1 Non-Interactive Typing Rules
Our non-interactive typing rules are presented in Figure 9. Judgements are of the form , where is a set of share type bindings of the form . In the context of typing a protocol soundness requires that the constraint must be entailed by . The syntax-directed rules are all known semi-homomorphic operations, including addition of shares (HEADD), and both addition and multiplication of shares with a public value (HEADDPUB and HEMULTPUB,
Christian Skalka, Steven Baldasty, Yeonhee Yeh, Felix Walberg, and Joseph P. Near
\begin{aligned}&\frac{\mathrm{HEADD}}{\Gamma,E\vdash[\phi_{1}^{1},\phi_{2}^{1}]:\mathrm{shares}}\quad\Gamma,E\vdash[\phi_{1}^{2},\phi_{2}^{2}]:\mathrm{shares}}\\&\quad\Gamma,E\vdash[\phi_{1}^{1}+\phi_{1}^{2},\phi_{2}^{1}+\phi_{2}^{2}]:\mathrm{shares}\end{aligned} \begin{aligned}&\frac{\mathrm{HEMULTPUB}}{\Gamma,E\vdash[\phi]:\mathrm{public}}\quad\Gamma,E\vdash[\phi_{1},\phi_{2}]:\mathrm{shares}}\\&\quad\Gamma,E\vdash[\phi_{1}*\phi,\phi_{2}*\phi]:\mathrm{shares}\end{aligned}Fig. 9. Local (non-interactive) share type derivation rules.
respectively) [29]. These rules also leverage SMT entailment in the SHAREENTAILS and PUBENTAILS rules, meaning these operations are allowable up to algebraic equivalence in the context of a protocol.
5.2 Interactive Typing Rules
The interactive share typing rules are defined in Figure 10, with judgements of the form . Each such judgement establishes a sound type binding in for interactively-defined variables– that is, unicast and broadcast messages exchanged between clients– assuming the bindings in . In addition to type bindings, judgments track randomness used by genshares, allowing us to use type linearity to enforce one-time usage similar to previous related work [12], where any randomness used in the typing is not in and added to . To this end, in these rules is disjoint union.
The GENSHARES rule generates the binding : shares if the term is a secret sharing as defined by genshares, and adds to the set of variables consumed by genshares, ensuring one-time usage. The REVEAL rule generates the binding : output with the requirement that are typable as shares. The SECOPEN rule is similar except it allows the assertion : public if we can additionally show that the shared value is masked by the use of random value as an OTP. Here we are positing a third party that secret-shares as part of an initialization protocol. We illustrate secure openings in practice at more length in Section 9, though we note that appropriate properties of initialization protocols can be encoded in .
We write to denote the transitive closure of . For any protocol , the goal of the type analysis is to show that all interactive messages can be classified– that is, to show that , where all interactive messages are classified in .
REVEAL
OUTPUT
Fig. 10. Interactive share type derivation rules.
5.3 Instantiating genshares
It is well-known that adding or subtracting a sample from a uniform distribution in a finite field yields a value in a uniform distribution, meaning that samples can be used as OTPs with perfect secrecy [5, 12]. So we can define:
where we require that genshares consumes the random value as an OTP.
This approach highlights an important interaction between our type system and SMT entailment as defined by the SHAREENTAILS rule. In particular there are other methods for encrypting values in MPC protocols that can be shown to be algebraically equivalent to this fundamental schema. For example, in Yao's Garbled Circuits (YGC) in , the “garbler” represents encrypted wire values as a random sample (for 0) or its negation (for 1), and shares its secret input encoding with the “evaluator” by using it as a selection bit. That is, assuming that client 2 is the garbler and client 1 is the evaluator, we can define:
where for all (with denoting negation in ):
and letting this protocol be the following is valid:
For this reason SMT entailment is also an important enabling technology for the interactive rules.
5.4 Share Typing Example
To illustrate details of the type system we return to the example of additive sharing in the context of a 2-client protocol. While the ideal functionality of this simple protocol precisely reveals input secrets, it serves as an understandable example of the type system mechanics. We first focus on initial secret sharing steps– let be the following protocol in (noting that – is equivalent to xor in ):
Christian Skalka, Steven Baldasty, Yeonhee Yeh, Felix Walberg, and Joseph P. Near
By GENSHARES we can then assert:
Suppose the protocol goes on to reveal the negation of the sum (xor-ing) of the inputs:
Letting this extended protocol be , and letting:
observe we can then obtain share typings for noninteractive components for addition of shares by SHARED and HEADD:
and hence for negation by HEADDPUB:
This implies:
Hence by PUBENTAILS we have:
5.5 Share Type Soundness
Share type soundness (Theorem 5.9) means that share typing enforces noninterference modulo output. To prove this we need to assert probabilistic properties in share typings, including for functions of protocol variables such as reconstruction of shares. So we make standard extensions of notation for probability distributions to express probabilities, and conditional probabilities, of functions of program variables . For this extension we posit that memories can incorporate variables that assign valuations to functions .
Definition 5.1. We let range over sets of SMT formulas , and define . Given pmf and with , for all define:
Definition 5.2. Given , the conditional distribution of given where is denoted and defined as follows:
Now we define what we mean by soundness of genshares. In essence we mean perfect secrecy [5] in the context of protocols where multiple encodings can occur. These conditions are obviously met by, e.g., “vanilla” additive or Shamir shares which generate shares in uniform marginal distributions. Here and later we leverage (conditional) probabilistic independence as characterized in Definition 3.5.
Definition 5.3. We say that genshares is sound iff given any with and and and we have for all :
Next we define a well-formedness property of tuples , , intuitively meaning that all the share types in are sound with respect to , and consumed randomness in as OTPs for initial sharing. This is a representation invariant that we will show is preserved by typing, and under closure conditions (Definition 5.7) the invariant guarantees confidentiality (Theorem 5.8). Property (i) ensures that views do not reveal information about secrets consistent with noninterference modulo output. Property (ii) ensures a key property of sharing– that individual shares don’t reveal more about secrets than their reconstruction does. Property (iii) ensures that public values are independent of outputs or secrets. Properties (iv) and (v) ensure that OTPs used for generating shares or for secure openings, respectively, are included in .
Definition 5.4. Given , , where . For all with let:
Then we write iff all of the following conditions hold:
i. For all we have .
ii. For all and we have:
iii.
iv. For all and if with then genshares( ) = and for some and .
v. For all if for some and then .
Next we show that, given well-formed typing environments, share type judgements preserve the important properties (i-ii) in Definitions 5.4. This result follows from known semi-homomorphic properties of non-interactive operations that are syntactically verified in typing judgements.
LEMMA 5.5. Given where secrets . For all with let:
and also suppose . Then for all with the following conditions hold:
i.
ii.
Christian Skalka, Steven Baldasty, Yeonhee Yeh, Felix Walberg, and Joseph P. Near
PROOF. The proof is by induction on the derivation of , : shares. In the base case where the judgement follows by the SHARED rule, the result follows trivially by Definition 5.4. In cases HEADD, HEADDPUB, and HEMULTPUB the result follows by Definition 5.4 and known semi-homomorphic properties of secret sharing [29]. Case SHAREENTAILS follows by correctness of the SMT interpretation of protocols as in Theorem 4.3.
Next, we show that interactive typing rules preserve well-formedness of type environments. This Lemma follows by Lemma 5.5, and the security of share generation using OTPs as articulated in Definition 5.3– that is, shares generated by genshares are in uniform marginal distributions.
LEMMA 5.6. Given and . Then .
Proof. The proof follows by case analysis on . In case GENSHARES the result follows by Definition 5.3, which satisfies relevant conditions (i-ii,iv) of Definition 5.4. In case SECOPEN the public value must be reconstructed shares, so Lemma 5.5 enforces relevant conditions (i-ii) of Definition 5.4, and the requirement that the public value be masked with an OTP satisfies conditions (iii) and (iv) of Definition 5.4. In case REVEAL since the output value must be reconstructed shares, Lemma 5.5 satisfies relevant case (ii) of Definition 5.4.
In addition to typing judgements, in order to show that a protocol is secure, we need to classify all corrupt views as shares, all public values as secure openings, and all outputs as reconstructed shares by adding them to . We capture this formally with the following notion of type environment closure.
Definition 5.7. is closed for iff for all , for all there exists such that either if or if , and for all we have .
Now, the following is a consequence of Definitions 5.4 and 5.7, and then our main Theorem 5.9 follows by Lemma 5.6 and Theorem 5.8.
THEOREM 5.8. If and is closed for , then satisfies noninterference modulo output.
Proof. Let and assume some partitioning with and for . Let and be as defined in Definition 5.4. By Definition 5.7 we have that implies and for all . Therefore by Definition 5.4 (and marginalizing away extraneous ) we have:
By definition of OUTPUT it is also the case that for all out@ we have for some . Therefore since we can assume wlog that all revealed values are assigned to outputs, we have , so by definition we have that for all :
which is noninterference modulo output by Definition 3.8.
THEOREM 5.9. If , and is closed for , then satisfies noninterference modulo output.
Proof. By Lemma 5.6 we have that , so the result follows by Theorem 5.8.
□
Fig. 11. Syntax and derivation rules of Overture integrity types
6 Integrity Types
Our integrity type system is essentially a taint analysis, with machinery to allow consideration of any H, C partitioning. We also include rules to consider MAC codes to prevent cheating. We consider a semi-homomorphic encryption scheme that is used in BDOZ and SPDZ [8, 10, 11, 29] and is applicable to various species of circuits. However other MAC schemes could be considered with a modified derivation rule incorporated with our taint analysis framework. BDOZ/SPDZ assumes a pre-processing phase that distributes shares with MAC codes to clients. This integrates well with pre-processed Beaver Triples to implement malicious secure, and relatively efficient, multiplication [14].
In BDOZ, a field value is secret shared among 2 clients with accompanying MAC values. Each client gets a pair of values , where is a share of reconstructed by addition, i.e., , and is a MAC of . More precisely, where keys and are known only to . The local key is unique per MAC, while the global key is common to all MACs authenticated by . This is a semi-homomorphic encryption scheme that supports addition of shares and multiplication of shares by a constant– for more details the reader is referred to Orsini [29]. We note that while we restrict values , , and to the same field in this presentation for simplicity, in general and can be in extensions of .
As in previous work [34], we use to refer to secret-shared values reconstructed with addition, and by convention each share of is represented as , the MAC of which is represented as a for all , and each client holds a key for authentication of the other's share. Each client also holds a global key . For any such share identified by string , the BDOZ MAC scheme is defined by the equality predicate :
6.1 Typing and Integrity Labeling
The integrity of values during protocol executions depends on the partitioning H, C, since any value received from a member of C is initially considered to be low integrity. But as for confidentiality types, we want our basic type analysis to be generalizable to arbitrary H, C. So integrity type judgements, defined in Figure 11, are of the form , where E plays a similar role as in confidentiality types, as a possibly weakened expression of algebraic properties of , and environments record dependency information that can be specialized to a given H, C. Integrity environments are
Christian Skalka, Steven Baldasty, Yeonhee Yeh, Felix Walberg, and Joseph P. Near
Fig. 12. Assigning integrity labels to variables
ordered lists since order of evaluation is important for tracking integrity– validating low integrity information through MAC checking allows subsequent treatment of it as high integrity, but not before. Note that MAC checking is not a form of endorsement as it is usually defined (as a dual of declassification [33]), since a successful check guarantees no deviation from the protocol.
The typing of protocols depends on a type judgement for expressions of the form , which records messages and reveals used in the construction of . This source is recorded in for message sends– so for example, for some string letting:
the following judgement is valid:
More formally, we define validity as follows:
Definition 6.1. Given pre-processing predicate and protocol , we say is valid iff it is derivable and .
In the above example, note that the environment implicitly records that p[w] depends on data from client 1, which in turn depends on data from client 2. The rule for MAC checking allows an overwrite of the dependency. We explore the application of this in more detail in Section 9.
6.2 Assigning Integrity Labels
In all cases, we want to determine the integrity level of computed values based on any partitioning H, C. In the previous example, we want to say that p[w] has low integrity if either client 1 or 2 is corrupt. To this end we define security labelings L which are mappings from variables x to security levels . By default, given a partitioning H, C this labeling maps messages to the integrity level of the owner.
Definition 6.2. Given H, C, define such that .
But the values of messages and reveals may be affected by values sent by other parties, which is recorded in the obtained from its typing. To determine whether this impacts integrity for any given , we apply the inductively defined rewrite relation , axiomatized in Figure 12. The composition of typing and this latter rewriting obtains essentially a traditional taint analysis, modulo MAC checking. Our main type soundness result for integrity is then given as follows. Proof details are available in the appendix of an extended arXiv version of previous work [36].
THEOREM 6.3. Given and with , if is valid and for all with we have , then has integrity for all and .
expressions
instructions
binop
values
basic types
functions
Fig. 13. Prelude syntax
7 The Prelude Language and Automated Hoare Logic
The Prelude language [34] includes structured data and function definitions for defining composable protocol elements at a higher level of abstraction than Overture. The Prelude language is a metalanguage aka metaprogramming language, where an Overture protocol is the result of computation. In addition to these declarative benefits of Prelude, component definitions support compositional verification of larger protocols. This includes an automated verification of algebraic program properties expressed as Hoare logic assertions that we introduce in this Section. Furthermore, we can compositionally verify confidentiality and integrity properties expressed as types, as we will discuss in Sections 8.1 and especially 9 where we present and discuss extended examples of Prelude programs.
7.1 Syntax and Semantics
The syntax of Prelude is defined in Figure 13. It includes a syntax of values that include client ids , identifier strings , expressions in field , record values, and Overture variables . Prelude expression forms allow dynamic construction of these values. Note in particular that ++ is string concatenation. Prelude instructions allow dynamic construction of Overture protocols that incorporate expression evaluation. The syntax also supports definitions of functions that compute values and, as a distinct form, functions that compute protocols . The latter requires type annotations on arguments which are restricted to being either strings, client ids, or records– we use this type information to support Hoare logic automation as we discuss below in Section 7.3. While type inference for this simple type system would be possible, it would complicate the novel theory and implementation elements of our presentation, so we just check annotations instead.
Formally, we consider a complete metaprogram to include both a codebase and a “main” program that uses the codebase. For all functions (both the expression and instruction forms) we disallow recursion, which allows us to guarantee the decidability of type dependence (Section 8.1).
Definition 7.1. A codebase is a list of function declarations. We write , if , and we write , if .
We define a big-step evaluation relation in Figures 14 and 15 for expressions and instructions, respectively. In this definition we write and to denote the substitution of for free occurrences of in or respectively. The rules are mostly standard.
Christian Skalka, Steven Baldasty, Yeonhee Yeh, Felix Walberg, and Joseph P. Near
Fig. 14. Semantics of Prelude expressions.
Fig. 15. Semantics of Prelude instructions.
Sanity conditions on programs. We assume that any Prelude codebase C includes a function main(). And as for Overture, we assume that Prelude programs are semantically well-formed– that is, that main() and is well-formed.
7.2 Abstract pre and postcondition annotations
Prelude instruction functions can optionally be annotated with pre and postconditions. To model this in our theory we posit functions precond and postcond that specify conditions for instruction functions . Note that precond( ) or precond( ) may be undefined if no annotation is given for . In actual code, we write pre and postconditions directly before and after functions to define them. Here is a simple example function bar with pre and postcondition annotations. Note that the annotations are abstract with respect to the input string x, and that string concatenation can be used in pre and postcondition constraints:
precondition: ( m[x++"foo"]@1 == 3 )
bar(x:string){ m[x++"bar"]@2 := (m[x++"foo"] + m[x++"baz"]}@1 }
postcondition: ( [m[z++"bar"]@2 == m[x++"baz"]@1 + 3 )
Since expressions can occur in Prelude constraints, they are not SMT constraints, but abstractions of constraints parameterized by the formal parameters of the function they annotate. We denote these abstract constraints as with the syntax given in Figure 16. When the function is applied, the pre and postconditions are instantiated as SMT constraints,
Fig. 16. Abstract constraints and their evaluation semantics.
via evaluating the expressions within the constraints. The evaluation semantics of abstract constraints are also given in Figure 16.
In the case of main, since it has no arguments, the pre and postconditions must be concrete SMT expressions. For example, given the bar function above, we could define a full program as follows, where T is the true constraint.
precondition: (T)
main() {
m["thisfoo"]@1 := 3; m["thisbaz"]@1 := 2; bar("this")
}
postcondition: ( [m["thisbar"]@2 == 5 )
There are no preconditions to this main because they are all established by the program, and the postcondition follows as a consequence of the application bar("this").
The use of pre and postconditions in main allows verification of whole-program (protocol) correctness. Further, the use of annotations on function definitions supports compositional verification of program components. In general postconditions can serve as pre-verified properties of functions that can be reused in, and reduce overhead of, whole protocol verification. A representative example of GMW and gates [14] implementations is given in Figure 17. Here, the xorgmw and andgmw functions takes as input strings x and y that distinguish values secret-shared between clients 1 and 2 as m[x]@1, m[x]@2 and m[y]@1, m[y]@2 respectively– that is, these shares encode RECON(x) and RECON(y). The postcondition of the non-interactive xorgmw protocol specifies that it results in a value shared between clients 1 and 2 as RECON(z) that is the xor-ing of RECON(x) and RECON(y). The postcondition of the interactive protocol defined by the andgmw specifies that it results in a value shared between clients 1 and 2 as RECON(z) that is the conjunction of RECON(x) and RECON(y). The postcondition for andgmw especially is non-trivial to prove, and expressing these postconditions in a compositional manner reduces proof overhead and improves scalability to large circuits that may incorporate a multitude of and gates.
7.3 Prelude Automated Abstract Hoare Logic
In the Prelude theory, we introduce Hoare logic assertions of the form . The correctness condition of this assertion is compositional, in that instantiated abstract Hoare triples evaluate to valid Overture Hoare triples. This is formally elaborated below in Lemma 7.5 and Corollaries 7.6 and 7.7 below.
In Figure 18 we give the derivation rules for the abstract Hoare logic. These are based on Overture Hoare logic, but are algorithmic. A main predicate for these rules is the GENENTAILS rule, which encodes a generalized version of
Christian Skalka, Steven Baldasty, Yeonhee Yeh, Felix Walberg, and Joseph P. Near
RECON(x) { (m[x]@1 + m[x]@2) }
xorgmw(z:string, x:string, y:string) { m[z]@1 := (m[x] + m[y])@1; m[z]@2 := (m[x] + m[y])@2 }
postcondition: (RECON(z) == RECON(x) + RECON(y))
andtablegmw(x:string, y:string, z:string) { let r11 = (r[z] + (m[x] + 1) * (m[y] + 1)) in let r10 = (r[z] + (m[x] + 1) * (m[y] + 0)) in let r01 = (r[z] + (m[x] + 0) * (m[y] + 1)) in let r00 = (r[z] + (m[x] + 0) * (m[y] + 0)) in { row1 = r11; row2 = r10; row3 = r01; row4 = r00 } }
andgmw(z:string, x:string, y:string) { let table = andtablegmw(x,y,z) in m[z]@2 := OT4((m[x], m[y])@2, table.row4, table.row3, table.row2, table.row1)@1; m[z]@1 := r[z]@1 }
postcondition: (RECON(z) == RECON(x) * RECON(y))
Fig. 17. GMW and gates with postcondition.
entailment. By using fresh variables to instantiate abstract constraints, we guarantee entailment for any instantiation, as follows.
LEMMA 7.2. Given and and some where and . Then implies .
PROOF. If are fresh or chosen the result is trivial. Otherwise, it must be the case that at least two distinct variables and in are renamed as a single variable in , given freshness of . Let rename be the function that maps variables in to variables in such that . Suppose on the contrary that and , and define such that:
Then must be a model of E, which is a contradiction.
LEMMA 7.3. If and and , then .
PROOF. By assumption and definition of GENENTAILS we have and and for some . Now suppose on the contrary that . This implies the existence of such that and . But Lemma 7.2 implies that , so by definition we have implying by construction, which is a contradiction.
The HARDPACK rule uses GENENTAILS to ensure that the annotated pre and postconditions are correct for a given function, if they are defined. It is in fact not necessary for any pre and postconditions to be defined, since the analysis
HARDPACK
Fig. 18. Algorithmic Prelude Abstract Entailment and Hoare Triple Deduction Rules
will infer valid pre and postconditions in their absence by rule FN, but their intent is to enable fine-tuning of pre and postconditions for improving verification efficiency as discussed above and later in Section 9. An important implementation detail is that verification of any given function f only needs to be performed once, and can then be memoized for other applications using the APP rule as a consequence of Lemma 7.3 (and more precisely of Corollary 7.6).
The ASSIGN and ASSERT rules propagate equations induced by assignments and assertions to post and preconditions respectively. Note that without the use of HARDPACK, the entire protocol would accumulate in postconditions of main. The SEQ rule relies on the correctness of our HYP rule to join pre and postconditions as we discuss in the relevant case of Lemma 7.5, which is the foundational correctness result for the analysis.
Pre and post sanity conditions. We require that annotated pre and postconditions on functions will evaluate to SMT constraints when instantiated with function arguments, and refer only to variables that occur in their bodies. Deduction rules other than HARDPACK enforce this by definition. For any with , , , and , we require that for all with there exists where:
and .
Christian Skalka, Steven Baldasty, Yeonhee Yeh, Felix Walberg, and Joseph P. Near
7.4 Abstract Hoare Logic Soundness
We begin by showing that the analysis preserves the property that in any , fully instantiating also fully instantiates and . The result follows by sanity conditions on pre and postcondition annotations, the definition of analysis, and induction on c.
LEMMA 7.4. If and then and for some .
Now we can prove our main result in a general form. The proof follows mainly by appeal to the Overture Hoare logic deduction system.
LEMMA 7.5 (Prelude HOARE TRIPLE CORRECTNESS). If with , and , then .
PROOF. By structural induction on the derivation of and case analysis on .
Case . In this case by definition and inversion of and ASSIGN we have:
Now by ASSIGN we have , so we have by CONSEQUENCE.
Case . In this case by definition we have:
But we have assert by Assert, so assert by Consequence.
Case . In this case by assumption and definition and inversion of and SEQ we have:
and by inversion of the SEQ rule we have and , and by the induction hypothesis we have and . But by HYP we have: and by sanity conditions we have so by FRAME we have . Thus by SEQ we have:
Case . In this case by assumption and definition and inversion of APP and we have:
Note that sanity conditions on pre- and post-condition annotations means there exists and where and . Now, the judgement follows by one or two subcases. Where it follows by FN the result is immediate by definition and the induction hypothesis. Otherwise it follows by HARDPACK and we proceed as follows.
By inversion of HARDPACK we have by FN where . Then and by Lemma 7.4. By Lemma 7.3 we have , so by CONSEQUENCE we have , and by HYP we have:
abstract share terms
share type annotations
Fig. 19. Prelude share type annotation syntax (top), semantics (middle), and hoare triple derivation rules (bottom).
Furthermore, also by inversion of HARDPACK we have . By Lemma 7.3 we thus have , which implies . Thus by CONSEQUENCE we have .
Finally, case follows trivially by the induction hypothesis, which covers all cases to prove the result.
As a consequence of the preceding Lemma, we can state important Corollaries that characterize, first, the compositionality of function constraints, and second, the correctness of whole program analysis. These both follow immediately by reasoning in the App case of Lemma 7.5.
COROLLARY 7.6 (COMPOSITIONALITY OF ABSTRACT FUNCTION CONSTRAINTS). Given:
Then is valid.
COROLLARY 7.7. If main() and main() and and then is valid.
8 Prelude Type Checking
Now we develop a compositional type system for Prelude based on Overture typing and the automated Hoare logic developed in Section 7. We focus on share types for confidentiality which is more complex and general than our integrity type system. An algorithmic approach to the latter was developed previously for Prelude [35], and also the core element of the system– BDOZ/SPDZ-style MAC checking– can be treated as algebraic correctness conditions enforceable by Hoare triples as we show in Section 9.
8.1 Share Type Checking with Annotations
Share types rely on SMT entailments via the SHAREENTAILS and PUBENTAILS rules, which are not syntax directed, and likewise the interactive typing judgement is nondeterministic. Our goal with the Prelude language is to automate share type checking. To enable this we introduce share type annotations. These annotations allow programmer specification of properties that can be verified as part of the Hoare triple analysis defined in Section 7.3 and that enable automated checking of types.
Christian Skalka, Steven Baldasty, Yeonhee Yeh, Felix Walberg, and Joseph P. Near
\begin{aligned}COERCE\quad&\frac{e_{1}\Rightarrow\phi_{1}\qquad e_{2}\Rightarrow\phi_{2}}{\Gamma,R,\mathcal{D}\Vdash e_{1}\text{as}e_{2}\triangleright\Gamma,R,\mathcal{D}[\phi_{1}\mapsto\phi_{2}]}\quad&\frac{LOCALSHARES}{e_{1}\Rightarrow x_{1}\qquad e_{2}\Rightarrow x_{2}\qquad\Gamma\Vdash[\mathcal{D}(x_{1}),\mathcal{D}(x_{2})]:shares}\\&\frac{\Gamma,R,\mathcal{D}\Vdash e_{1}\text{as}e_{2}\triangleright\Gamma,R,\mathcal{D}[\phi_{1}\mapsto\phi_{2}]}{\Gamma,R,\mathcal{D}\Vdash[e_{1},e_{2}]:shares\triangleright\Gamma\cup\{[x_{1},x_{2}]:shares\},R,\mathcal{D}}\\&\frac{\text{GENSHARES}}{e_{1}\Rightarrow x_{1}\qquad e_{2}\Rightarrow x_{2}\qquad\text{genshares}(\phi,\mathsf{r}[w]@\iota)=\mathcal{D}(x_{1}),\mathcal{D}(x_{2})}}{\Gamma,R,\mathcal{D}\Vdash[e_{1},e_{2}]:shares\triangleright\Gamma\cup\{[x_{1},x_{2}]:shares\},R\uplus\{\mathsf{r}[w]@\iota\},\mathcal{D}}\\&\frac{\text{LOCALPUBLIC}}{e\Rightarrow\phi\qquad\Gamma\Vdash\langle\mathcal{D}(\phi)\rangle:\text{public}}{\Gamma,R,\mathcal{D}\Vdash\langle e\rangle:\text{public}\triangleright\Gamma\cup\{\langle\phi\rangle:\text{public}\},R,\mathcal{D}}\end{aligned}MASKEDPUBLIC
REVEAL
Fig. 20. Typing rules for Prelude share type annotations.
A fundamental component of the system is automated share type checking of noninteractive computations. We define an algorithmic, syntax directed subset of noninteractive share typing as follows:
Definition 8.1. Define iff , true without the use of SHAREENTAILS and PUBENTAILS.
The syntax of type annotations a is defined in Figure 19, which we extend the language of commands c to include. Type annotations are of the form as , which defines an SMT equivalence– the key idea here being that explicit equivalences can stand in for implicit SHAREENTAILS and PUBENTAILS judgements– and which defines a share type assertion verified using the automated typing judgement. In the Prelude semantics type annotations are interpreted as skips, while their integration in Hoare triple derivations requires annotated equivalences to be included in preconditions. In an implementation, Hoare triple verification can be conducted independently prior to type checking.
8.1.1 Annotation Type Checking. Type checking judgements for typing annotations are defined as follows. The definitions element D of judgements is an environment of SMT equivalences induced either by the program or by annotation.
Definition 8.2 (Prelude Type Checking Judgements). Type checking judgements are of the syntactic form where are called definitions.
All typing judgements are dependent on closed expressions e which we equate up to evaluation. Since the semantics of expressions is total, we simply evaluate expressions in preconditions of derivation rules. The derivation rules for annotations a are given in Figure 20. First, we note that the CoERCE rule extends definitions to include the equivalence
\begin{aligned}&\frac{\text{DEFN}}{\Gamma,R,\mathcal{D}\Vdash e_{1}:=e_{2}\triangleright\Gamma,R,\mathcal{D}[x\mapsto\lfloor\varepsilon@t\rfloor]}\quad\begin{aligned}\\ &\frac{\text{SEQ}}{\Gamma_{1},R_{1},\mathcal{D}_{1}\Vdash\mathbf{c}_{1}\triangleright\Gamma_{2},R_{2},\mathcal{D}_{2}}\quad\Gamma_{2},R_{2},\mathcal{D}_{2}\Vdash\mathbf{c}_{2}\triangleright\Gamma_{3},R_{3},\mathcal{D}_{3}}\\&\frac{\Gamma_{1},R_{1},\mathcal{D}_{1}\Vdash\mathbf{c}_{1};\mathbf{c}_{2}\triangleright\Gamma_{3},R_{3},\mathcal{D}_{3}}{\end{aligned}\\ \end{aligned} \begin{aligned}&\frac{\text{LET}}{\Gamma_{1},R_{1},\mathcal{D}_{1}\Vdash\mathbf{c}[e/y]\triangleright\Gamma_{2},R_{2},\mathcal{D}_{2}}\\&\frac{\Gamma_{1},R_{1},\mathcal{D}_{1}\Vdash\text{let}y=e\text{in}\mathbf{c}\triangleright\Gamma_{2},R_{2},\mathcal{D}_{2}}\end{aligned}APP
FN
Fig. 21. Typing rules for Prelude instructions and functions.
specified by the as annotation form– we assume the validity of the equivalence is enforced by Hoare triple verification and so is not checked (again) here. These definitions extend or even overwrite variable definitions established by the protocol itself (see the DEFIN rule in Figure 21 discussed below).
Programmers can also specify bindings for local computations, for example if m[x]@1, m[x]@2 are shares obtained by, e.g., local homomorphic addition, the programmer can specify [m[x]@1, m[x]@2] : shares. This supports compositionality of type checking. Thus, in the rules for share type annotations of the form , we have different rules for checking local and interactive shares type ascriptions (LOCALSHARES and GENSHARES, respectively), and for checking local and interactive public type ascriptions (LOCALPUBLIC and MASKEDPUBLIC, respectively). In these rules we use to recover defined SMT equivalences, and to verify share typing.
8.1.2 Functions and Application. Rules for other commands are defined in Figure 21. As anticipated above, the DEFIN rule automatically adds the protocol definition of variables to D as a default equivalence, which may allow automatic share typing without any use of CoERCE. The most complex rules are for function application and definition (APP and FN). These rules allow for generalization and instantiation of share type environments and thus compositionality in typing. Generalized aka abstract share type environments are dependent on string and cid types, and we equate them up to evaluation in our rules.
Definition 8.3 (Abstract Share Type Environments). We write to denote sets of bindings , and to denote sets of expressions (that evaluate to random variables). We define evaluation of these, respectively, as follows:
We also introduce dependent types for functions, that allow dependence on string and cid types.
Definition 8.4 (Prelude Function Types). Dependent function types are of the syntactic form . where range over string or cid types.
Christian Skalka, Steven Baldasty, Yeonhee Yeh, Felix Walberg, and Joseph P. Near
andgmw(z:string, x:string, y:string) { let table = andtablegmw(x,y,z) in m[z]@2 := OT4((m[x], m[y])@2, table.row4, table.row3, table.row2, table.row1)@1; m[z]@1 := r[z]@1; m[z]@2 as (RECON(x) * RECON(y)) + r[z]@1; [m[z]@1, m[z]@2] : shares } postcondition: (RECON(z) == RECON(x) * RECON(y))
Fig. 22. GMW and gate with share type annotations.
As defined in FN, a dependent function type specifies that, given share typing assumptions in , application of the function results in the bindings in using the random values in for share generation or secure openings. We require that the type is closed, i.e., only can occur free in , . Type checking for functions is accomplished by using fresh “witness” values of string and cid types to instantiate dependent variables, similarly to the GENENTAILS rule. As defined in the APP rule, typing ensures that application of the function instantiates the dependencies, checks that the instantiation of is contained in the share typing environment, and adds the instantiation of as an effect along with instantiation of with linearity enforced. A practical programming detail is where the share type environment precondition is defined by the programmer– by convention we write these as additional components of precondition annotations, as illustrated in the extended examples discussed in Section 9.
8.1.3 Example: GMW and Gate. Returning to the GMW and gate example introduced in Figure 17, we note that the xorgmw gate needs no type annotations for type checking. We can extend the definition of andgmw with type annotations to ensure a valid share typing, as in Figure 22. Here a coercion is needed to specify that the gate output wire values are secret-shared using r[z]@1 as an OTP. The type for andgmw can then be obtained as:
Note that the function does not require any share type preconditions, since the (sub)protocol it defines interactively generates new shares using an OTP .
8.1.4 Soundness of Prelude Type Checking. Demonstrating soundness of Prelude type checking is similar to Overture—we show the OK invariant is preserved by the algorithm. By Theorem 5.8 soundness follows. Lemma 8.5 follows by appeal to Lemma 5.5 since the algorithmic judgement is sound with regard to the noninteractive typing rules by definition. Theorem 8.6 follows as a special case of Lemma 8.5.
LEMMA 8.5. Given and and with satisfiable and and . Then and .
THEOREM 8.6. Given main() and main : and main() and and . Then .
Note that Theorem 8.6 assumes the existence of with and and . The assumption of some preprocessing protocol such as Beaver triple or MAC share distributions is typical, and our approach does not require the protocol to be defined by the programmer, but rather just (weakened) postconditions of it that are sufficient to verify the protocol being programmed.
| Bit-Vector | SMFF | SMFF | SMFF | SMFF | |
|---|---|---|---|---|---|
| Passive Beaver Library | 1.012 | .911 | 1.135 | 1.114 | 1.059 |
| Malicious Beaver (BDOZ) Library | 1.175 | 1.158 | 1.182 | 1.153 | 1.178 |
| GMW Library | .932 | .936 |
| Bit-Vector, Compositional (this work) | Bit-Vector, Whole-Program (prior work [34]) | SMFF (this work) | |
|---|---|---|---|
| GMW 2-Bit Zero Test (3 Gates) | .037 | .029 | 261.098 |
| GMW 2-Bit Addition (4 Gates) | .038 | .032 | 261.098 |
| GMW 8-Bit Zero Test (15 Gates) | .051 | .057 | Timeout |
| GMW 64-Bit Zero Test (127 Gates) | 0.308 | 1.071 | Timeout |
| GMW 64-Bit Addition (376 Gates) | 5.735 | 4623.666* | Timeout |
| GMW 64-Bit Subtraction (439 Gates) | 9.985 | 10661.325* | Timeout |
Fig. 23. Average verification times for Prelude binary and arithmetic circuit libraries and small circuits over 20 trials, in seconds. Cells marked with * were limited to a single trial due to excessive verification times. Experiments that timed out did not finish within 8 hours.
Theorem 8.6 also does not provide a complete recipe for obtaining noninterference modulo output– as per Theorem 5.9, it is also necessary to check closure of . There are various ways this can be accomplished for the Prelude analysis– for example, we evaluate main to obtain all program variables and then check closure of as prescribed by Definition 5.7. We can also add checks to the type system to guarantee that all messages exchanged between clients are classified when type checking functions, which is a simple addition.
9 Implementation and Extended Examples
In Section 4 we gave the example of 3-party additive sharing for any field , in Section 5 we discussed the example of YGC input encoding, and in Sections 7 and 8.1 we presented and discussed the example of gates in the GMW protocol for binary circuits. In this section we present an extended example of 2-party arithmetic circuits with multiplication gates defined using Beaver triples [14]. We first define a compositional gate library in Prelude with correctness conditions defined using the Hoare logic developed in Section 7, along with a small example circuit (Figure 25). Then we extend the library with type annotations illustrating the use of share types developed in Sections 5 and 8.1 to illustrate how confidentiality properties can be enforced (Figure 26); this annotated variant is illustrative and is not part of the current implementation. Lastly, we extend the base library with additional pre and postcondition annotations to enforce integrity properties supported by BDOZ/SPDZ style MACs [8, 10, 11, 29] (Figure 27).
9.1 Evaluation
We have implemented the Prelude language and automated Hoare logic using an Antlr parser and Scala backend with cvc5 Java bindings for interaction with proof engines. To evaluate performance, we have written and verified gate libraries using the GMW protocol for binary circuits as excerpted in Figure 17 in Section 7, and for passive and malicious secure arithmetic circuits using Beaver Triple multiplication as presented in Figures 25 and 27 in this Section. We have considered field sizes typically used to encode binary, 16 bit, 32 bit, and 64 bit integers. We ran all experiments on an Intel(R) Core(TM) Ultra 7 255H CPU. Results are presented in Figure 23.
Christian Skalka, Steven Baldasty, Yeonhee Yeh, Felix Walberg, and Joseph P. Near
Gate Count vs Solve Time for GMW Circuits

Fig. 24. Scatter plot of verification solve times.
We found that verification of library components was efficient even up to large field sizes. Since typing is compositional (see, e.g., Figure 26 for an illustrative extension), verification of gate properties relevant to security should scale to larger circuits.
For an empirical comparison of how compositionality can reduce solve time in GMW arithmetic circuits, we ran the experiments shown in Figure 23 with and without customized postconditions. Omitting these postconditions reduces verification to the prior whole-program analysis approach of Overture [34], since the solver can no longer reuse component summaries and must verify constraints for the fully expanded circuit directly. This change enables a direct comparison against our prior approach. The scatter plot shown in Figure 24 demonstrates that the compositional use of customized postconditions improves verification time by orders of magnitude, especially for 64-bit addition and subtraction, which have the most gates of all the circuits we tested. The SMFF solver, however, fared poorly in all these circuits. We believe the optimizations that make the bit-vector solver efficient in these cases are unavailable to the SMFF solver, even when it runs in . In all but the simplest cases, it did not finish.
Circuit correctness also benefits from compositional verification– for example, the correctness of a GMW “and” gate (as in Figure 17) only needs to be proven once, though instantiated and integrated into the whole-program analysis needed to verify a large circuit specification. We have verified 2, 8, and 64-bit vector zero-test GMW circuits containing 3, 15, and 127 gates respectively, based on “Bristol Fashion” circuits [4]. By verified, we mean automated verification of the zero-test specification expressed as a postcondition. We considered both the cvc5 Bit-Vector and Satisfiability Modulo Finite Fields (SMFF) theories as proof engines for these binary circuits.
IDEALF() { (s["x"]@1 + s["y"]@2) + (s["i"]@1 * s["j"]@2) }
RECON(x) { (m[x]@1 + m[x]@2) }
BEAVERTRIP(x) { m[x++"c"]@3 == r[x++"a"]@3 * r[x++"b"]@3 AND m[x++"a"]@1 + m[x++"a"]@2 == r[x++"a"]@3 AND m[x++"b"]@1 + m[x++"b"]@2 == r[x++"b"]@3 AND m[x++"c"]@1 + m[x++"c"]@2 == m[x++"c"]@3 }
genshares(x:string, i1:cid, i2:cid) { m[x]@i2 := (s[x] + -r[x])@i1; m[x]@i1 := r[x]@i1 }
_open(x:string, i1:cid, i2:cid, n:string){ p[x++"n"] := m[x]@i2; m[x++"p"]@i1 := p[x++"n"] + m[x]@i1 }
open(x:string) { _open(x,1,2,"1"); _open(x,2,1,"2") }
secopen(d:string;x:string,a:string) { sum(d, x, a); open(d) }
_sum(z:string, x:string, y:string, i:cid) { m[z]@i := (m[x] + m[y])@i }
sum(z:string, x:string, y:string){ _sum(z,x,y,1); _sum(z,x,y,2) }
postcondition: ( RECON(z) == RECON(x) + RECON(y) )
_mult(z : string, y : string, i : cid) { m[z]@i := ((m[z++"d"] * m[y]) + (-m[z++"e"] * m[z++"a"] ) + m[z++"c"]@i }
precondition: ( BEAVERTRIP(z) )
mult(z : string, x : string, y : string) { secopen(z++"d", x, z++"a"); secopen(z++"e", y, z++"b"); _mult(z,y,1); _mult(z,y,2) }
postcondition: ( RECON(z) == RECON(x) * RECON(y) )
precondition: ( BEAVERTRIP("k") )
main() { genshares("x", 1, 2); genshares("y", 2, 1); genshares("i", 1, 2); genshares("j", 2, 1); sum("z", "x", "y"); mult("k", "i", "j"); sum("out", "z", "k"); open("out"); out@1 = m["out"]@1; out@2 = m["out"]@2 }
postcondition: ( out@1 == IDEALF() AND out@2 == IDEALF() )
Fig. 25. 2-party gate library with Beaver Triple multiplication, circuit definition, and compositional correctness conditions.
Verification of the zero-test circuits was efficient in the Bit-Vector theory, which verified the 64-bit zero test in GMW in less than 7 seconds. However, it took several minutes to verify even the small 2-bit zero-test circuit in SMFF, and larger circuits took too long to consider for a practical evaluation. This could be attributed to the relative maturity of the Bit-Vector theory as compared to SMFF. In any case, the SMT-based approach achieves categorically better performance than previous brute-force whole program methods developed for binary circuits [34].
9.2 Arithmetic Circuits with Beaver Triples
In Figure 25 we define a 2-party arithmetic circuit with 4 input gates, 3 internal gates, and 1 output gate. The ideal functionality is defined as IDEALF. As in GMW or BDOZ, circuit wire values are represented as additive secret shares between two clients we call 1 and 2. As in the GMW example discussed in Section 8.1, we use string identifiers g to distinguish gates, and gate output wire shares are defined as identifiers m[g]@1 and m[g]@2. The function RECON represents share reconstruction in constraints (not the protocols themselves). Input gates are implemented using the
Christian Skalka, Steven Baldasty, Yeonhee Yeh, Felix Walberg, and Joseph P. Near
genshares(x:string, i1:cid, i2:cid) { m[x++"s"]@i1 := (s[x] + -r[x])@i2; m[x++"s"]@i2 := r[x]@i2; [m[x++"s"]@i1, m[x++"s"]@i2] : shares }
([m[x]@i1, m[x]@i2] : shares) open(x:string) { _open(x,1,2,"1"); _open(x,2,1,"2"); [p[x++"1"], p[x++"2"]] : shares; m[d++"p"]@2 as m[d++"p"]@1 }
precondition: ([m[x]@i1, m[x]@i2] : shares, [m[a]@i1, m[a]@i2] : shares) secopen(d:string; x:string, a:string) { sum(d, x, a); open(d); m[d++"p"]@1 as RECON(x) + r[x++a]@3; <m[d++"p"]@1> : public; <m[d++"p"]@2> : public }
precondition: ([m[x]@1, m[x]@2] : shares; [m[y]@1, m[y]@2] : shares) sum(z:string, x:string, y:string) { _sum(z, x, y, 1); _sum(z, x, y, 2); [m[z]@1, m[z]@2] : shares }
postcondition: (RECON(z) == RECON(x) + RECON(y))
precondition: ([m[x]@1, m[x]@2] : shares; [m[y]@1, m[y]@2] : shares; [m[x++"c"]@1, m[x++"c"]@2] : shares), (BEAVERTRIP(z))
mult(z : string, x : string, y : string) { secopen(z++"d", x, z++"a"); secopen(z++"e", y, z++"b"); _mult(z, y, 1); _mult(z, y, 2); [m[z]@i1, m[z]@i2] : shares }
postcondition: (RECON(z) == RECON(x) * RECON(y))
Fig. 26. 2-party gate library with Beaver Triple multiplication extended with illustrative share type annotations.
genshares function as described in Section 5. The open function implements a federation-wide reveal of a shared value through share broadcast and reconstruction.
A sum gate can be defined non-interactively using homomorphic addition. The correctness postcondition is simple and perhaps unnecessary to accelerate circuit verification, but is appealing declaratively. The multiplication gate mult is more complex, where we use the common approach of Beaver Triples [14]. Recall that Beaver triples are values a, b, c with a and b chosen randomly and , unique per multiplication gate, that are secret-shared with clients during a pre-processing phase by an assumed oracular client 3. The uniqueness requirement is necessary because a and b are random values that serve as OTP masks for secure openings, implemented as secopen. In our encoding we follow the convention that each gate output identifier distinguishes the Beaver triple, so for example the share of the a value for a gate "g" is identified by "ga", etc. The correctness property of the multiplication gate, expressed as a postcondition, relies on the BEAVERTRIP precondition. This compositional correctness property can then be used in circuit construction, without the need for "re-proof" in our Hoare logic inference.
The circuit itself is constructed in main using these gates. This is a small example but arbitrarily large circuits can be constructed with this library. The precondition of main requires distinct Beaver triples for each multiplication gate in the circuit (just one in this example). The postcondition allows verification of circuit correctness– that the protocol output is equal to the ideal functionality IDEALF.
MACOK(x, i1, i2) { m[x++"m"]@i2 == m[x++"k"]@i1 + (m["delta"]@i1 * m[x++"s"]@i2) }
MACed(x) { MACOK(x, 1, 2) AND MACOK(x, 2, 1) }
_open(x:string, i1:cid, i2:cid, n:string){ p[x++"sn"] := m[x++"s"]@i2; p[x++"mn"] := m[x++"m"]@i2; assert(p[x++"mn"] = m[x++"k"] + (m["delta"] * p[x++"sn"]))@i1; m[x++"p"]@i1 := p[x++"sn"] + m[x]@i1 }
precondition: (MACed(x)) open(x:string) { _open(x,1,2,"1"); _open(x,2,1,"2") }
_sum(z:string, x:string, y:string, i:cid){ m[z++"s"]@i := (m[x++"s"] + m[y++"s"]@i; m[z++"m"]@i := (m[x++"m"] + m[y++"m"]@i; m[z++"k"]@i := (m[x++"k"] + m[y++"k"]@i }
precondition: (MACed(x) AND MACed(y)) sum(z:string, x:string, y:string){ _sum(z,x,y,1); _sum(z,x,y,2) } postcondition: (MACed(z) AND RECON(z) == RECON(x) + RECON(y))
_mult(z : string, y : string, i : cid) { m[z++"s"]@i := (m[z++"d"] * m[y++"s"] + -m[z++"e"] * m[z++"as"] + m[z++"cs"]@i; m[z++"m"]@i := (m[z++"d"] * m[y++"m"] + -m[z++"e"] * m[z++"am"] + m[z++"cm"]@i; m[z++"k"]@i := (m[z++"d"] * m[y++"k"] + -m[z++"e"] * m[z++"ak"] + m[z++"ck"]@i }
precondition: (MACed(x) AND MACed(y) AND MACed(z++"a") AND MACed(z++"b") AND MACed(z++"c") AND BEAVERTRIP(z)) mult(z : string, x : string, y : string) { secopen(z++"d", x, z++"a"); secopen(z++"e", y, z++"b"); _mult(z,y,1); _mult(z,y,2); }
postcondition: (MACed(z) AND RECON(z) == RECON(x) * RECON(y))
Fig. 27. 2-party gate library with Beaver Triple multiplication extended with BDOZ MACs.
9.3 Share Type Annotations (Illustrative)
Figure 26 presents an illustrative extension of our previous gate definitions with share type annotations to enforce confidentiality. This annotated variant is not part of the current implementation. The core idea is that wire values must be shares. The genshares function includes an annotation specifying that all input gates establish the shares invariant for wire values. In the sum function, the share type preconditions for input wires are specified. The output wire shares can be declared as shares without any coercion needed, since given preconditions the typing judgment (I-) can check the use of homomorphic addition.
We add coercions and typing assertions to the secopen function to specify properties of secure openings. After noninteractively summing the secret-shared wire value RECON(x) and Beaver triple value r[x++a]@3, the federation can publicly open the result since it is masked by the random value. This is expressed using the coercion as RECON(x) + r[x++a]@3. The coercion then allows the securely opened value to be declared public.
In the mult function, each client i symmetrically computes:
Since m[z++"d"]@i : public and m[z++"e"]@i : public are both established by secopen, and m[y]@i, m[z++"a"]@i, and m[z++"c"]@i are all declared to be shares in preconditions, we have that each of the shared computations (m[z++"d"] * m[y])@i and (-m[z++"e"] * m[z++"a"]@i are shares, so the gate outputs, which are then sums
Christian Skalka, Steven Baldasty, Yeonhee Yeh, Felix Walberg, and Joseph P. Near
of shares, are shares, and this will be successfully checked by syntax-directed ‖- type checking that results from the declaration [m[z]@i1, m[z]@i2] : shares.
9.3.1 Malicious-Secure Arithmetic Circuits. Our Definition 3.10 establishes a general semantics of integrity, while the Overture integrity type system presented in Section 6 focuses on the use of BDOZ/SPDZ-style MACs. A main concern here is the enforcement of MAC checking which is an algebraic property. Here we show how pre and postconditions can be used to enforce these properties in our arithmetic circuit library, in Figure 27. Note that this code is an extension of the library presented in Figure 25 and does not incorporate the type annotations in Figure 26, but this is just for clarity of the presentation and these features could be combined.
In this code we use a convention where shared values x are represented as a 3-tuple of values, MAC, and keys, where the value and MAC of client 1 are m[x++"s"]@1 and m[x++"m"]@1 respectively, and the corresponding key m[x++"k"]@2 is held by client 2. The correctness condition of this 3-tuple is MACOK(x, 2, 1). The same is true symmetrically, so the MACed predicate establishes both sides of the correctness condition. In general, this predicate is used in gate preconditions to assume that the MAC conditions hold for input shares, and in postconditions to ensure that output shares are MACed. The homomorphic properties that preserve MACedness, especially in mult, are perhaps even more complex than the algebraic correctness of gates, so it is beneficial to verify them compositional especially for large circuits.
Our code is written so that share MACs are checked for when they are opened by both clients, specified by the appropriate assert included in the protocol. This ensures malicious security of secure openings and outputs. As is standard in BDOZ/SPDZ, we assume that input values, MACs, and keys are distributed to clients by a pre-processing protocol with relevant postconditions declared in the preconditions of main (as in Figure 25 with respect to Beaver triples).
10 Conclusion
In this paper we have developed the Overture language for defining low-level MPC protocols, and the Prelude metaprogramming language for specifying Overture protocols compositionally and at a higher level of abstraction. We have developed a Hoare logic based on SMT-style verification for Overture, as well as confidentiality and integrity type systems that enforce passive and malicious security in the real/ideal model. These establish a foundation for an automated Hoare logic and type system in Prelude that is compositional, scalable, and generalizes to arbitrary prime fields and secret sharing schemes.
Our automated Prelude Hoare logic and type theory leverages Satisfiability Modulo Finite Fields for efficiency, scalability, and generalizability to arbitrary prime fields. We developed examples of real binary and arithmetic circuit protocols, illustrated the applicability of our analyses to enforce confidentiality and integrity properties, and evaluated performance of our implementation on these examples.
10.1 Future Work
There are several directions for future work on the topics explored in this paper through the Prelude/Overture framework. One interesting theoretical question is whether there are conditions under which verification of a protocol in generalizes to arbitrary prime fields. It is often the case that MPC protocols are presented in a way that generalizes over the field size, but it is not clear how to articulate necessary conditions for generalizing from verification in . This would have an obvious advantage since verification in is more efficient than verification in larger fields.
With regard to efficiency of implementation, integration of our system with the Swanky framework [15] would be an interesting direction to explore. This framework could present opportunities for accelerating SMT verification due to the optimizations especially in their SAW backend.
Another major direction to explore would be an extension of the Prelude/Overture framework to non-information-theoretic, or computational security. This is security gained through computational hardness of, e.g., public or symmetric key cryptography. Several MPC protocols rely on this sort of security, such as versions of OT, commitment, garbled circuits, etc. Making this extension would require theoretical and practical extensions of Prelude/Overture and make it applicable to a broader class of MPC protocols.
References
[1] C. Acay, J. Gancher, R. Recto, and A. Myers. 2024. Secure Synthesis of Distributed Cryptographic Applications. In 2024 IEEE 37th Computer Security Foundations Symposium (CSF). IEEE Computer Society, Los Alamitos, CA, USA, 315–330. https://doi.org/10.1109/CSF61375.2024.00021
[2] Coşku Acay, Rolph Recto, Joshua Gancher, Andrew C. Myers, and Elaine Shi. 2021. Viaduct: An Extensible, Optimizing Compiler for Secure Distributed Programs. In Proceedings of the 42nd ACM SIGPLAN International Conference on Programming Language Design and Implementation (Virtual, Canada) (PLDI 2021). Association for Computing Machinery, New York, NY, USA, 740–755. https://doi.org/10.1145/3453483.3454074
[3] José Bacelar Almeida, Manuel Barbosa, Gilles Barthe, Hugo Pacheco, Vitor Pereira, and Bernardo Portela. 2018. Enforcing ideal-world leakage bounds in real-world secret sharing MPC frameworks. In 2018 IEEE 31st Computer Security Foundations Symposium (CSF). IEEE, 132–146.
[4] David Archer, Victor Arribas Abril, Steve Lu, Pieter Maene, Nele Mertens, Danilo Sijacic, and Nigel Smart. 2019. Bristol Fashion MPC Circuits. https://nigelsmart.github.io/MPC-Circuits/.
[5] Gilles Barthe, Justin Hsu, and Kevin Liao. 2019. A probabilistic separation logic. Proc. ACM Program. Lang. 4, POPL, Article 55 (dec 2019), 30 pages. https://doi.org/10.1145/3371123
[6] Carsten Baum, Alex J. Malozemoff, Marc B. Rosen, and Peter Scholl. 2020. Mac'n'Cheese: Zero-Knowledge Proofs for Boolean and Arithmetic Circuits with Nested Disjunctions. Cryptology ePrint Archive, Paper 2020/1410. https://eprint.iacr.org/2020/1410
[7] Donald Beaver. 1991. Efficient multiparty protocols using circuit randomization. In Annual international cryptology conference. Springer, 420–432.
[8] Rikke Bendlin, Ivan Damgård, Claudio Orlandi, and Sarah Zakarias. 2011. Semi-homomorphic Encryption and Multiparty Computation. In Advances in Cryptology – EUROCRYPT 2011, Kenneth G. Paterson (Ed.). Springer Berlin Heidelberg, Berlin, Heidelberg, 169–188.
[9] Dan Bogdanov, Peeter Laud, and Jaak Randmets. 2014. Domain-Polymorphic Programming of Privacy-Preserving Applications. In Proceedings of the Ninth Workshop on Programming Languages and Analysis for Security (Uppsala, Sweden) (PLAS'14). Association for Computing Machinery, New York, NY, USA, 53–65. https://doi.org/10.1145/2637113.2637119
[10] Ivan Damgård and Claudio Orlandi. 2010. Multiparty Computation for Dishonest Majority: From Passive to Active Security at Low Cost. In Advances in Cryptology – CRYPTO 2010, Tal Rabin (Ed.). Springer Berlin Heidelberg, Berlin, Heidelberg, 558–576.
[11] Ivan Damgård, Valerio Pastro, Nigel Smart, and Sarah Zakarias. 2012. Multiparty Computation from Somewhat Homomorphic Encryption. In Advances in Cryptology – CRYPTO 2012, Reihaneh Safavi-Naini and Ran Canetti (Eds.). Springer Berlin Heidelberg, Berlin, Heidelberg, 643–662.
[12] David Darais, Ian Sweet, Chang Liu, and Michael Hicks. 2019. A language for probabilistically oblivious computation. Proceedings of the ACM on Programming Languages 4, POPL (2019), 1–31.
[13] Robert Dockins, Adam Foltzer, Joe Hendrix, Brian Huffman, Dylan McNamee, and Aaron Tomb. 2016. Constructing Semantic Models of Programs with the Software Analysis Workbench. In Verified Software. Theories, Tools, and Experiments, Sandrine Blazy and Marsha Chechik (Eds.). Springer International Publishing, Cham, 56–72.
[14] David Evans, Vladimir Kolesnikov, Mike Rosulek, et al. 2018. A pragmatic introduction to secure multi-party computation. Foundations and Trends® in Privacy and Security 2, 2-3 (2018), 70–246.
[15] Galois, Inc. 2019. swanky: A suite of rust libraries for secure computation. https://github.com/GaloisInc/swanky.
[16] Shang Gao, Zhe Peng, Feng Tan, Yuanqing Zheng, and Bin Xiao. 2022. SymmeProof: Compact zero-knowledge argument for blockchain confidential transactions. IEEE Transactions on Dependable and Secure Computing (2022).
[17] O Goldreich, S Micali, and A Wigderson. 1987. How to play ANY mental game. In Proceedings of the nineteenth annual ACM symposium on Theory of computing. 218–229.
[18] H. Haagh, A. Karbyshev, S. Oechsner, B. Spitters, and P. Strub. 2018. Computer-Aided Proofs for Multiparty Computation with Active Security. In 2018 IEEE 31st Computer Security Foundations Symposium (CSF). IEEE Computer Society, Los Alamitos, CA, USA, 119–131. https://doi.org/10.1109/CSF.2018.00016
[19] Yuval Ishai, Eyal Kushilevitz, Rafail Ostrovsky, and Amit Sahai. 2009. Zero-knowledge proofs from secure multiparty computation. SIAM J. Comput. 39, 3 (2009), 1121–1152.
[20] Brian Knott, Shobha Venkataraman, Awni Hannun, Shubho Sengupta, Mark Ibrahim, and Laurens van der Maaten. 2021. Crypten: Secure multi-party computation meets machine learning. Advances in Neural Information Processing Systems 34 (2021), 4961–4973.
Christian Skalka, Steven Baldasty, Yeonhee Yeh, Felix Walberg, and Joseph P. Near
[21] Karl Koch, Stephan Krenn, Donato Pellegrino, and Sebastian Ramacher. 2020. Privacy-preserving analytics for data markets using MPC. In IFIP International Summer School on Privacy and Identity Management. Springer, 226–246.
[22] John M Li, Amal Ahmed, and Steven Holtzen. 2023. Lilac: a Modal Separation Logic for Conditional Probability. Proceedings of the ACM on Programming Languages 7, PLDI (2023), 148–171.
[23] Xiling Li, Rafael Dowsley, and Martine De Cock. 2021. Privacy-preserving feature selection with secure multiparty computation. In International Conference on Machine Learning. PMLR, 6326–6336.
[24] Yehuda Lindell. 2017. How to Simulate It – A Tutorial on the Simulation Proof Technique. Springer International Publishing, Cham, 277–346. https://doi.org/10.1007/978-3-319-57048-8_6
[25] Jun Liu, Yuan Tian, Yu Zhou, Yang Xiao, and Nirwan Ansari. 2020. Privacy preserving distributed data mining based on secure multi-party computation. Computer Communications 153 (2020), 208–216.
[26] Donghang Lu, Thomas Yurek, Samarth Kulshreshtha, Rahul Govind, Aniket Kate, and Andrew Miller. 2019. Honeybadgermpc and asynchronix: Practical asynchronous mpc and its application to anonymous communication. In Proceedings of the 2019 ACM SIGSAC Conference on Computer and Communications Security. 887–903.
[27] Dahlia Malkhi, Noam Nisan, Benny Pinkas, and Yaron Sella. 2004. Fairplay—A Secure Two-Party Computation System. In 13th USENIX Security Symposium (USENIX Security 04). USENIX Association, San Diego, CA. https://www.usenix.org/conference/13th-usenix-security-symposium/fairplay{T1\texttt\texttt\texttt\texttt
[28] John C. Mitchell, Rahul Sharma, Deian Stefan, and Joe Zimmerman. 2012. Information-Flow Control for Programming on Encrypted Data. In 2012 IEEE 25th Computer Security Foundations Symposium. 45–60. https://doi.org/10.1109/CSF.2012.30
[29] Emmanuela Orsini. 2021. Efficient, Actively Secure MPC with a Dishonest Majority: A Survey. In Arithmetic of Finite Fields, Jean Claude Bajard and Alev Topuzoğlu (Eds.). Springer International Publishing, Cham, 42–71.
[30] Alex Ozdemir, Gereon Kremer, Cesare Tinelli, and Clark Barrett. 2023. Satisfiability Modulo Finite Fields. In Computer Aided Verification, Constantin Enea and Akash Lal (Eds.). Springer Nature Switzerland, Cham, 163–186.
[31] Aseem Rastogi, Matthew A Hammer, and Michael Hicks. 2014. Wysteria: A programming language for generic, mixed-mode multiparty computations. In 2014 IEEE Symposium on Security and Privacy. IEEE, 655–670.
[32] Aseem Rastogi, Nikhil Swamy, and Michael Hicks. 2019. Wys*: A DSL for Verified Secure Multi-party Computations. In 8th International Conference on Principles of Security and Trust (POST) (Lecture Notes in Computer Science, Vol. 11426), Flemming Nielson and David Sands (Eds.). Springer, 99–122. https://doi.org/10.1007/978-3-030-17138-4_5
[33] Andrei Sabelfeld and David Sands. 2009. Declassification: Dimensions and Principles. J. Comput. Secur. 17, 5 (oct 2009), 517–548.
[34] Christian Skalka and Joseph P. Near. 2024. Language-Based Security for Low-Level MPC. In Proceedings of the ACM Conference on Principles and Practice of Declarative Programming.
[35] Christian Skalka and Joseph P. Near. 2025. SMT-Boosted Security Types for Low-Level MPC. In Proceedings of the European Symposium on Programming.
[36] Christian Skalka and Joseph P. Near. 2025. SMT-Boosted Security Types for Low-Level MPC. arXiv:2501.17824 [cs.CR] https://arxiv.org/abs/2501.17824
[37] Antonio Emerson Barros Tomaz, Jose Claudio Do Nascimento, Abdelhakim Senhaji Hafid, and Jose Neuman De Souza. 2020. Preserving privacy in mobile health systems using non-interactive zero-knowledge proof and blockchain. IEEE access 8 (2020), 204441–204458.
[38] Qianchuan Ye and Benjamin Delaware. 2022. Oblivious Algebraic Data Types. Proc. ACM Program. Lang. 6, POPL, Article 51 (jan 2022), 29 pages. https://doi.org/10.1145/3498713