Attribute-based encryption lets a data owner lock a file under a policy such as "cardiologist AND hospital-A". Only users whose credentials satisfy the policy can open it. The catch is cost. Decryption needs bilinear pairings, an expensive elliptic-curve operation, and their number grows with the size of the policy. A large literature therefore proposes computation offloading. A nearby edge server or cloud does most of the pairing work with a partial key, and the device finishes with a cheap final step. These papers justify offloading by battery life on sensors and wearables. Yet the file contains no measurement of energy on a real constrained device. The closest testbed used a smartphone as its "IoT device" and reported only seconds of processing time.
This note proposes to measure, on real microcontrollers with real radios, where offloaded decryption stops paying for itself in energy. It then asks whether the operation-count analysis these papers rely on predicts that point. The concern is concrete. Once work is offloaded, the device's cost is no longer pairings. It becomes radio wake-ups, transmission, time spent listening while the helper computes, retransmissions, and the cost of checking the helper's answer. None of these appear in a count of pairings and exponentiations.
Core Claim
We claim the energy benefit of offloaded attribute-based decryption on constrained devices is set mainly by two things: radio behavior while the device waits, and verification cost. The cryptographic operation count matters much less. As a result, the attribute count at which offloading begins to win can differ substantially from the value predicted by counting operations.
We will test this claim by building a measured energy map with three axes: device class, radio, and policy size. We will then check whether a simple analytical energy model reproduces that map.
The analytical model is deliberately the one a reviewer would write down. Local decryption energy is
$$E_{loc}(N) = \sum_k n_k(N)\, e_k,$$
where $N$ is the number of attributes, $n_k(N)$ is how many times the device performs operation type $k$ (a pairing, an exponentiation, a hash), and $e_k$ is the measured energy of one such operation on that device.
Offloaded energy is
$$E_{off}(N) = E_{tx}(b_{up}) + E_{rx}(b_{down}) + P_{wait}\, T_{helper}(N) + E_{final} + E_{verify},$$
where:
- $b_{up}$ and $b_{down}$ are the bytes the device sends and receives;
- $E_{tx}$ and $E_{rx}$ are the radio energies for those bytes;
- $P_{wait}$ is the device's power draw while it waits for the helper;
- $T_{helper}(N)$ is the helper's compute time;
- $E_{final}$ is the device's final decryption step;
- $E_{verify}$ is the cost of checking the helper's output.
The predicted crossover $N^*$ is where the two curves meet. The research question is whether the measured $N^*$ matches the predicted one.
The waiting term is where we expect the model to fail. Fine-Grained Access Control System Based on Outsourced Attribute-Based Encryption reports cloud-side time "exceeding 1000ms for 100 attributes". It also reports a flat user cost of three pairings and one exponentiation. If the device's radio must stay awake for that second, the helper's linear cost reappears on the device's battery. Whether it does depends on the radio protocol's sleep behavior, which is exactly what operation counts leave out.
Relation to Prior Work
The motivating evidence comes from the one physical testbed in the file. Reconfigurable Security: Edge Computing-based Framework for IoT offloads GSPW attribute-based encryption and BBS group signatures from an ASUS ZenFone 2 to a laptop acting as a Security Agent. It cuts device processing time from about 6.4 s to 1.06 s. Its authors state that 8-bit microcontrollers remain untested, and they report no energy figures. We keep their comparison but change what is measured, moving from time to Joules per verified decryption, and move it onto hardware where the premise actually applies.
A second group supplies the schemes we will measure. All of them report asymptotic operation counts or desktop timings only:
- Fine-Grained Access Control System Based on Outsourced Attribute-Based Encryption splits the key and leaves the user three pairings and one exponentiation, timed with the PBC library on one Linux machine.
- Fully Secure Ciphertext-Policy Attribute Based Encryption with Security Mediator has a mediator do all pairings and leaves the client a single exponentiation and division. It uses composite-order groups, which are costly.
- A New Encrypted Data Switching Protocol: Bridging IBE and ABE Without Loss of Data Confidentiality converts the ciphertext into a simpler identity-based form at the edge.
- An Efficient Encryption Scheme with Verifiable Outsourced Decryption in Mobile Cloud Computing adds a hash-based check of the cloud's work. It was evaluated with
cpabe-toolkiton PC hardware and reports roughly 85% encryption-time reduction for 1 GB messages.
These four schemes span the design space: three device-side pairings, one exponentiation, a format switch, and a verified transformation. We reuse the schemes as published. We contribute no new cryptography.
Two further papers constrain the design:
- Expressive Ciphertext-Policy Attribute-Based Encryption with Fast Decryption shows that even fast non-outsourced decryption needs exactly three pairings. This matters because a three-pairing local scheme is a stronger "no offloading" baseline than textbook decryption, which grows with policy size.
- How to Delegate and Verify in Public: Verifiable Computation from Attribute-based Encryption notes that attribute-based verification carries real overhead. That is why verification cost enters the model as its own term rather than being assumed free.
Finally, Toward Edge-Assisted Internet of Things: From Security and Efficiency Perspectives names the trade-off between power, radio throughput and security as unvalidated. We treat that statement as the question this note answers.
Research Program
We will build a measurement testbed with three tiers of device:
- an 8-bit microcontroller, the class Hsu et al. flag as untested;
- a low-power 32-bit microcontroller of the class used in sensor motes;
- a smartphone, which lets us reproduce the ZenFone-class setting as a calibration point.
Each device is paired with an edge helper over three links: Bluetooth Low Energy, a low-rate IEEE 802.15.4 radio, and Wi-Fi. Device current is sampled through a shunt at high rate and synchronized with protocol event markers. This lets every Joule be attributed to one of three things: a cryptographic operation, a radio state (transmit, receive, idle-listen, sleep), or the waiting interval.
The pairing arithmetic on the microcontrollers will be a port of the same curve parameters used in the desktop evaluations. For AC-FEH-style fog outsourcing in An Efficient Access Control Scheme With Outsourcing and Attribute Revocation for Fog-Enabled E-Health, this is the 128-bit Barreto-Naehrig curve, so that the counts reported by those papers apply directly.
The program has three stages.
In the first stage, we measure the per-operation energies $e_k$ and the radio energies on each device. From these we fill in the model and write down predicted crossovers $N^*$ before running any end-to-end experiment. These predictions are fixed in advance, so the later comparison cannot be tuned.
In the second stage, we run each outsourced scheme end to end. Policy size ranges from 1 to 100 attributes, matching the range in Jin Li et al. Link conditions cover clean channels, controlled packet loss, and helper queueing under concurrent requests. For each point we measure the device's energy per verified decryption, the median and 99th-percentile latency, and the measured crossover.
In the third stage, we drop the honest-but-curious assumption. Some helpers are made lazy: they return a stale or random transformation. We then measure the full cost of detecting this and falling back to local decryption, because that fallback is what a real deployment would pay.
The output is a published map of measured crossovers and a quantified breakdown of the model's prediction error by term. In practical terms, a system designer would learn when offloading helps on their device and radio, and which part of the textbook argument misleads.
Baselines
The naive reference point is full local decryption on the device with no helper. We use standard ciphertext-policy decryption, whose pairing count grows with the attributes used. This corresponds to the 6.4 s on-device condition in Reconfigurable Security: Edge Computing-based Framework for IoT. It is run on the same device, curve, and power instrumentation as every other condition.
The stronger non-offloading baseline is the constant three-pairing scheme of Expressive Ciphertext-Policy Attribute-Based Encryption with Fast Decryption. It removes the growth in $N$ without any network. Any offloaded scheme must beat it in energy, not merely beat textbook decryption. Otherwise the answer is to change the scheme, not to add a helper.
The strongest existing offloading result on this question is the Hsu et al. testbed. It reports a device processing-time reduction of 71.46% to 83.42%, with GSPW decryption going from about 6.4 s to 1.06 s, and a success rate above 80% under high traffic. No reported result on Lacuna gives device energy for any outsourced attribute-based scheme. We will therefore first reproduce Hsu et al.'s time reduction on the smartphone tier. We treat it as beaten, or overturned, only if the energy reduction on the microcontroller tiers differs from their time reduction by more than our measurement error. That difference is what their metric could not show.
The offloaded schemes are compared against each other using the same helper hardware, the same link, and the same policy sets. Each gets the same radio tuning budget: connection interval, sleep policy, and packet size are swept identically for every scheme. The four schemes are Jin Li et al.'s key splitting, the Security Mediator scheme, the attribute-to-identity switching protocol, and Jing Li et al.'s verifiable variant.
The key ablation isolates the waiting term. We run each offloaded scheme twice. In one run the device's radio stays awake during helper computation. In the other the device sleeps and is woken by a scheduled connection event. The gap between the two runs, compared with the model's $P_{wait} T_{helper}$ term, tells us whether idle radio time is the dominant hidden cost.
A second ablation isolates verification by running Jing Li et al.'s scheme with its hash check both enabled and disabled.
Why not just…?
Why not just compute the crossover from operation counts and datasheet power figures, without building a testbed? This is the most serious alternative, and the proposal is designed so it can win. The predicted crossovers are fixed before any measurement. If the count-plus-datasheet model lands within our measurement error of the measured crossover on every device and radio, we will report that. The field would then gain a validated cheap model and would not need testbeds. Our hypothesis that it fails rests on two mechanisms the model omits. The first is idle-listening energy while the helper spends more than a second at 100 attributes, per Fine-Grained Access Control System Based on Outsourced Attribute-Based Encryption. The second is retransmissions under loss. The ablation measures both directly.
Why not just run the fast three-pairing scheme locally on a modern 32-bit microcontroller? On capable 32-bit parts this may well be the correct answer for small policies, and it is a baseline for that reason. Expressive Ciphertext-Policy Attribute-Based Encryption with Fast Decryption fixes the local cost at three pairings regardless of policy size. The only question is how many Joules three pairings cost compared with one radio round trip. That question has no reported answer on Lacuna, and the first stage of our measurements supplies it. If local three-pairing decryption beats every offloaded scheme on the 32-bit tier, the conclusion is that offloading is justified only on 8-bit devices, or not at all.
Why not just encrypt with AES and let a trusted gateway enforce access? On energy alone this likely wins, since the device does one symmetric decryption and one short exchange. We include it as a reference condition for that reason. What it gives up is the untrusted-helper model and fine-grained revocation. Toward Edge-Assisted Internet of Things: From Security and Efficiency Perspectives and the fog e-health scheme argue this loss matters. We therefore report the energy premium of attribute-based offloading over the AES-gateway design as the measured price of removing trust in the gateway. We do not claim offloading beats it.
Proposed Experiments and Decisive Checks
The workload grid crosses three factors:
- device tiers: 8-bit, 32-bit, and smartphone;
- radios: BLE, 802.15.4, and Wi-Fi;
- policy sizes: 1, 5, 10, 25, 50, and 100 attributes.
We also include the ten-level, one-hundred-leaf policy from An Efficient Encryption Scheme with Verifiable Outsourced Decryption in Mobile Cloud Computing, so that results connect to its reported setting. Link conditions are clean, 5% loss, and 20% loss, with helper load from one to many concurrent devices. The primary metric is device Joules per verified decryption. Secondary metrics are median and tail latency, the measured crossover $N^*$, and, under lazy helpers, the detection rate together with the energy of detection plus fallback.
Three checks decide the claim:
- Model accuracy. We compare the model's pre-registered crossover with the measured one per configuration. If the model error is within measurement noise everywhere, the core claim is false and the validated model becomes the contribution.
- Wait-versus-sleep ablation. This must account for most of the model error in cases where the model is wrong. If it does not, the hidden cost lies elsewhere, for example in retransmission or wake-up overhead, and we report which term it is.
- Smartphone calibration. The smartphone tier must reproduce a time reduction consistent with Hsu et al.'s 71.46–83.42%. If it does not, our implementation, not their conclusion, is suspect, and the microcontroller results cannot be trusted until the discrepancy is resolved.
References
- Fine-Grained Access Control System Based on Outsourced Attribute-Based Encryption
- Reconfigurable Security: Edge-Computing-Based Framework for IoT
- Fully Secure Ciphertext-Policy Attribute Based Encryption with Security Mediator
- A New Encrypted Data Switching Protocol: Bridging IBE and ABE Without Loss of Data Confidentiality
- An efficient encryption scheme with verifiable outsourced decryption in mobile cloud computing
- Expressive Ciphertext-Policy Attribute-Based Encryption with Fast Decryption
- How to Delegate and Verify in Public: Verifiable Computation from Attribute-Based Encryption
- Toward Edge-Assisted Internet of Things: From Security and Efficiency Perspectives
- An Efficient Access Control Scheme With Outsourcing and Attribute Revocation for Fog-Enabled E-Health