Next Article in Journal
Multi-Radio Access Fusion with Contrastive Graph Message Passing Neural Networks for Intelligent Maritime Routing
Previous Article in Journal
Impact of Gate Oxide Thickness on the Failure Mechanisms of AC Bias Temperature Instability in SiC MOSFETs
Previous Article in Special Issue
Multidimensional Fault Injection and Simulation Analysis for Random Number Generators
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Improving Hardware Security Through Logic-Probability- Guided Gate Replacement Using Emerging Devices

by
Massimo Mikio Martini
1 and
Nikhil Saxena
2,*
1
School of Engineering, Department of Electrical, Computer, and Systems Engineering, Rensselaer Polytechnic Institute, Troy, NY 12180, USA
2
Riccio College of Engineering, Department of Electrical and Computer Engineering, University of Massachusetts Amherst, Amherst, MA 01003, USA
*
Author to whom correspondence should be addressed.
Electronics 2026, 15(6), 1267; https://doi.org/10.3390/electronics15061267
Submission received: 13 January 2026 / Revised: 12 March 2026 / Accepted: 16 March 2026 / Published: 18 March 2026

Abstract

Security threats in the integrated circuit (IC) supply chain are intensifying as demand drives fabrication to off-shore, potentially untrusted foundries. To mitigate theft and reverse engineering, recent work has focused on logic locking, encryption, and camouflaging. This paper introduces a probabilistic logic-driven algorithm that selects optimal locations for polymorphic gate replacement to strengthen circuit protection. Our approach leverages emerging polymorphic devices—namely the Giant Spin-Hall Effect (GSHE) switch, the 5-terminal magnetic domain wall motion (DWM) device, and the threshold-voltage-defined (TVD) switch—to diversify functional behavior and obscure true circuit intent. Evaluated on ISCAS-85 and ISCAS-89 benchmarks under state-of-the-art SAT and AppSAT Attacks, the proposed method substantially increases decryption time while achieving a marked improvement in Output Corruption Rate (OCR) relative to prior techniques. In particular, by deploying the GSHE Switch at the highest-probability nodes, we achieve more than 40% OCR along with strong resilience against SAT and AppSAT Attacks, further demonstrating the effectiveness of the proposed approach as a practical and scalable hardware obfuscation strategy.

1. Introduction

In recent years, there has been a growing concern over the protection of integrated circuits (ICs) across the global supply chain. As chip demand surges, fabrication is increasingly outsourced to off-shore, potentially untrusted foundries, heightening the risk of design theft and reverse engineering. Designs can be identified—for example, transistor types within commercial processors can be inferred [1]—and netlists can be extracted [2], enabling leaks or pirated designs [3]. These threats compromise both the confidentiality of intellectual property (IP) and the integrity of deployed systems. Traditionally, as shown in Figure 1, the design begins in written systemVerilog, describing the hardware. The code is then synthesized in order to create a netlist, i.e., a representation of all connections on the chip. This netlist is valuable—if recreated by a malicious user, the integrity of the chip is lost as the malicious user now has an understanding of the connections and can leak or pirate the design. The netlist is turned into a layout in the style of GDSII, which then is sent to the offshore foundry to be manufactured. The offshore foundry can reverse engineer to discover the netlist, and they can also produce extra as to sell. After manufacturing, the chip is tested to ensure inputs and outputs are correct—this can also lead to reverse engineering. After all this, the final product is received by the end user, but they may not be aware that the chip may have been pirated and stolen.
To address these risks, the community has advanced a spectrum of IP protection techniques. Nevertheless, modern reverse-engineering strategies and solver-based attacks continue to improve in effectiveness and scalability, motivating stronger, more adaptable defenses that raise the difficulty of inferring true circuit intent and recovering keys at scale.

1.1. IP Protection

There are methods already researched to assist in IP protection. Logic Encryption/Logic Locking is used with key inputs—key inputs are exactly as they sound, where the correct logic is only found when the correct key is applied [4,5,6,7,8]. Polymorphic gates expand on this idea—the polymorphic gate is capable of performing multiple boolean functions, and only the key input, known by the designer, is capable of providing the correct functionality of the gate. IC Camouflaging is gate replacement, which will be expanded more in later sections. Splitting the manufacturing process into the Front End of Line (FEOL) layers and the Back End of Line (BEOL) layers. The FEOL layers, which is primarily transistor fabrication and some earlier metal layers, is manufactured offshore, while the BEOL layers, which are primarily metal layers, are manufactured onshore [9]. These are just a few examples of IP protection and the recent research performed on this subject.

1.2. Emerging Devices

A wide range of emerging device technologies has been explored for enhancing logic encryption. Notable examples include polymorphic devices such as the GSHE Switch [10], DWM Switch [11,12], and TVD [13]. Additional approaches leverage memristor-based encryption, as demonstrated in the works of Shirinzadeh et al. [14] and Kvatinsky et al. [15]. Other hardware-centric security primitives, including Physically Unclonable Functions (PUFs) [16,17,18] and Look-Up Tables (LUTs) [19,20], have also been employed to strengthen design obfuscation. Collectively, these emerging technologies offer diverse opportunities to enhance logic encryption and support robust intellectual property (IP) protection.

1.3. Camouflaging Technique

We incorporate GSHE, DWM, and TVD polymorphic gates in our design. These three device technologies were selected due to their complementary switching mechanisms and their demonstrated potential to enhance attack resiliency. It is important to know that these methodologies are not yet fully compatible with industry, as Han et al. notes [21]. Thus, an encouraging and emerging topic is to introduce EDA-compatible tools [22]. The proposed Hybrid Shielding framework operates at the post-synthesis netlist level and is compatible with standard industrial RTL-to-GDSII flows without requiring modifications to commercial EDA tools; while experimental validation was conducted using a commercial synthesis environment, full-scale industrial deployment and sign-off validation remain part of future work.
Modern reverse-engineering and machine-learning-assisted attacks have become increasingly sophisticated and capable of analyzing complex hardware designs. In this context, polymorphism plays a crucial role by introducing functional ambiguity at the device level. Specifically, polymorphic gates can exhibit different functionalities depending on the applied control conditions, making it significantly more challenging for an adversary to determine the actual behavior of the circuit. As a result, even with advanced analysis techniques or machine-learning-based approaches, accurately inferring the true functionality of individual gates and the overall design becomes substantially more difficult. This inherent ambiguity strengthens the resilience of the system against reverse-engineering efforts and helps protect the underlying intellectual property [4].
Building on these foundations, this paper presents a novel algorithm based on logic probability that determines the optimal gates chosen for polymorphic gate replacement. By integrating GSHE, DWM, and TVD devices—each offering distinct polymorphic characteristics such as magneto-spintronic switching (GSHE), domain wall motion-based configurability (DWM), and threshold-voltage-dependent functionality (TVD)—we create a heterogeneous polymorphic layer that maximizes uncertainty for attackers while maintaining circuit-level robustness. We evaluate our approach using the ISCAS 1985 benchmarks against SAT and AppSAT Attacks, demonstrating a strong increase in decryption time and a significant improvement in Output Corruption Rate (OCR) compared to previous research.
The paper is organized in the following format: Section 1 is the Introduction. Section 2 is the background and motivation, describing prior research and ideas. Section 3 is our proposed method. Section 4 is the experiments, along with a way for a reader of this paper to reproduce these experiments. Section 5 is the results and discussion of the results. Lastly, Section 6 is the conclusion.

2. Background and Motivation

Over the past decade, both industry and academia have intensified efforts to secure integrated circuits (ICs) amid escalating supply-chain threats. As fabrication and test have become more globally distributed, the community has developed—and systematically evaluated—security tools that expose vulnerabilities and guide the design of stronger defenses. This section reviews key attack methodologies that catalyzed progress in logic encryption and camouflaging, and motivates our focus on polymorphic devices as a path toward resilient protection.

2.1. Background

A pronounced “attack–defense” cycle has shaped IC security: new obfuscation and locking schemes have been met by increasingly capable deobfuscation tools. The Boolean Satisfiability Attack (SAT Attack), introduced in 2015 [23], demonstrated that many contemporary logic-locking schemes could be efficiently compromised. Building on this, the Approximate SAT Attack (AppSAT), proposed in 2017 [24], further expanded the practical reach of solver-based attacks by targeting approximate keys and outputs.

2.1.1. SAT Attack

The SAT Attack (also referred to as the SAT Tool) iteratively identifies distinguishing input patterns by querying a functional oracle and pruning incorrect keys until a single valid key remains. In practice, this approach defeated most early circuit encryption attempts, highlighting the need for stronger protection mechanisms. Subsequent research introduced both enhanced attack variants—such as AppSAT by Shamsi et al. [24] and IcySAT by Shamsi et al. [25]—as well as SAT-resistant locking schemes, including SARLock by Yasin et al. [26], to counter solver-based deobfuscation. Operationally, the SAT Tool seeks consistent input–output behavior; when successful, it returns the recovered key. When the SAT Tool runs for more than two days, it is considered unable to solve the circuit.

2.1.2. AppSAT Attack

The AppSAT Attack (or AppSAT Tool) extends SAT-based methods to recover approximate keys and outputs, often with greater practical effectiveness than exact SAT. Consequently, we define an inability to solve a circuit as taking more than one day. AppSAT’s key parameters include the iterations between sampling (a), the number of sampling queries (q), and the settlement threshold (S). Every a iterations, AppSAT issues q randomized sampling queries; if the number of inputs tested remains insufficient, the settlement count (initialized to 0) is incremented. Once the settlement count reaches S, the tool returns an approximated key [26,27].

2.2. Motivation

Several hardware security techniques have been proposed to protect integrated circuits against reverse engineering and SAT-based attacks. Patnaik et al. [28] introduced polymorphic logic based on spin–orbit torque (SOT) devices for hardware security, demonstrating how device-level polymorphism can obscure circuit functionality and increase resistance to structural analysis. However, their approach primarily focuses on device-level polymorphic behavior and does not incorporate a hybrid logic encryption framework that combines multiple locking mechanisms to further strengthen security. SARLock, proposed by Yasin et al. [26], introduces a SAT-resistant locking technique based on a point-function structure that significantly increases the number of iterations required by SAT Attacks. Nevertheless, SARLock typically results in very low Output Corruption Rates (OCRs), meaning that many incorrect keys still produce outputs that are largely correct, which limits the practical strength of the protection. More recent work such as Hybrid Shielding by Saxena et al. [4] improves the OCR compared to several earlier logic-locking schemes by combining different protection strategies. However, that approach relies on identifying and protecting sensitive nodes within the circuit, which can be a tedious and design-dependent process. In contrast, the approach presented in this work focuses on further improving the achievable OCR while employing a simpler and more systematic gate-selection strategy, avoiding the need for extensive sensitive-node analysis and making the method easier to integrate into practical design flows.
Solver-driven attacks such as SAT and AppSAT exploit the deterministic, fixed functionality of conventional gates and structural regularities in netlists, rapidly pruning candidate keys using distinguishing input patterns. To disrupt this process, our research requires polymorphic gates that introduce per-gate functional ambiguity and expand the effective key space at the device level. By enabling multiple Boolean behaviors within the same physical footprint—selectable through designer-known configuration inputs—polymorphic gates degrade an attacker’s ability to infer true circuit intent from layout or test observations, reduce the efficacy of oracle-guided query strategies, and hinder feature extraction for machine-learning-assisted deobfuscation. Moreover, polymorphism can create equivalence classes of keys and behaviors that yield indistinguishable outputs over practical query budgets, thereby increasing decryption time and improving output corruption for incorrect keys, all while maintaining compatibility with standard design flows and acceptable overheads. In this work, we therefore explored three complementary polymorphic technologies—the GSHE Switch, the DWM Device, and the TVD Switch—to diversify gate-level behavior, strengthen resilience against solver-based and reverse-engineering attacks, and preserve circuit performance and practicality.

2.2.1. Comparison with Probability-Based Gate Selection Approaches

Existing methods such as ProbLock [29] leverage logical probability primarily as a filtering mechanism to guide gate selection in logic locking. These approaches focus on identifying candidate gates that maximize locking effectiveness within a conventional logic-locking framework. Probability analysis in these methods is generally applied to prioritize gates for insertion but does not integrate additional functional transformations or encryption strategies.
In contrast, the proposed framework employs probability analysis as part of a broader strategy that combines polymorphic gate insertion and hybrid encryption. This integration enhances functional ambiguity and improves the Output Corruption Rate (OCR). Unlike prior methods, our approach avoids complex structural analysis, such as identifying sensitive nodes or performing extensive structural filtering, and instead relies on a straightforward probability-driven selection mechanism that can be systematically applied across the circuit. This design choice enables a practical and effective combination of polymorphic behavior and logic encryption, emphasizing OCR improvement while maintaining implementation simplicity.

2.2.2. The GSHE Switch

The GSHE Switch is a two-magnet dipolar coupling device [30]. Ref. [31] first proposed using it for boolean logic, and GSHE was shown to be compatible with CMOS by Zhang et al. [31], while it is known to be CMOS compatible, there are some integration issues regarding spin diffusion and integration density [32]. As shown in Figure 2, the leftmost layer consists of the GSHE material, commonly silicon or another semiconductor-based material [10]. The free magnet layer next is W (Write) while the rightmost layer is a free magnet layer R (Read), both being nanomagnets. In between there are two ferromagnetic layers in green, where one is positive current (+I, Logic 1) and the other is negative current (−I, Logic 0). The black arrow represents a charge current and the yellow arrows represent the transverse direction to show the accumulation of spin.

2.2.3. The 5-Terminal Magnetic Domain Wall Motion Device

The 5-Terminal Magnetic Domain Wall Device, known as the DWM Device, combines a domain wall motion component with three magnetic tunnel junctions. Each junction comprises two ferromagnetic layers separated by a tunnel barrier [11,12]. This architecture enables configurable behavior suitable for polymorphic logic, as shown in Figure 3.

2.2.4. The Threshold-Voltage-Defined Switch

The Threshold-Voltage-Defined Switch (TVD Switch) can implement multiple Boolean functions by exploiting threshold-voltage-dependent configurations [13]. As [33] demonstrates, simply adjusting an NMOS transistor’s gate voltage bias enables different functional behaviors, making TVD an effective polymorphic primitive for encryption and camouflaging. The visual representation is shown in Figure 4.

3. Proposed Method

We integrate our gate-selection algorithm with polymorphic gates to realize a resilient encryption framework that supports fine-grained, reconfigurable logic locking and high key entropy.

3.1. GSHE Switch

The GSHE Switch can be represented as a 16 × 1 multiplexer (MUX) as shown in Figure 5. Dynamic A and Dynamic B use what is known as HTrigger [4], which for our method is a random primary input. RNG is a random binary 0 or 1. The MUX table can be seen in Table 1, which shows the inputs and keys. The first two key inputs, k1 and k2, are crossed out—this is because they are not necessary to determine the specific functionality of the device; rather, they are necessary in determining the input value of either Dynamic A or Dynamic B. In our construction, the 16-way selection enables a rich configuration space that couples the HTrigger and RNG sources of randomness with the key-controlled routing inside the MUX. This combination yields a large functional repertoire and elevates the effective key entropy, improving resistance to structural inference and brute-force strategies. Moreover, the GSHE-based switch cleanly interfaces with our gate-selection algorithm, allowing adaptive instantiation of Boolean behaviors while preserving timing closure and minimizing area overhead.
The 5T Domain Wall Magnet Device, named the DWM Device, also has polymorphic properties—this can be represented by an 8 × 1 MUX, shown in Figure 6. The key inputs are shown in Table 1. The DWM configuration space is therefore narrower than GSHE’s, providing eight selectable behaviors under a given key schedule; while the device supports efficient reconfiguration, its reduced fan-in and smaller key space limit the number of distinct logic functions realizable per instance, which in turn lowers the achievable obfuscation density for a fixed gate budget.
However, the Threshold-Voltage-Defined Switch, named the TVD Switch, has polymorphic properties and can offer 6 functionalities. This can be represented by an 8 × 1 MUX, shown in Figure 7. The key inputs are shown in Table 1. The TVD approach benefits from CMOS compatibility, but the smaller functional set and sensitivity to threshold variations constrain its role in high-entropy logic locking. In practice, the reduced number of behaviors per switch complicates the design of uniformly strong key schedules across heterogeneous logic blocks.
Finally, GSHE is selected as the polymorphic gate for this research because it offers superior configurability (16 × 1 selection versus 8 × 1), higher effective key entropy through the joint use of HTrigger [4] and RNG, and seamless integration with our gate-selection algorithm, while DWM can support up to 16 logic functions [11,12], we selected the GSHE Switch as it has superior CMOS capabilities and more favorable PPA trade-offs, making it far more practical for scalable integration. These attributes enable a broader set of realizable Boolean functions per gate, deeper obfuscation layers without excessive area or timing penalties, and stronger resistance to structural and key-recovery attacks compared with the DWM Device and the TVD Switch.

3.2. Key Distribution

There are three sets of keys, S 1 , S 2 , and S 3 . S 1 is used for the Reinstate Block, S 2 for the SAT–Resilient Block, and S 3 for the polymorphic gates. The value of S 1 depends on the type of Reinstate Block; for a CMOS implementation (as used in [4]) only 1 key input is necessary. In our method, we use a GSHE-based Reinstate Block and add a 9th key input as the B input, so S 1   =   9 . S 2 requires one key input per polymorphic gate; with 45 polymorphic gates, S 2   =   45 . S 3 equals the number of polymorphic gates times the key inputs per gate: using 45 GSHE Switches with 8 keys each gives S 3   =   45   ·   8   =   360 . If DWM switches (3 keys each) were used instead, S 3 would be 135. The total number of key inputs is S 1   +   S 2   +   S 3 , which for our configuration is 9   +   45   +   360   =   414 .
Limiting the number of keys is not the goal of this work; if that were desired, keys can be shared as in [4]. Therefore, we used 360 key inputs for S 3 instead of applying key-sharing. This does not pose a problem, and key-sharing can be employed later to reduce the total number of keys if needed. Keys are akin to transistors; if a 5000 gate circuit includes only 20,000 or 30,000 transistors, our keys make up only 1–2% of the total transistor count. For a design with one million transistors, the keys would take up an insignificant number of transistors—less than 0.1%.

3.3. Gate Replacement Algorithm

Algorithm 1 computes probabilities across the circuit. Primary inputs are initialized with P(0) = P(1) = 0.5 (each logic value has a 50% probability). Each gate’s output probability is then computed using Algorithm 1 according to the gate type. These calculations are inspired by Brkic et al. [34], Qian et al. [35], and Parker and McCluskey [36]. Gates are ranked by their output probability and grouped as follows: “highest” is the top 45 gates with the largest P(1) (smallest P(0)); “lowest” is the top 45 with the largest P(0) (smallest P(1)); “50/50” consists of the top 22 or 23 gates by P(1) and the top 22 or 23 by P(0); and “random” is selected uniformly at random. The Python-to-LaTeX conversion was produced with the help of generative AI (Claude Sonnet 4.5), and the Python 3.11.4. code is provided [37]. The probability calculations are performed as follows:

3.3.1. BUF

Buffer (BUF) gates have a single input and directly propagate the input probabilities to the output without modification. In other words, the output probabilities are identical to the input probabilities. For instance, if the probability of a logic 1 is 70% (i.e., P ( 1 )   =   0.7 ), then the probability of a logic 0 is 30% (i.e., P ( 0 )   =   0.3 ).
Algorithm 1 Gate Selection
  1:
Require: Netlist file, selection type t { highest , lowest , 50 / 50 , random }
  2:
Ensure: List of 45 selected gate names
  3:
Parse netlist to extract inputs I, outputs O, and gates G
  4:
Build dependency graph and perform topological sort on G
  5:
Initialize P ( i = 1 ) = 0.5 for all i I
  6:
for each gate g G in topological order:
  7:
   if g is BUF:
  •        P ( g = 1 ) P ( x 1 = 1 )
  8:
   elseif g is NOT:
  •        P ( g = 1 ) 1     P ( x 1 = 1 )
  9:
   elseif g is AND:
  •        P ( g = 1 ) i = 1 n P ( x i = 1 )
10:
   elseif g is NAND:
  •        P ( g = 1 ) 1     i = 1 n P ( x i = 1 )
11:
   elseif g is OR:
  •        P ( g = 1 ) 1     i = 1 n P ( x i = 0 )
12:
   elseif g is NOR:
  •        P ( g = 1 ) i = 1 n P ( x i = 0 )
13:
   elseif g is XOR:
  •        P ( g = 1 ) = S { 1 , , n } | S | odd i S P ( x i = 1 ) j S P ( x j = 0 )
14:
   elseif g is XNOR:
  •        P ( g = 1 ) = S { 1 , , n } | S | even i S P ( x i = 1 ) j S P ( x j = 0 )
15:
Filter G to internal 2-input gates C G ( I O )
16:
if  t = highest :
  •    Select top 45 gates from C by P ( g = 1 )
17:
elseif  t = lowest :
  •    Select top 45 gates from C by P ( g = 0 )
18:
elseif  t = 50 / 50 :
  •     N random choice from { 22 , 23 }
  •    Select N gates by highest P ( g = 1 ) and 45     N by highest P ( g = 0 )
19:
elseif  t = random :
  •    Select 45 random gates from C
20:
end

3.3.2. NOT

NOT gates also have a single input, but they invert the input probabilities at the output. Specifically, the probability of a logic 1 at the output equals the probability of a logic 0 at the input, and vice versa. For example, if the input probabilities are P ( 1 )   =   0.7 and P ( 0 )   =   0.3 , then the output probabilities become P ( 1 )   =   0.3 and P ( 0 )   =   0.7 .

3.3.3. AND

AND gates support two or more inputs. The output probability of logic 1, P ( 1 ) , is obtained by multiplying the P ( 1 ) values of all inputs. For example, consider three inputs A, B, and C with probabilities P A ( 1 )   =   0.4 , P B ( 1 )   =   0.2 , and P C ( 1 )   =   0.8 . The resulting output probability is P t o t a l ( 1 )   =   P A ( 1 )   ·   P B ( 1 )   ·   P C ( 1 )   =   0.4   ·   0.2   ·   0.8 = 0.064 , or 6.4%. Since P ( 0 )   =   1     P ( 1 ) , the output probability of logic 0 is P t o t a l ( 0 )   =   1     0.064 = 0.936 , or 93.6%.

3.3.4. NAND

NAND gates also have two or more inputs and produce the logical complement of an AND gate. Thus, if an AND gate yields P ( 1 )   =   0.064 and P ( 0 )   =   0.936 , the corresponding NAND gate produces P ( 1 )   =   0.936 and P ( 0 )   =   0.064 . The probability calculations are identical to those of the AND gate, except that the final output probabilities are swapped.

3.3.5. OR

OR gates have two or more inputs. The output probability of logic 0 is computed by multiplying the input probabilities of logic 0. The probability of logic 1 is obtained as the complement of this value. As an example, consider three inputs A, B, and C with probabilities P A ( 0 )   =   1 , P B ( 0 )   =   0.9 , and P C ( 0 )   =   0.1 . The output probability of logic 0 is P t o t a l ( 0 )   =   P A ( 0 )   ·   P B ( 0 )   ·   P C ( 0 )   =   1   ·   0.9   ·   0.1   =   0.09 , or 9%. Consequently, the probability of logic 1 is P t o t a l ( 1 )   =   1     0.09   =   0.91 , or 91%.

3.3.6. NOR

NOR gates have two or more inputs and implement the logical complement of an OR gate. Therefore, if the OR gate produces P ( 0 )   =   0.09 and P ( 1 )   =   0.91 , the corresponding NOR gate produces P ( 0 )   =   0.91 and P ( 1 )   =   0.09 . The probability computation follows the same process as the OR gate, followed by complementing the resulting output probability.

3.3.7. XOR

XOR gates support two or more inputs. The computation iterates over all possible input combinations from 0 to 2 n     1 , where n is the number of inputs. For each combination, the algorithm checks whether the number of logic 1 s in the binary representation is odd. XOR outputs a logic 1 when an odd number of inputs are 1. For every such valid combination, the corresponding input probabilities are multiplied, and all resulting values are summed to obtain P t o t a l ( 1 ) .
For example, consider two inputs X and Y with probabilities P X ( 1 )   =   0.6 , P X ( 0 )   =   0.4 , P Y ( 1 )   =   0.1 , and P y ( 0 )   =   0.9 . There are two cases with odd parity: ( X   =   1 , Y   =   0 )  and  ( X   =   0 , Y   =   1 ) . For the first case, P 1 ( 1 )   =   P X ( 1 )   ·   P Y ( 0 )   =   0.6   ·   0.9   =   0.54 . For the second case, P 2 ( 1 )   =   P X ( 0 )   ·   P Y ( 1 )   =   0.4   ·   0.1   =   0.04 . Summing these values gives P t o t a l ( 1 )   =   0.54   +   0.04   =   0.58 , or 58%. Accordingly, P ( 0 )   =   1     0.58   =   0.42 , or 42%.

3.3.8. XNOR

XNOR gates have two or more inputs and operate similarly to XOR gates, except that the algorithm checks for even parity in the number of logic 1 s. For each input combination with an even number of 1s, the corresponding probabilities are multiplied and summed to compute P t o t a l ( 1 ) .
For example, consider two inputs X and Y with probabilities P X ( 1 )   =   0.3 , P X ( 0 )   =   0.7 , P Y ( 1 )   =   0.65 , and P y ( 0 )   =   0.35 . The two even-parity cases are   ( X   =   0 , Y   =   0 ) and ( X   =   1 , Y   =   1 ) . For the first case, P 1 ( 1 )   =   P X ( 0 )   ·   P Y ( 0 )   =   0.7   ·   0.35   =   0.245 . For the second case, P 2 ( 1 )   =   P X ( 1 )   ·   P Y ( 1 )   =   0.3   ·   0.65   =   0.195 . Adding these yields P t o t a l ( 1 )   =   0.245   +   0.195   =   0.44 , or 44%. Consequently, P ( 0 )   =   1     0.44   =   0.56 , or 56%.

3.4. Logic Encryption Method

We adopt a logic encryption scheme inspired by [4], retaining all components except the Internal State Block, which is unnecessary for our purposes. The contrast between the two designs is illustrated in Figure 8 and Figure 9.

3.4.1. The SAT–Resilient Block

After substituting polymorphic gates, each polymorphic gate’s output is routed to its own 2-input XOR gate, with the first input being the polymorphic output and the second a key input. The outputs of all XOR gates are then combined with an AND, completing the SAT–Resilient Block.

3.4.2. The Reinstate Block

The Reinstate Block restores the intended output behavior. In prior research such as [4,5], it is implemented as a CMOS logic gate, commonly an AND or OR. In our encryption, we instead incorporate an additional GSHE Switch as the Reinstate Block itself, substantially increasing encryption strength and corruptibility; while the RNG input of the Reinstate Block introduces inherent randomness as shown in Section 4, if the first two keys, k1 and k2, are known, you can choose your Dynamic A or Dynamic B values.

3.5. Proposed Method

To realize strong encryption, we proceed in several steps. First, we select the gates to be replaced using the gate replacement algorithm, choosing among highest, lowest, 50/50, or randomly selected gates. Once identified, these gates are replaced with our chosen polymorphic gate. We may employ a 16-function gate, such as the GSHE Switch, or 7- or 6-function gates that emulate the DWM and TVD Switches, respectively. The new polymorphic gates continue to drive their original destinations and also feed the SAT–Resilient Block. For each output designated for obfuscation, the signal is sent to both the Reinstate Block and a new XOR gate. The output of the SAT–Resilient Block is applied to this XOR gate, and the result is then XOR’d with the output of the Reinstate Block to produce the new, obfuscated output. A block diagram for clarity is shown in Figure 10.

4. Experiments

This section outlines our experimental methodology, expands on the tools employed, explains how to reproduce our experiments, and defines the basis of our reported results.
For consistency across benchmarks, a fixed budget of 45 gate replacements was used in all experiments. This value was selected to provide a meaningful security perturbation while maintaining functional integrity and avoiding excessive structural modification. The use of a fixed replacement budget ensures fair cross-benchmark comparison of OCR and SAT/AppSAT resilience under identical modification constraints. The selection of 45 polymorphic gates is also consistent with configurations adopted in prior studies. Earlier works such as ISPLock [7] and Hybrid Shielding [4] have demonstrated that increasing the number of polymorphic gates from smaller values (e.g., 30) to around 45 leads to a noticeable improvement in resilience against SAT-based and related attacks while keeping the implementation overhead manageable. Based on these findings, the value of 45 was chosen as a practical baseline that provides a balanced trade-off between security enhancement and structural overhead, while allowing meaningful comparison with previously reported results.

4.1. Setup and Reproducibility

All tests were executed on an i7-1355U with 32GB RAM. Our repository contains many python files as from [37]. There are two separate programs in the repository. The first generates the benchmark used by the SAT Tool, with parameters including the benchmark name, the set of gates to be replaced (as determined by the probability algorithm), and the replacement type (highest probability, lowest probability, 50/50, or random). You can then run the SAT Tool by comparing the generated benchmark with the original, unencrypted benchmark. The second program produces verilog code and test bench code, to be used with the simulator icarus Verilog [38]. There is an additional text file that includes icarus Verilog code. We used benchmarks from the ISCAS ‘85 [39] group, excluding c17 due to its small size, and we also used two benchmarks from ISCAS ’89 [40]: s13207 and s38584. We chose to obfuscate a random 50% of primary outputs. For smaller circuits such as c432, which has 7 primary outputs, there is little variation in the selected outputs. For larger circuits such as c7552, which has 107 primary outputs, the selection exhibits greater variation.

4.2. SAT Tool

The SAT Tool, also known as the SAT Attack, attempts to solve the circuit [23]. It takes two files as input: the original circuit in the .bench format and the encrypted circuit in the .bench format. We have a python program as per [37] that incorporates polymorphic gates based on the chosen gates and the type of polymorphic gates. A strong circuit can withstand the SAT Attack for over 2 days, which we demonstrate by showing SAT Attack results from our encrypted circuits.

4.3. Output Corruption Rate

Output Corruption Rate (OCR) measures the percentage of outputs that are corrupted. It is defined by the following equation as described in [41]:
O C R   =   1 / M × i   =   1 M C i / P
In our experiments we define M as 10,000, corresponding to 10,000 different cases.
Given the inherent randomness of Htrigger, RNG, output gate selection, etc., we evaluate each case 10 times and report the average. To compute the average OCR for each test type, we take the mean across all benchmarks.

4.4. AppSAT Pass/Fail

To assess the effectiveness of AppSAT, we evaluate the OCR using the key provided by the attack. The AppSAT Tool is included in the SAT Tool package. As per [24], we use the following parameters for our tests: a (iterations between sampling) is 12, q (number of sampling queries) is 50, and S (settlement threshold) is 5.
The AppSAT Tool performs approximate decryption; consequently, the key it outputs may not be the true key held by the designer. We take the approximated key returned by AppSAT, supply it to icarus Verilog, and compute the resulting OCR at the circuit output. If the OCR is greater than 0%, the key provided by AppSAT is not fully accurate, and the circuit is considered to have resisted the AppSAT Attack. Conversely, if the key from AppSAT yields 0% OCR, the circuit fails the AppSAT Attack, as this indicates that the correct key has been recovered.
We set 0% OCR as the threshold because the Reinstate Block is implemented using a GSHE Switch that incorporates inherent randomness, which can corrupt up to 50% of the outputs under incorrect key conditions. Therefore, an OCR greater than 0% implies that the AppSAT-derived key is incorrect. The randomness originates from the RNG input to Dynamic A or Dynamic B; however, this effect can be bypassed if the correct k1/k2 values are known, as discussed in Section 3.
To evaluate AppSAT, we follow the same OCR computation procedure described earlier, except that instead of applying a random key input, we use the key returned by AppSAT. Alternatively, if AppSAT fails to produce a valid key within 24 h, we denote the result as TIMEOUT and mark the test as passed, indicating that the encrypted circuit survived the AppSAT Attack. The results are presented in Table 8.

4.5. PPA Overhead

Power, Performance, and Area (PPA) overheads are necessary tools for analysis of polymorphic gates. It describes three key factors when looking at device replacement: power, delay, and area. When replacing logic gates with the GSHE Switch, it is important to consider the changes in power, delay, and area across the circuit.
The PPA discussion has already been addressed in prior work such as [4]; therefore, we do not repeat the full analysis here. However, the PPA data for the GSHE Switch is provided in Table 9. PPA Overhead is an essential metric for evaluating polymorphic gates, as it captures three key factors in device replacement analysis: power, delay, and area. When replacing conventional logic gates with the GSHE Switch, it is necessary to carefully assess the resulting variations in these metrics at the circuit level.
As shown in Table 9, the GSHE Switch [28] demonstrates advantages over 15 nm [42] and 45 nm [43] CMOS gates in certain PPA aspects, although it exhibits a significantly higher delay. This delay penalty limits large-scale substitution; while the reported values correspond to an isolated gate, the delay impact accumulates with increasing circuit complexity. Consequently, replacing all gates with GSHE Switches is not a viable design option.

5. Results and Discussion

The comparative analysis presented in this section focuses on logic-locking and cloaking methodologies that are directly comparable in terms of threat model, evaluation metrics (e.g., OCR), and SAT/AppSAT-based adversarial analysis; while Section 1.2 discusses a broader range of emerging security primitives—including memristor-based encryption, PUF-based approaches, and LUT-based mechanisms—these techniques target different security objectives and are evaluated under different performance metrics. Therefore, to ensure methodological consistency and fairness, the comparison in Tables 10 and 11 is limited to works that report SAT-based resilience and OCR metrics under similar benchmark settings. We present results from the SAT Tool, AppSAT Tool, and OCR computations, compare them against prior work, and interpret the factors underlying the observed performance.

5.1. Results

We compiled multiple tables to summarize the outcomes of our algorithm. Table 2 reports OCR across all benchmarks for the GSHE Switch; similarly, Table 3 and Table 4 report OCR values for the DWM Device and TVD Switch, respectively. This view highlights, for example, how smaller designs (e.g., c432) respond relative to larger ones (e.g., c7552), clarifying which polymorphic gates yield stronger or weaker OCR and illustrating the advantage of highest-probability selections in terms of SAT Tool time. This also shows the strong OCR output of our algorithm, even without the use of GSHE Switches. Table 5 presents the best CPU times for each benchmark, underscoring the dominance of the GSHE Switch. Similarly, Table 6 and Table 7 show the time it takes for the SAT Tool to solve the circuits with the DWM Device and TVD Switch replacements, respectively. This shows the extreme dominance of using GSHE Switches under Highest Probability replacement, as nearly all tests survive the SAT Attack. Table 8 indicates whether the GSHE Switch defeats the AppSAT Attack by reporting the highest observed OCR or, alternatively, survival for 24 h as marked with a TIMEOUT in the OCR percentage. Finally, Table 9 shows PPA values for 15 nm CMOS AND [42], 45 nm CMOS OR and XOR [43], and the GSHE Switch [28].

5.2. Discussion

Averaging across all benchmarks, the highest-probability selection for GSHE Switches yields the highest OCR, outperforming the lowest-probability selection. This trend extends across other polymorphic gate types as well except for DWM switch. That said, the effect is benchmark-dependent: for designs such as c1908, highest-probability consistently exceeds lowest-probability, whereas c499 exhibits the opposite behavior. Crucially, OCR alone does not determine overall security. SAT Tool runtime is also decisive, and highest-probability selection offers a clear advantage here; GSHE Switches with highest-probability gate selection defeat the SAT Tool in nearly all cases. We also best all recent research, as shown in Table 10 and Table 11—our OCR is greater than recent work by Saxena et al. [4], and our SAT times are far greater than K-Gate Locking [44], ProbLock [29], and SARLock [26].
Our method also withstands the AppSAT Attack, as shown in Table 8. We observe substantial variance in AppSAT-based OCR, indicating that the key produced by AppSAT is not fully accurate—an outcome attributable both to AppSAT’s approximate nature and to the inherent randomness introduced by the GSHE Reinstate Block. Despite this randomness, OCR remains strong across all polymorphic gates and compares favorably to prior work. For instance, Saxena et al. [4] report “Hybrid Shielding” OCR averages of 21.79% (sensitive nodes) and 31.06% (stable nodes), as illustrated in Table 11. In contrast, our GSHE Highest and Lowest Probability OCR averages are 41.02% and 40.70%, respectively. For users aiming to maximize OCR, the highest-probability strategy is preferable. As well as, for robust, holistic security, we recommend employing 45 GSHE Switches and our encryption scheme with highest-probability gate selection, which delivers strong resistance against both the SAT Tool and AppSAT while achieving OCR substantially superior to prior research. 45 polymorphic gates should be chosen as [4] demonstrates that OCR decreases as the number of polymorphic gates increase.

6. Conclusions

In this paper, we introduced a gate-selection algorithm paired with an encryption scheme for integrated circuits. By incorporating emerging devices, we demonstrated the substantial impact that polymorphic gates can achieve. Our experiments used standard ISCAS 1985 and 89 benchmarks. We showed that combining highest-probability selection with the GSHE Switch yields markedly stronger security and IC protection, along with improved OCR.

Author Contributions

Conceptualization, N.S.; methodology, N.S.; software, M.M.M.; validation, M.M.M.; formal analysis, M.M.M.; investigation, M.M.M. and N.S.; resources, N.S.; data curation, M.M.M. and N.S.; writing—original draft preparation, M.M.M.; writing—review and editing, M.M.M. and N.S.; visualization, M.M.M.; supervision, N.S.; project administration, N.S.; funding acquisition, N.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

All data, along with the code to recreate this data, is available at https://github.com/MassimoMikioMartini/Improving-Hardware-Security accessed on 13 January 2026.

Acknowledgments

Massimo Mikio Martini thanks their grandparents, who provided them with wonderful food, housing, and most importantly great company during the duration of their stay. Their hospitality and generosity made this research possible. We also acknowledge the use of Claude Sonnet 4.5 to assist in converting Python to LaTeX for our algorithm.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ICintegrated circuit
GSHEGiant Spin-Hall Effect
DWMdomain wall motion
TVDthreshold-voltage-defined
PPAPower, Performance, and Area
OCROutput Corruption Rate
IPintellectual property
GDSIIGraphic Design System II
FEOLFront End of Line
BEOLBack End of Line
PUFPhysically Unclonable Function
LUTLook-Up Table
WWrite
RRead
MUXmultiplexer

References

  1. Rajendran, J.; Sam, M.; Sinanoglu, O.; Karri, R. Security analysis of integrated circuit camouflaging. In Proceedings of the 2013 ACM SIGSAC Conference on Computer & Communications Security; Association for Computing Machinery: New York, NY, USA, 2013; CCS ’13. [Google Scholar] [CrossRef]
  2. Torrance, R.; James, D. The state-of-the-art in semiconductor reverse engineering. In Proceedings of the 2011 48th ACM/EDAC/IEEE Design Automation Conference (DAC), Online, 5–9 June 2011; pp. 333–338. [Google Scholar]
  3. Roy, J.A.; Koushanfar, F.; Markov, I.L. EPIC: Ending Piracy of Integrated Circuits. In Proceedings of the 2008 Design, Automation and Test in Europe, Munich, Germany, 10–14 March 2008; pp. 1069–1074. [Google Scholar] [CrossRef]
  4. Saxena, N.; Vemuri, R. Hybrid Shielding: Amplifying the Power of Camouflaging and Logic Encryption. IEEE Access 2023, 11, 128484–128499. [Google Scholar] [CrossRef]
  5. Saxena, N.; Vemuri, R. Hybrid Shielding: Amplifying the Power of Camouflaging and Logic Encryption. In Proceedings of the 2023 IEEE 66th International Midwest Symposium on Circuits and Systems (MWSCAS), Tempe, AZ, USA, 6–9 August 2023; pp. 1103–1107. [Google Scholar] [CrossRef]
  6. Saxena, N.; Narayanan, R.V.; Meka, J.K.; Vemuri, R. SRTLock: A Sensitivity Resilient Two-Tier Logic Encryption Scheme. In Proceedings of the 2021 IEEE International Symposium on Smart Electronic Systems (iSES), Jaipur, India, 18–22 December 2021; pp. 389–394. [Google Scholar] [CrossRef]
  7. Saxena, N.; Vemuri, R. ISPLock: A Hybrid Internal State Locking Method Using Polymorphic Gates. In Proceedings of the 2022 IEEE Computer Society Annual Symposium on VLSI (ISVLSI), Nicosia, Cyprus, 4–6 July 2022; pp. 140–145. [Google Scholar] [CrossRef]
  8. Saxena, N. Efficient Techniques for Logic Locking. Ph.D. Thesis, University of Cincinnati, Cincinnati, OH, USA, 2024. [Google Scholar]
  9. Perez, T.D.; Pagliarini, S. A Survey on Split Manufacturing: Attacks, Defenses, and Challenges. IEEE Access 2020, 8, 184013–184035. [Google Scholar] [CrossRef]
  10. Zhang, Y.; Yan, B.; Wu, W.; Li, H.; Chen, Y. Giant spin hall effect (GSHE) logic design for low power application. In Proceedings of the 2015 Design, Automation & Test in Europe Conference & Exhibition (DATE), Grenoble, France, 9–13 March 2015; pp. 1000–1005. [Google Scholar]
  11. Parveen, F.; He, Z.; Angizi, S.; Fan, D. Hybrid Polymorphic Logic Gate with 5-Terminal Magnetic Domain Wall Motion Device. In Proceedings of the 2017 IEEE Computer Society Annual Symposium on VLSI (ISVLSI), Bochum, Germany, 3–5 July 2017; pp. 152–157. [Google Scholar] [CrossRef]
  12. Parveen, F.; Angizi, S.; He, Z.; Fan, D. Hybrid polymorphic logic gate using 6 terminal magnetic domain wall motion device. In Proceedings of the 2017 IEEE International Symposium on Circuits and Systems (ISCAS), Baltimore, MD, USA, 28–31 May 2017; pp. 1–4. [Google Scholar] [CrossRef]
  13. Nirmala, I.R.; Vontela, D.; Ghosh, S.; Iyengar, A. A novel threshold voltage defined switch for circuit camouflaging. In Proceedings of the 2016 21th IEEE European Test Symposium (ETS), Amsterdam, The Netherlands, 23–27 May 2016; pp. 1–2. [Google Scholar] [CrossRef]
  14. Shirinzadeh, S.; Datta, K.; Drechsler, R. Logic Design Using Memristors: An Emerging Technology. In Proceedings of the 2018 IEEE 48th International Symposium on Multiple-Valued Logic (ISMVL), Linz, Austria, 16–18 May 2018; pp. 121–126. [Google Scholar] [CrossRef]
  15. Kvatinsky, S.; Belousov, D.; Liman, S.; Satat, G.; Wald, N.; Friedman, E.G.; Kolodny, A.; Weiser, U.C. MAGIC—Memristor-Aided Logic. IEEE Trans. Circuits Syst. II Express Briefs 2014, 61, 895–899. [Google Scholar] [CrossRef]
  16. Mahalat, M.H.; Anwar, M.S.; Kumar, S.; Sen, B. Physically Unclonable Function (PUF) a Lightweight Security Primitive for IoT: Scope and Challenges. In Proceedings of the 2022 International Conference on Machine Learning, Computer Systems and Security (MLCSS), Bhubaneswar, India, 5–6 August 2022; pp. 368–373. [Google Scholar] [CrossRef]
  17. Dey, K.; Kule, M.; Rahaman, H. PUF Based Hardware Security: A Review. In Proceedings of the 2021 International Symposium on Devices, Circuits and Systems (ISDCS), Online, 3–5 March 2021; pp. 1–6. [Google Scholar] [CrossRef]
  18. Chen, Z.; Lee, W.; Hong, Q.; Gu, C.; Guan, Z.; Ding, L.; Zhang, J. A Lightweight and Machine-Learning-Resistant PUF Using Obfuscation-Feedback-Shift-Register. IEEE Trans. Circuits Syst. II Express Briefs 2022, 69, 4543–4547. [Google Scholar] [CrossRef]
  19. Fiskiran, A.; Lee, R. On-chip lookup tables for fast symmetric-key encryption. In Proceedings of the 2005 IEEE International Conference on Application-Specific Systems, Architecture Processors (ASAP’05), Samos, Greece, 23–25 July 2005; pp. 356–363. [Google Scholar] [CrossRef]
  20. Sutradhar, P.R.; Basu, K.; Dinakarrao, S.M.P.; Ganguly, A. An Ultra-efficient Look-up Table based Programmable Processing in Memory Architecture for Data Encryption. In Proceedings of the 2021 IEEE 39th International Conference on Computer Design (ICCD), Virtual Conference, 24–27 October 2021; pp. 252–259. [Google Scholar] [CrossRef]
  21. Han, Z.; Yasin, M.; Rajendran, J.J. Does logic locking work with EDA tools? In Proceedings of the 30th USENIX Security Symposium (USENIX Security 21); USENIX Association: San Francisco, CA, USA, 2021; pp. 1055–1072. [Google Scholar]
  22. Upadhyaya, D.; Gay, M.; Polian, I. LEDA: Locking Enabled Differential Analysis of Cryptographic Circuits. In Proceedings of the 2023 IEEE International Symposium on Hardware Oriented Security and Trust (HOST), San Jose, CA, USA, 1–4 May 2023; pp. 249–259. [Google Scholar] [CrossRef]
  23. Subramanyan, P.; Ray, S.; Malik, S. Evaluating the security of logic encryption algorithms. In Proceedings of the 2015 IEEE International Symposium on Hardware Oriented Security and Trust (HOST), Washington, DC, USA, 5–7 May 2015; pp. 137–143. [Google Scholar] [CrossRef]
  24. Shamsi, K.; Li, M.; Meade, T.; Zhao, Z.; Pan, D.Z.; Jin, Y. AppSAT: Approximately deobfuscating integrated circuits. In Proceedings of the 2017 IEEE International Symposium on Hardware Oriented Security and Trust (HOST), McLean, VA, USA, 1–5 May 2017; pp. 95–100. [Google Scholar] [CrossRef]
  25. Shamsi, K.; Pan, D.Z.; Jin, Y. IcySAT: Improved SAT-based Attacks on Cyclic Locked Circuits. In Proceedings of the 2019 IEEE/ACM International Conference on Computer-Aided Design (ICCAD), Westminster, CO, USA, 4–7 November 2019; pp. 1–7. [Google Scholar] [CrossRef]
  26. Yasin, M.; Mazumdar, B.; Rajendran, J.J.V.; Sinanoglu, O. SARLock: SAT Attack resistant logic locking. In Proceedings of the 2016 IEEE International Symposium on Hardware Oriented Security and Trust (HOST), McLean, VA, USA, 3–5 May 2016; pp. 236–241. [Google Scholar] [CrossRef]
  27. Yasin, M.; Rajendran, J.J.; Sinanoglu, O. Approximate Attacks. In Trustworthy Hardware Design: Combinational Logic Locking Techniques; Springer International Publishing: Cham, Switzerland, 2020; pp. 69–76. [Google Scholar] [CrossRef]
  28. Patnaik, S.; Rangarajan, N.; Knechtel, J.; Sinanoglu, O.; Rakheja, S. Spin-Orbit Torque Devices for Hardware Security: From Deterministic to Probabilistic Regime. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 2020, 39, 1591–1606. [Google Scholar] [CrossRef]
  29. Yue, M.; Tehranipoor, S. A Novel Probability-Based Logic-Locking Technique: ProbLock. Sensors 2021, 21, 8126. [Google Scholar] [CrossRef] [PubMed]
  30. Rangarajan, N.; Parthasarathy, A.; Kani, N.; Rakheja, S. Energy-Efficient Computing With Probabilistic Magnetic Bits—Performance Modeling and Comparison Against Probabilistic CMOS Logic. IEEE Trans. Magn. 2017, 53, 3401510. [Google Scholar] [CrossRef]
  31. Datta, S.; Salahuddin, S.; Behin-Aein, B. Non-volatile spin switch for Boolean and non-Boolean logic. Appl. Phys. Lett. 2012, 101, 252411. [Google Scholar] [CrossRef]
  32. Makarov, A.; Windbacher, T.; Sverdlov, V.; Selberherr, S. CMOS-compatible spintronic devices: A review. Semicond. Sci. Technol. 2016, 31, 113006. [Google Scholar] [CrossRef]
  33. Iyengar, A.S.; Vontela, D.; Reddy, I.; Ghosh, S.; Motaman, S.; Jang, J.w. Threshold Defined Camouflaged Gates in 65nm Technology for Reverse Engineering Protection. In Proceedings of the International Symposium on Low Power Electronics and Design; Association for Computing Machinery: New York, NY, USA, 2018; ISLPED ’18. [Google Scholar] [CrossRef]
  34. Brkic, S.; Ivanis, P.; Djordjevic, G.; Vasic, B. Symbolic analysis of faulty logic circuits in the presence of correlated gate failures. In Proceedings of the 2013 21st Telecommunications Forum Telfor (TELFOR), Belgrade, Serbia, 26–28 November 2013; pp. 369–372. [Google Scholar] [CrossRef]
  35. Qian, W.; Riedel, M.D.; Bazargan, K.; Lilja, D.J. Synthesizing Combinational Logic to Generate Probabilities: Theories and Algorithms. In Advanced Techniques in Logic Synthesis, Optimizations and Applications; Gulati, K., Ed.; Springer: New York, NY, USA, 2011; pp. 337–357. [Google Scholar] [CrossRef]
  36. Parker, K.; McCluskey, E. Probabilistic Treatment of General Combinational Networks. IEEE Trans. Comput. 1975, C-24, 668–670. [Google Scholar] [CrossRef]
  37. Martini, M.M. Improving Hardware Security. 2025. Available online: https://github.com/MassimoMikioMartini/Improving-Hardware-Security (accessed on 13 January 2026).
  38. Kumar Das, A. A Linting tool without a compiler in it. In Proceedings of the 2021 IEEE International Conference on Electronics, Computing and Communication Technologies (CONECCT), Bangalore, India, 9–11 July 2021; pp. 1–4. [Google Scholar] [CrossRef]
  39. Brglez, F.; Fujiwara, H. A neutral netlist of 10 combinational benchmark circuits and a targeted translator in FORTRAN. In Proceedings of the 1985 IEEE International Symposium on Circuits and Systems, Special Session on Recent Algorithms for Gate-Level ATPG with Fault Simulation and Their Performance Assessment, Kyoto, Japan, 5–7 June 1985. [Google Scholar]
  40. Brglez, F.; Bryan, D.; Kozminski, K. Combinational profiles of sequential benchmark circuits. In Proceedings of the 1989 IEEE International Symposium on Circuits and Systems (ISCAS), Portland, OR, USA, 8–11 May 1989; Volume 3, pp. 1929–1934. [Google Scholar] [CrossRef]
  41. Saxena, N.; Vemuri, R. Enhancing Output Corruption Through GSHE Switch Based Logic Encryption. In Proceedings of the 2024 37th International Conference on VLSI Design and 2024 23rd International Conference on Embedded Systems (VLSID), Kolkata, India, 6–10 January 2024; pp. 505–510. [Google Scholar] [CrossRef]
  42. Salehi, S.; DeMara, R.F. Energy and area analysis of a floating-point unit in 15 nm CMOS process technology. In Proceedings of the SoutheastCon 2015, Fort Lauderdale, FL, USA, 9–12 April 2015; pp. 1–5. [Google Scholar] [CrossRef]
  43. Chandra, S.S.; Kannan, R.J.; Balaji, B.S.; Veeramachaneni, S.; Noor Mahammad, S. Efficient design and analysis of secure CMOS logic through logic encryption. Sci. Rep. 2023, 13, 1145. [Google Scholar] [CrossRef] [PubMed]
  44. Lopez, K.; Rezaei, A. K-Gate Lock: Multi-Key Logic Locking Using Input Encoding Against Oracle-Guided Attacks. In Proceedings of the 30th Asia and South Pacific Design Automation Conference; ACM: New York, NY, USA, 2025; ASPDAC ’25; pp. 794–800. [Google Scholar] [CrossRef]
Figure 1. The IC manufacturing process, showing the chip design workflow.
Figure 1. The IC manufacturing process, showing the chip design workflow.
Electronics 15 01267 g001
Figure 2. (a) Side view of the GSHE Switch. (b) Frontal view of the GSHE Switch. (c) MUX view of the GSHE Switch.
Figure 2. (a) Side view of the GSHE Switch. (b) Frontal view of the GSHE Switch. (c) MUX view of the GSHE Switch.
Electronics 15 01267 g002
Figure 3. The DWM Device.
Figure 3. The DWM Device.
Electronics 15 01267 g003
Figure 4. The TVD Switch.
Figure 4. The TVD Switch.
Electronics 15 01267 g004
Figure 5. The MUX representation of the GSHE Switch.
Figure 5. The MUX representation of the GSHE Switch.
Electronics 15 01267 g005
Figure 6. The MUX inputs and outputs are visualized for the DWM Device.
Figure 6. The MUX inputs and outputs are visualized for the DWM Device.
Electronics 15 01267 g006
Figure 7. The MUX inputs and outputs are seen for the TVD Switch.
Figure 7. The MUX inputs and outputs are seen for the TVD Switch.
Electronics 15 01267 g007
Figure 8. Reproduction of Figure 6 from [4]. This shows the logic encryption approach on which our method is based.
Figure 8. Reproduction of Figure 6 from [4]. This shows the logic encryption approach on which our method is based.
Electronics 15 01267 g008
Figure 9. Our encryption method, closely mirroring the prior figure but omitting the Internal State Block.
Figure 9. Our encryption method, closely mirroring the prior figure but omitting the Internal State Block.
Electronics 15 01267 g009
Figure 10. This is the block diagram of our encryption method, allowing for a more digestible view and understanding.
Figure 10. This is the block diagram of our encryption method, allowing for a more digestible view and understanding.
Electronics 15 01267 g010
Table 1. The GSHE Switch, DWM Device, and TVD Switch key inputs.
Table 1. The GSHE Switch, DWM Device, and TVD Switch key inputs.
FunctionalityGSHE KeyDWM KeyTVD Key
a NAND bXX111111111000
a AND bXX111110110001
a NOR bXX111011011011
a OR bXX111010010010
a XOR bXX001111001101
a XNOR bXX001110000100
NOT aXX001011100N/A
BUF aXX001010N/AN/A
a AND NOT bXX101111N/AN/A
NOT a AND bXX101110N/AN/A
a OR NOT bXX101011N/AN/A
NOT a OR bXX101010N/AN/A
NOT bXX011111N/AN/A
BUF bXX011110N/AN/A
1 (True)XX011011N/AN/A
0 (False)XX011010N/AN/A
N/A means the device does not have this functionality.
Table 2. The GSHE Switch OCR values with standard deviation for all four types of tests.
Table 2. The GSHE Switch OCR values with standard deviation for all four types of tests.
BenchmarkHighest Probability OCR (%)Lowest Probability OCR (%)50/50 Probability OCR (%)Random Probability OCR (%)
c43237.39 σ 4.9239.05 σ 5.8930.23 σ 0.5336.05 σ 9.67
c49935.06 σ 0.1955.46 σ 0.1548.45 σ 3.1044.24 σ 3.19
c88037.30 σ 2.8434.89 σ 0.1737.89 σ 2.2936.75 σ 2.27
c135552.08 σ 0.0955.50 σ 0.1249.17 σ 2.4140.82 σ 3.43
c190849.61 σ 4.1639.19 σ 1.7950.66 σ 2.8837.64 σ 3.01
c267035.00 σ 0.4135.67 σ 1.1836.22 σ 1.3135.82 σ 1.64
c354037.15 σ 2.8538.53 σ 3.0037.89 σ 2.6439.94 σ 2.51
c531535.35 σ 0.3836.24 σ 0.9535.29 σ 0.6436.14 σ 0.74
c628848.34 σ 1.1044.13 σ 2.6845.08 σ 2.7945.59 σ 1.85
c755236.89 σ 1.4238.66 σ 1.7136.96 σ 1.4336.87 σ 1.21
s1320736.55 σ 1.0034.95 σ 0.3534.76 σ 0.2335.81 σ 0.86
s3858451.54 σ 1.0436.15 σ 0.4536.46 σ 0.6336.77 σ 1.06
Average 41.02 σ 1.7040.70 σ 1.5339.92 σ 1.7438.54 σ 2.62
Table 3. The DWM Switch OCR values with standard deviation for all four types of tests.
Table 3. The DWM Switch OCR values with standard deviation for all four types of tests.
BenchmarkHighest Probability OCR (%)Lowest Probability OCR (%)50/50 Probability OCR (%)Random Probability OCR (%)
c43244.76 σ 6.6535.07 σ 10.8529.94 σ 0.1835.49 σ 6.66
c49935.03 σ 0.1757.52 σ 0.1351.84 σ 5.7647.22 σ 4.37
c88037.71 σ 2.0934.84 σ 0.2038.15 σ 2.1237.14 σ 2.98
c135556.32 σ 0.6157.47 σ 0.0950.17 σ 4.5441.69 σ 4.82
c190846.22 σ 2.9739.02 σ 1.5147.92 σ 2.9937.35 σ 2.03
c267035.17 σ 0.5035.91 σ 1.0336.48 σ 0.8636.68 σ 2.32
c354040.84 σ 4.2235.41 σ 2.3439.30 σ 2.0340.22 σ 2.19
c531535.33 σ 0.3936.44 σ 0.8635.97 σ 0.7835.73 σ 0.75
c628845.00 σ 0.9343.34 σ 2.2845.18 σ 1.4146.95 σ 2.44
c755237.01 σ 1.1236.82 σ 0.9737.18 σ 1.0036.87 σ 1.07
s1320735.79 σ 1.0734.89 σ 0.3234.75 σ 0.2235.40 σ 0.71
s3858436.44 σ 1.4436.25 σ 0.5437.36 σ 0.3337.76 σ 1.16
Average 40.47 σ 1.8540.25 σ 1.8740.35 σ 1.8539.04 σ 2.63
Table 4. The TVD Switch OCR values with standard deviation for all four types of tests.
Table 4. The TVD Switch OCR values with standard deviation for all four types of tests.
BenchmarkHighest Probability OCR (%)Lowest Probability OCR (%)50/50 Probability OCR (%)Random Probability OCR (%)
c43244.74 σ 10.6743.04 σ 15.7629.89 σ 0.1134.98 σ 8.05
c49934.89 σ 0.2055.64 σ 0.1650.07 σ 3.4345.53 σ 5.69
c88037.72 σ 1.8134.84 σ 0.2336.98 σ 2.0036.03 σ 1.79
c135558.00 σ 0.6855.58 σ 0.1751.78 σ 4.6043.37 σ 3.14
c190845.00 σ 3.9137.11 σ 2.1246.42 σ 2.4438.14 σ 2.37
c267035.09 σ 0.4935.47 σ 0.8235.82 σ 1.1636.37 σ 1.64
c354040.23 σ 4.3937.30 σ 4.1036.18 σ 1.5339.73 σ 4.06
c531535.25 σ 0.3936.46 σ 0.8835.40 σ 0.5336.05 σ 1.11
c628844.36 σ 0.7943.97 σ 2.7145.35 σ 1.6347.24 σ 1.96
c755236.70 σ 1.1637.25 σ 1.3036.68 σ 0.8736.40 σ 0.75
s1320735.59 σ 1.3234.93 σ 0.3234.84 σ 0.1835.34 σ 0.76
s3858437.51 σ 1.2435.05 σ 0.4735.24 σ 0.8337.87 σ 1.16
Average 40.42 σ 2.2540.55 σ 2.4239.55 σ 1.6138.92 σ 2.71
Table 5. The GSHE Switch’s best times for benchmarks, demonstrating the strength of the GSHE Switch with highest probability gate selection. Each use 45 replaced gates and 414 keys.
Table 5. The GSHE Switch’s best times for benchmarks, demonstrating the strength of the GSHE Switch with highest probability gate selection. Each use 45 replaced gates and 414 keys.
BenchmarkHighest ProbabilityLowest Probability50/50 ProbabilityRandom Probability
SAT Time (s) Iteration Count SAT Time (s) Iteration Count SAT Time (s) Iteration Count SAT Time (s) Iteration Count
c432>48 h>7000275.84 σ 55.44124.10 σ 9.96>48 h>400048.93 σ 12.3793.90 σ 4.98
c499>48 h>150179.08 σ 36.97125.10 σ 16.82413.80 σ 124.45134.40 σ 20.061955.87 σ 1050.35129.20 σ 24.19
c880>48 h>11,00090.59 σ 17.9683.50 σ 7.6693.20 σ 7.9691.90 σ 10.0589.85 σ 17.0175.70 σ 7.39
c1355>48 h>7000172.55 σ 45.83118.80 σ 22.0752.75 σ 14.7292.80 σ 6.41573.71 σ 510.11175.50 σ 165.40
c1908>48 h>9000445.98 σ 44.25174.10 σ 16.40245.38 σ 43.13173.00 σ 25.2977.82 σ 17.9270.80 σ 10.80
c2670>48 h>8500294.10 σ 35.32123.80 σ 12.43>48 h>5000766.76 σ 1594.01467.00 σ 772.55
c3540>48 h>700016.96 σ 3.7069.50 σ 7.1569.40 σ 19.9273.00 σ 13.2233.41 σ 3.2176.80 σ 5.96
c5315>48 h>800033.19 σ 10.3392.80 σ 10.7776.11 σ 23.5592.10 σ 13.1423.85 σ 7.4968.70 σ 10.13
c6288>48 h>25>48 h>10>48 h>20>48 h>20
c7552207.20 σ 29.41493.50 σ 36.29173.64 σ 24.57137.40 σ 11.13114.44 σ 25.68121.10 σ 10.7138.04 σ 8.8194.90 σ 16.07
s13207>48 h>2500>48 h>2200>48 h>2100>48 h>3000
s38584>48 h>1700>48 h>1000>48 h>1100>48 h>1100
Table 6. The DWM Device’s best times for benchmarks. Each use 45 replaced gates and 189 keys.
Table 6. The DWM Device’s best times for benchmarks. Each use 45 replaced gates and 189 keys.
BenchmarkHighest ProbabilityLowest Probability50/50 ProbabilityRandom Probability
SAT Time (s) Iteration Count SAT Time (s) Iteration Count SAT Time (s) Iteration Count SAT Time (s) Iteration Count
c432>48 h>31,0005.22 σ 1.9869.40 σ 8.9211.41 σ 4.4282.30 σ 5.782.44 σ 0.5246.20 σ 5.51
c499>48 h>13,00013.72 σ 4.1167.70 σ 6.936.06 σ 2.9072.60 σ 20.8140.16 σ 23.4684.10 σ 19.35
c8802.03 σ 0.5243.10 σ 5.342.65 σ 0.7140.50 σ 7.404.66 σ 1.0450.00 σ 9.083.46 σ 0.9842.70 σ 8.45
c1355>48 h>12,0008.44 σ 3.6263.80 σ 15.862.20 σ 0.2950.10 σ 1.7312.74 σ 7.3871.70 σ 21.04
c1908>48 h>21,00014.15 σ 10.9195.30 σ 52.8013.74 σ 7.92128.10 σ 44.524.21 σ 2.1930.90 σ 7.64
c26707 h σ 0.5 h3345.30 σ 157.047.67 σ 1.7762.40 σ 8.50372.60 σ 142.62586.80 σ 130.3467.34 σ 113.89340.70 σ 463.92
c35404.57 σ 1.7079.00 σ 16.112.03 σ 0.3239.50 σ 5.502.75 σ 0.5035.80 σ 3.222.95 σ 0.4840.90 σ 4.51
c531523.60 σ 6.84228.80 σ 42.482.60 σ 0.3342.90 σ 4.183.18 σ 0.3144.40 σ 2.673.44 σ 0.7436.50 σ 4.74
c62889.7 h σ 3.6 h19.7 σ 3.27>48 h>5>48 h>10>48 h>5
c755288.00 σ 27.43401.60 σ 78.563.49 σ 0.7954.70 σ 6.953.62 σ 0.7152.10 σ 6.902.33 σ 0.5133.50 σ 5.25
s1320710.57 σ 2.73171.00 σ 17.325.04 σ 1.2141.55 σ 7.603.55 σ 1.40135.80 σ 5.652.96 σ 1.8586.70 σ 6.9
s38584>48 h>1900>48 h>1500>48 h>1200>48 h>1000
Table 7. The TVD Switch’s best times for benchmarks. Each use 45 replaced gates and 144 keys.
Table 7. The TVD Switch’s best times for benchmarks. Each use 45 replaced gates and 144 keys.
BenchmarkHighest ProbabilityLowest Probability50/50 ProbabilityRandom Probability
SAT Time (s) Iteration Count SAT Time (s) Iteration Count SAT Time (s) Iteration Count SAT Time (s) Iteration Count
c4322.12 σ 0.9840.40 σ 7.653.82 σ 0.7757.30 σ 9.417.98 σ 1.8781.60 σ 13.132.70 σ 0.8447.60 σ 6.42
c499>48 h>13,0009.18 σ 4.0364.00 σ 15.7810.55 σ 3.8378.70 σ 18.7329.21 σ 12.8983.60 σ 16.98
c8801.01 σ 0.2538.50 σ 7.914.12 σ 0.7847.60 σ 5.023.85 σ 0.8145.70 σ 7.303.08 σ 0.6640.20 σ 6.80
c13552.55 σ 0.4163.30 σ 8.625.37 σ 2.3553.10 σ 10.342.43 σ 0.8053.60 σ 3.504.94 σ 2.2452.70 σ 15.14
c1908>48 h>21,0004.85 σ 1.2562.70 σ 12.535.81 σ 1.2572.00 σ 13.472.44 σ 1.2732.40 σ 13.24
c26704.25 h σ 0.25 h2462.70 σ 149.177.67 σ 1.7762.40 σ 8.504.86 σ 0.8956.60 σ 8.004.57 σ 2.1055.60 σ 22.71
c35405.38 σ 1.6389.40 σ 19.551.51 σ 0.4535.00 σ 2.212.66 σ 0.2933.70 σ 2.313.80 σ 0.9441.00 σ 4.45
c531523.98 σ 3.64225.70 σ 19.792.24 σ 0.3643.40 σ 4.402.90 σ 0.3842.10 σ 3.312.33 σ 0.3332.60 σ 3.03
c6288>48 h>15>48 h>5>48 h>5>48 h>5
c755259.99 σ 19.60374.30 σ 70.504.04 σ 0.5554.30 σ 3.922.54 σ 0.2446.40 σ 2.912.53 σ 1.6239.90 σ 17.19
s1320774.45 σ 10.131178.01 σ 121.327.11 σ 4.5649.43 σ 8.434.65 σ 2.82176.72 σ 7.192.38 σ 2.3297.74 σ 5.1
s38584>48 h>1100>48 h>1700>48 h>2200>48 h>1200
Table 8. AppSAT results for GSHE Switch, showing the OCR for the provided key.
Table 8. AppSAT results for GSHE Switch, showing the OCR for the provided key.
BenchmarkHighest ProbabilityLowest Probability50/50 ProbabilityRandom Probability
Highest OCR (%) Pass/Fail Highest OCR (%) Pass/Fail Highest OCR (%) Pass/Fail Highest OCR (%) Pass/Fail
c43272.20Pass77.16Pass60.66Pass34.49Pass
c499TIMEOUTPass68.27Pass59.29Pass59.49Pass
c88053.85Pass50.13Pass56.86Pass8.73Pass
c135550.13Pass61.43Pass56.24Pass57.56Pass
c190840.12Pass51.62Pass38.92Pass51.42Pass
c267051.06Pass53.00Pass28.15Pass51.39Pass
c354014.05Pass53.65Pass50.94Pass30.09Pass
c53152.83Pass6.52Pass51.69Pass50.65Pass
c6288TIMEOUTPassTIMEOUTPass55.97Pass55.65Pass
c755252.18Pass12.48Pass7.65Pass9.77Pass
s1320749.65Pass50.09Pass50.00Pass51.97Pass
s3858451.23Pass49.91Pass50.24Pass48.71Pass
Table 9. PPA values of 15 nm [42] and 45 nm [43] CMOS gates compared to the PPA values of the GSHE Switch [28].
Table 9. PPA values of 15 nm [42] and 45 nm [43] CMOS gates compared to the PPA values of the GSHE Switch [28].
TypePower ( μ W )Delay (ns)Area ( μ m 2 )
15 nm CMOS AND0.6340N/A0.4915
45 nm CMOS OR0.27880.04203.6200
45 nm CMOS XOR0.47680.05007.2000
MUX-Based GSHE0.26731.83000.0290
N/A refers to the reference not having this information.
Table 10. SAT Time comparison of our highest probability and lowest probability using GSHE Switches and recent works from Yue and Tehranipoor [29] and Lopez and Rezaei [44] as well as the slightly older work from Yasin et al. [26].
Table 10. SAT Time comparison of our highest probability and lowest probability using GSHE Switches and recent works from Yue and Tehranipoor [29] and Lopez and Rezaei [44] as well as the slightly older work from Yasin et al. [26].
BenchmarkHighest Probability w/ GSHE Switch SAT Time (s)K-Gate Locking RANE w/ Scalable Keys SAT Time [44] (s)ProbLock SAT Time [29] (s)SARLock w/ 14 Keys SAT Time [26] (s)
c432>48 h0.140.10N/A
c499>48 h0.450.23N/A
c880>48 h0.221.66N/A
c1355>48 h3.08>48 hN/A
c1908>48 h0.472.04N/A
c2670>48 hN/A145.80N/A
c3540>48 h0.528.29N/A
c5315>48 h3.4694.024.41 h
c6288>48 h2.771.23N/A
c7552207.201.32674.54.05 h
s13207>48 hN/AN/AN/A
s38584>48 hN/AN/AN/A
N/A refers to the reference not having tests on the benchmark.
Table 11. OCR comparison of our Highest Probability and Lowest Probability using GSHE Switches and recent OCR demonstrated from Saxena et al. [4].
Table 11. OCR comparison of our Highest Probability and Lowest Probability using GSHE Switches and recent OCR demonstrated from Saxena et al. [4].
BenchmarkHighest Probability w/ GSHE Switch OCR (%)Lowest Probability w/ GSHE Switch OCR (%)Hybrid Shielding Sensitive Nodes [4] OCR (%)Hybrid Shielding Stable Nodes [4] OCR (%)
c43237.3939.0540.7631.92
c49935.0655.464.6649.61
c88037.3034.8921.0538.13
c135552.0855.5025.7830.20
c190849.6139.1911.7428.37
c267035.0035.67N/AN/A
c354037.1538.53N/AN/A
c531535.3536.2415.6519.71
c628848.3444.1340.2934.89
c755236.8938.6613.9915.62
s1320736.5534.95N/AN/A
s3858451.5436.15N/AN/A
Average 41.0240.7021.7931.06
N/A refers to the reference not having tests on the benchmark.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Martini, M.M.; Saxena, N. Improving Hardware Security Through Logic-Probability- Guided Gate Replacement Using Emerging Devices. Electronics 2026, 15, 1267. https://doi.org/10.3390/electronics15061267

AMA Style

Martini MM, Saxena N. Improving Hardware Security Through Logic-Probability- Guided Gate Replacement Using Emerging Devices. Electronics. 2026; 15(6):1267. https://doi.org/10.3390/electronics15061267

Chicago/Turabian Style

Martini, Massimo Mikio, and Nikhil Saxena. 2026. "Improving Hardware Security Through Logic-Probability- Guided Gate Replacement Using Emerging Devices" Electronics 15, no. 6: 1267. https://doi.org/10.3390/electronics15061267

APA Style

Martini, M. M., & Saxena, N. (2026). Improving Hardware Security Through Logic-Probability- Guided Gate Replacement Using Emerging Devices. Electronics, 15(6), 1267. https://doi.org/10.3390/electronics15061267

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop