Abstract
The growing volume of electronic health records (EHRs) has made cloud-assisted storage increasingly important, but outsourced records require both encrypted storage and controlled retrieval. Attribute-based keyword searchable encryption (ABKS) combines search with fine-grained authorization; nevertheless, many existing constructions provide only restricted Boolean queries, particularly when negation is involved. This paper presents a ciphertext-policy ABKS search layer for EHR sharing. The proposed construction operates over a fixed application dictionary and assumes a non-colluding honest-but-curious cloud server. Each record is represented by one signed literal per dictionary term, where a positive literal denotes presence and a negated literal denotes absence. Before query evaluation, Boolean formulas involving AND, OR, and NOT are converted into negation normal form using De Morgan’s laws, so that NOT appears only at leaf nodes. The resulting query is then evaluated as a monotone threshold tree. An authorized user can generate a valid query token only when the user’s multi-valued attribute vector matches the policy selected by the data owner. Keyed pseudorandom tags hide literal and policy values from the cloud server while enabling efficient component lookup. We define a selective chosen-keyword security model, state the resulting leakage, and give a game-based proof under the decisional bilinear Diffie–Hellman and pseudorandom-function assumptions. Theoretical and implementation-based comparisons show that the pairing-dominant costs grow linearly with the attribute and dictionary sizes. The construction therefore improves Boolean expressiveness while retaining practical search-layer overhead under the stated assumptions.
1. Introduction
As requirements for scalable storage and high-efficiency data processing continue to rise, cloud-based platforms have gradually become a common choice for data outsourcing by organizations and individual users. In the medical field, Electronic Health Records (EHRs), encompassing highly confidential patient data, have increasingly relied on third-party cloud platforms for storage and management. To defend against potential attacks from semi-trusted cloud servers and to ensure data privacy, data owners typically encrypt EHRs before outsourcing. However, such encryption renders traditional plaintext search algorithms ineffective, significantly limiting the flexibility of data retrieval.
Encrypted search allows users to query outsourced encrypted data while the cloud platform conducts comparison without obtaining the original plaintext content. Existing encrypted-search methods are usually classified into symmetric-key searchable encryption (SSE) [1] and public-key keyword search (PEKS) [2]. SSE usually provides high efficiency in single-owner settings, but its symmetric-key nature makes it less convenient for public cloud sharing scenarios involving multiple independent users. In PEKS, the data owner protects outsourced records with a public encryption key, whereas keyword trapdoors are generated solely by users who possess the matched secret key. These trapdoors are submitted to the cloud server for ciphertext-level keyword matching, which makes PEKS suitable for non-interactive encrypted data sharing [3].
Attribute-Based Keyword Searchable Encryption (ABKS) further combines searchable encryption with attribute-based authorization, making it useful for medical cloud systems with different access privileges. Under CP-ABKS, the data owner associates an access policy with each searchable ciphertext. As a result, the cloud-side matching process succeeds only for a requester whose attribute set conforms to the policy associated with the ciphertext [4]. Prior to outsourcing health record files, the record owner applies cryptographic protection and creates queryable index entries under the specified authorization rule. For each retrieval request, the requester derives a search trapdoor from the chosen terms and the secret key. The cloud server returns matching encrypted records only after both keyword matching and attribute-based authorization succeed.
However, existing studies still have several limitations. Many early encrypted-search schemes mainly support single-keyword or limited keyword search [5], which may force users to obtain many irrelevant ciphertexts and then filter them locally. Although some multi-keyword searchable encryption schemes support conjunction or disjunction, their query expressiveness is still insufficient for complex retrieval requirements. Boolean keyword search provides a more flexible way to describe users’ search intentions by allowing logical expressions over multiple keywords. Nevertheless, many existing ABKS schemes supporting Boolean queries do not sufficiently consider the NOT operator. In practical medical retrieval, negation is also important. For example, Figure 1a shows an EHR query related to dietary intervention for diabetes while excluding drug therapy. Figure 1b describes a lung cancer treatment query that excludes chemotherapy and radiotherapy.
Figure 1.
Illustrative examples of Boolean keyword queries.
To address the above limitations, this work constructs a CP-ABKS scheme for secure and expressive EHR retrieval. The main contributions are listed below:
- We design a Boolean keyword search mechanism based on signed literals over a fixed application dictionary, where positive and negated literals represent keyword presence and absence, respectively. Boolean queries involving AND, OR, and NOT are first converted into negation normal form, with NOT restricted to leaf nodes, and are then evaluated using a threshold tree.
- Search permission is controlled according to the attribute set owned by each requester. A query can be processed only after the requester’s attributes conform to the policy defined by the data owner, thereby preventing unauthorized access to outsourced ciphertext records.
- A security framework over prime-order bilinear groups is formulated for the proposed construction. Under this framework, the proof shows that the scheme achieves selective chosen-keyword security and prevents a semi-trusted cloud server from carrying out effective keyword-guessing inference.
- We assess the scheme from the perspectives of supported functionality, theoretical overhead, and measured execution time. The comparison with representative ABKS constructions indicates that the proposed method preserves expressive Boolean retrieval while keeping computation and storage requirements at a practical level.
After the introduction, the subsequent parts are arranged below. Section 2 summarizes prior works related to searchable encryption and ABKS. Section 3 introduces the bilinear-map and access-structure preliminaries used in the construction. Section 4 defines the system architecture and the algorithmic interface. Section 5 describes the concrete algorithms and analyzes their correctness. Section 6 gives the security proof. Section 7 reports the functional comparison, theoretical overhead, and experimental results. Section 8 summarizes the main findings of this work.
2. Related Work
Encrypted search has become an important technique for querying protected data without exposing plaintext content. In early public-key encrypted-search systems, the data owner protects keyword-related information with a public key, whereas an authorized requester uses the secret key to produce a query token for matching encrypted records [2,6,7,8]. These works provide an important foundation for non-interactive encrypted retrieval in public cloud environments. However, their original designs mainly focus on basic keyword matching and do not directly address fine-grained user authorization. To enrich query expressiveness, subsequent studies introduced conjunctive search, multi-keyword retrieval, and predicate-based search mechanisms [9,10,11,12]. These methods improve the flexibility of encrypted search, but search authorization is generally not tightly bound to user attributes. For medical cloud applications, this limitation is significant because different doctors, departments, and healthcare organizations may have different access privileges for the same type of EHR data.
ABKS places encrypted keyword retrieval under an attribute-governed authorization mechanism. After Zheng et al. introduced this notion [13], later studies explored several directions, including finer authorization control, richer policy descriptions, and stronger protection against keyword-guessing attacks [14,15,16,17]. In such systems, search capability is not granted merely by knowing a keyword; instead, the requester must hold attribute credentials that meet the policy requirement. This property is important for cloud-based EHR sharing because knowledge of partial keyword information should not allow an unauthorized party to locate sensitive medical records. However, a considerable number of ABKS schemes still focus on single-keyword search or support only restricted multi-keyword queries. Although policy-oriented and multi-keyword ABKS constructions improve retrieval coverage [18], their query logic is commonly limited to subset matching, simple conjunction, or other narrow expression forms. Therefore, these schemes are still insufficient for medical retrieval tasks that require flexible and complex search conditions.
Boolean keyword search provides a more expressive way to formulate encrypted queries. By using logical operators, users can describe retrieval intentions more precisely than with independent keywords. Several ABKS schemes have attempted to introduce Boolean expressions, access trees, LSSS matrices, hybrid query structures, ranked retrieval, or enhanced cloud architectures to improve search functionality [19,20,21,22]. These studies show that expressive keyword search is useful for encrypted cloud data sharing. However, important limitations remain. Some schemes do not support negated keywords, and some only support specific Boolean forms rather than arbitrary combinations. Some ranked-search schemes provide richer retrieval results but introduce additional search overhead. Moreover, access-policy hiding is not always considered, which may expose sensitive authorization information to a semi-trusted cloud server. Huang et al. [22] support AND, OR, NOT, and threshold queries using a non-monotonic access tree and further provide ranked retrieval. In contrast, our scheme realizes negation through signed literals over a fixed application dictionary, where positive and negated literals represent keyword presence and absence, respectively. Boolean queries are converted into negation normal form so that NOT appears only at leaf nodes, allowing positive and negative conditions to be handled uniformly during threshold-tree evaluation. This design provides explicit keyword-absence semantics and avoids introducing separate processing logic for negated conditions. In EHR sharing scenarios, queries involving negation are common. For example, a user may search for diabetes records involving dietary intervention but excluding drug therapy, or lung cancer treatment records excluding chemotherapy and radiotherapy. Such cases require flexible combinations of AND, OR, and NOT operators.
To address these requirements, our construction realizes negation using signed literals over a fixed application dictionary, where positive and negated literals represent keyword presence and absence, respectively. Boolean queries are converted into negation normal form so that NOT appears only at leaf nodes. Meanwhile, access authorization is enforced through multi-valued attributes, and policy-related information is protected during the search process. Therefore, the scheme aims to improve query expressiveness and privacy protection while ensuring that both computation and storage costs remain acceptable for cloud-based healthcare applications.
3. Preliminaries
3.1. Bilinear Maps
Consider two cyclic groups G and with the same prime order p. Let be a bilinear pairing. For arbitrary elements and exponents , the pairing satisfies
Moreover, non-degeneracy ensures that some can be found for which is not equal to . These algebraic properties support the ciphertext generation, trapdoor computation, and pairing-based verification used in the proposed construction.
3.2. Access Structure
Denote the attribute universe adopted in this work by . For each attribute , its possible values are taken from the domain
The access policy is denoted by , where is the value required for attribute . Thus, the policy is an AND gate over multi-valued attributes: each attribute has a multi-valued domain, while one value from that domain is selected in a particular ciphertext policy.
A user is described by an attribute vector , where . The policy P is fulfilled by S, written , exactly when for every . This equality condition is required by the cancellation used in Section 5.
It should be emphasized that the above AND-gate policy is used only for attribute-based authorization and is distinct from the Boolean keyword-search policy introduced in Section 3.3. The former determines whether a requester is eligible to perform a search: all required credential attributes, such as institutional affiliation, department, specialty, or professional role, must match the values specified by the data owner. In contrast, the latter specifies the retrieval conditions over encrypted keywords and supports AND, OR, and leaf-level NOT after the query is converted into negation normal form. We deliberately adopt the relatively simple conjunctive structure for authorization because it is consistent with the equality-based cancellation used in our construction and keeps the authorization layer separate from the expressive Boolean keyword-search mechanism, which is the main focus of this work.
Such conjunctive authorization requirements are also meaningful in practical EHR sharing. For example, access may be restricted to a user who is simultaneously affiliated with a particular hospital, holds the role of physician, and belongs to a specified medical specialty or department. Similar combinations of hospital affiliation, professional role, specialty, and department have been considered in existing EHR/PHR access-control systems [23,24]. Conjunctive policies such as “Hospital-1 AND Doctor” have also been explicitly used to model healthcare access permissions [25]. Nevertheless, this authorization structure cannot express attribute-level OR gates or threshold policies. Consequently, scenarios requiring alternatives among credential attributes or threshold-based authorization would require a more expressive access-control structure, which is beyond the scope of the present work, whose primary focus is expressive Boolean keyword search.
3.3. Access Tree
The Boolean search condition is expressed using an access tree T. For an internal node x, denote its child-node set by , and let be the threshold assigned to this node, where . When , the node behaves as an OR gate, since one valid child is sufficient. When , the node corresponds to an AND gate, because all child nodes must be satisfied. Each leaf node carries a signed keyword literal, and each node is assigned a unique index . A Boolean formula is first converted to negation normal form, so that negation occurs only at leaves.
Denote by R the root node of T. For a node x, refers to the subtree with x as its root, so the whole tree can be written as . For a set L of signed literals representing a record, the satisfaction value of is given by , if L satisfies the subtree ; otherwise, . For a leaf node x, holds exactly when its signed literal belongs to L.
4. System Framework
4.1. System Architecture
The system involves four entities: a trusted authority, a data owner, a data user, and a cloud server. The trusted authority establishes the cryptographic environment and distributes private keys according to user attributes. Before outsourcing EHR data, the data owner applies encryption to the records and sets the search-control policy that specifies the authorized search scope. A data user then creates a search token for an intended query, whereas the cloud server stores ciphertexts and performs ciphertext-level matching without accessing plaintext records. Figure 2 presents the overall workflow, and the roles of these entities are described below.
Figure 2.
System model of the proposed scheme.
- (1)
- Trusted Authority (TA): The TA produces the global cryptographic parameters while preserving the master secret. Based on the attributes of each participant, it provides the required private key components for data owners and data users. In the proposed system, the TA is only involved in the setup and key-issuing phases, and it is not required during each search process.
- (2)
- Data Owner (DO): The DO owns the original EHR records and decides how these records are shared. Before outsourcing data to cloud storage, the DO applies encryption to medical records while constructing ciphertext components associated with keywords. It also defines the search-control policy, which specifies the attribute requirements that a requester must satisfy before performing encrypted retrieval.
- (3)
- Data User (DU): The DU represents an authorized requester, such as a doctor, researcher, or medical institution. With an authorized secret key and a chosen Boolean keyword expression, the data user derives a query token for the target search task. This query token is delivered to the cloud server without exposing the original keywords or the user’s secret credential.
- (4)
- Cloud Server (CS): The CS offers cloud-based storage and encrypted search functionality. It stores encrypted EHR files and the corresponding searchable ciphertext components uploaded by data owners. When receiving a search token, the CS checks both the attribute-based authorization condition and the encrypted keyword-matching condition. The CS is regarded as an honest-but-curious party: it follows the required protocol operations correctly, yet may try to derive sensitive information from ciphertexts, query tokens, and returned results. As in standard searchable encryption, the CS observes ciphertext and token sizes, repeated pseudorandom tags, the query structure, the search pattern, and the access/result pattern; the construction does not claim to hide this leakage.
The cloud server is considered honest-but-curious, and the security of the proposed construction further relies on the assumption that it does not collude with credentialed data owners or authorized data users. If the CS obtains secret information such as or through such collusion, it may validate candidate keywords by dictionary guessing. Therefore, resistance to cloud–owner or cloud–user collusion is outside the scope of this work.
4.2. Algorithm Overview
The proposed search layer consists of five procedures: , , , , and . The EHR payload itself is encrypted with an authenticated symmetric cipher under a per-record key, while key encapsulation and payload decryption are orthogonal to the searchable-index construction considered in this work. The formal interfaces of the five core algorithms are defined as follows.
- (1)
- : For the security parameter , the algorithm generates the public parameters , the master secret key , and the data-owner encryption credential .
- (2)
- : The master secret key and the attribute vector S are used to derive the corresponding user secret key .
- (3)
- : Using the public parameters , the encryption credential , the access policy P, the fixed application dictionary , and the record keyword set , the algorithm generates the searchable ciphertext .
- (4)
- : The search token is generated from the public parameters , the user secret key , and the Boolean keyword expression B.
- (5)
- : The algorithm processes the searchable ciphertext and the search token and returns 1 when both the authorization condition and the Boolean keyword condition are satisfied; otherwise, it returns ⊥.
The detailed construction of these algorithms is presented in Section 5.
5. Construction
5.1. Concrete Construction
The concrete algorithms of the proposed construction are specified below.
- Setup: Given the security parameter , the TA first invokes to generate the bilinear pairing environment. Consider a cyclic group G generated by g, together with its associated target group , both of prime order p. The TA samples as secret exponents and independent keys for pseudorandom functions and . The scheme also defines . It obtains , , , and . Importantly, and the PRF keys are omitted from the public parameters. The system values are
The owner credential is delivered only to authenticated data owners. This separation is needed because publishing would allow a server to validate low-entropy keyword guesses against a trapdoor.
- KeyGen: For a participant described by the attribute vector , the TA derives a private key from the master secret . It chooses and independently for each . For every attribute value contained in S, the corresponding key components are generated as , . The remaining component is calculated by . Finally, the private key issued to the user is written as
- Encrypt: The DO executes this algorithm to protect keyword-related information according to the given access policy. Given a policy , a fixed application dictionary , and the set of terms occurring in the record, the DO defines one signed literal per dictionary term:
Thus, a negative literal represents absence rather than a second encoding of a present keyword. The DO chooses random values and sets , where . Then it computes . For every policy component , it generates and , where . For each signed literal , the DO randomly selects and computes
The pseudorandom tag permits direct lookup without disclosing the literal to the CS. Finally, the ciphertext generated by the encryption procedure consists of the following components:
- Trapdoor: DU executes the algorithm. The user first transforms the Boolean query expression B (with AND, OR, and NOT) into a monotonic access tree by pushing each NOT operator to the leaves using De Morgan’s laws. After the Boolean expression is transformed into , each leaf contains a signed literal . For every node x in , a polynomial is constructed, and the leaves are used to represent the corresponding keyword conditions. A fresh exponent is selected and assigned to the root polynomial by setting . The blinded component is then computed as . For every attribute value in the set S, the corresponding key components are blinded with the randomness v as
For a leaf node x in , the user computes the tag and the keyword-related trapdoor components
The resulting trapdoor is given as follows:
- Search: The CS takes and as inputs and performs ciphertext-level search. The search algorithm outputs a successful result only if two requirements are met simultaneously: the requester must comply with the access policy bound to the ciphertext, and the Boolean query must be consistent with the encrypted keyword components in .
To clarify the execution flow, the search procedure is performed in four steps. The CS first evaluates the attribute-based authorization information, then performs leaf-node matching for the query tree, recursively evaluates the internal nodes according to their threshold values using Lagrange interpolation, and finally verifies the root-node equation.
Step 1: Attribute-based authorization evaluation. The CS first computes the authorization factor as follows:
When the user’s attribute vector satisfies the policy, i.e., for every , the attribute-related terms cancel and the above expression reduces to . The resulting value E is retained for the final root-node verification. If the attribute policy is not satisfied, the cancellation is incomplete, so the final verification equation cannot hold except with negligible probability.
Step 2: Leaf-node matching. The CS then examines the keyword-matching condition. Specifically, it determines whether the Boolean query carried by the trapdoor is compatible with the encrypted signed literals in the ciphertext.
For a leaf x in , the CS uses to retrieve the ciphertext tuple with the same tag. If no such tuple exists, it sets ; otherwise, it evaluates
Step 3: Recursive threshold evaluation. For an internal node x, the algorithm selects valid child nodes to form the set . Each selected child z must have a non-null evaluation result, namely . If no such subset can be found, the value of is set to ⊥; otherwise, is computed using polynomial interpolation.
For a finite index set and an index , the Lagrange interpolation coefficient is defined as
where i denotes the index associated with the current interpolation term, ranges over the remaining indices in S, and j denotes the interpolation point. In the recursive tree evaluation, is used to reconstruct the polynomial value associated with the parent node.
Let . The value of the internal node is computed as
Step 4: Root-node verification. After the recursive computation is completed, the root value is obtained as . The CS determines whether the search result is valid by checking
When the verification equation is satisfied, the server regards the search request as valid and returns 1; otherwise, the result is set to ⊥.
5.2. Correctness Analysis
The successful case is first analyzed in three parts: authorization checking, keyword-tree evaluation, and final equality verification. We then consider two representative failure cases.
We first analyze the authorization checking stage. Assume that the user’s attribute value satisfies for every policy component. In this case, the hash term appearing in the ciphertext and the hash term embedded in the user’s key are algebraically compatible. Thus, after applying the bilinear pairing, the attribute-related factors in , , , and are canceled. When all required attribute conditions are satisfied, the cloud server obtains
The value E contains the encryption randomness r, the key randomness t, and the trapdoor randomness v. At the same time, the attribute hash components are removed through the quotient of pairing terms. If some , the PRF-derived group elements differ except with negligible collision probability, the cancellation cannot be completed, and the server fails to derive the expected authorization value.
Next, we consider the Boolean keyword evaluation. After the query is converted into the tree , each leaf node corresponds to either a normal keyword or its negated form. For a positive keyword, the server checks the ciphertext component corresponding to that keyword. For a negative keyword, the NOT operator has already been pushed to the leaf level. The leaf tag matches a ciphertext component only when the term is absent from the record, because emits exactly when . Therefore, positive and negative keyword conditions are handled within the same tree-evaluation process. If a leaf label matches the encrypted keyword component, the pairing computation produces a valid leaf value. For an internal node, the server combines enough valid child nodes according to its threshold value. When the Boolean expression represented by is fulfilled, polynomial interpolation reconstructs the value at the root node.
After the recursive computation over the query tree, the server obtains
The pairing term related to and can be evaluated from and as
By combining this term with the authorization factor , we obtain
Hence, the verification equation
is satisfied when both the attribute policy and the Boolean keyword condition hold.
Accordingly, an authorized data user whose query matches the encrypted keyword structure obtains a successful search result.
We further consider the two failure cases.
Case 1: The user’s attributes do not satisfy the ciphertext policy. If for at least one i, the attribute-related pairing terms in the numerator and denominator cannot be completely canceled. Therefore, the authorization factor E deviates from the expected value except with negligible probability. Consequently,
and hence the final verification equation
cannot hold even if the Boolean keyword tree itself is satisfied. Therefore, the CS returns ⊥.
Case 2: The user’s attributes satisfy the policy but the Boolean condition fails. In this case, the authorization factor is correctly obtained as . However, if a required leaf node does not match the corresponding encrypted signed literal, its evaluation result is set to . Similarly, if an internal node x has fewer than valid child nodes, its threshold condition cannot be satisfied and . Consequently, the expected root value cannot be reconstructed, and the final verification equation cannot hold. Therefore, the CS returns ⊥.
Therefore, the construction correctly distinguishes valid search requests from invalid ones.
6. Security Analysis
Threat Model and Leakage
The TA is trusted, and credential-distribution channels are authenticated and confidential. The adversary controls the honest-but-curious CS but does not obtain , , either PRF key, or a secret key satisfying the challenge policy. In particular, the model excludes collusion between the CS and a credentialed owner or user. The leakage function contains the public dictionary size, attribute dimension, ciphertext and query-tree sizes, equality of pseudorandom tags, search pattern, access-policy outcome, and result pattern. Hiding access or search patterns requires ORAM or private-information-retrieval techniques and is outside the scope of this work.
In EHR-oriented healthcare scenarios, such leakage may still reveal sensitive behavioral information even when plaintext keywords and medical records remain encrypted. Repeated search patterns may enable the cloud server to infer that a user repeatedly queries the same disease, treatment, or diagnostic condition, while result patterns may reveal whether different queries access the same group of encrypted health records. By correlating these observations over time with auxiliary information, an honest-but-curious cloud server may infer sensitive information concerning patients’ medical conditions, treatment activities, or users’ clinical interests. Mitigating such leakage requires additional techniques, such as oblivious RAM (ORAM) or private information retrieval (PIR), which are beyond the scope of the present construction.
In the selective IND-sCP-CKA game, the adversary commits to two equal-size challenge record descriptions and a target policy before setup. The descriptions must induce the same leakage . The adversary may request keys and trapdoors adaptively, except for a key satisfying the target policy or a trapdoor that trivially distinguishes the two challenge descriptions. The challenger encrypts one description chosen by a hidden bit, and the adversary attempts to recover that bit.
Theorem 1.
Assume that and are secure pseudorandom functions, is modeled as a random oracle, and the decisional bilinear Diffie–Hellman problem is hard in . Then the proposed construction is selectively IND-sCP-CKA secure with respect to leakage against the non-colluding CS described above.
The security reduction in Theorem 1 explicitly relies on the non-collusion assumption. Specifically, the CS is assumed not to obtain the encryption credential of a data owner or the secret credential of an authorized user. If the CS colludes with a credentialed data owner or user, secret information such as or may be disclosed, enabling dictionary-based keyword validation. In this case, the assumptions required by the reduction are violated, and the security conclusion of Theorem 1 no longer holds.
Consider a sequence of games. Game 0 is the real selective experiment. In Game 1, all outputs in ciphertexts and trapdoors are consistently replaced with random tags. Distinguishing Games 0 and 1 breaks the PRF security of , while preserving the tag-equality leakage admitted by . In Game 2, the policy encodings are replaced with independent random group elements, subject to the equality required for authorized keys. Distinguishing Games 1 and 2 breaks the PRF security of .
Conditioned on the permitted leakage, the remaining challenge-dependent terms have the form and for fresh . The omitted value prevents the CS from constructing the public pairing test that would otherwise validate a guessed literal against and . A simulator embeds the bilinear Diffie–Hellman challenge in the common r-dependent term and answers legal key and trapdoor queries using the selective-policy restriction. Replacing that term with a random element gives Game 3; distinguishing Games 2 and 3 solves DBDH. In Game 3, the challenge bit is independent of the adversary’s view beyond . Therefore,
The theorem does not hide repeated-query or result patterns. These leakage boundaries are stated explicitly so that the security claim is not interpreted as full leakage-free searchable encryption.
7. Performance Analysis
The following analysis examines the proposed scheme from three aspects: supported functions, analytical overhead, and measured execution time. Representative ABKS schemes supporting Boolean search are selected for comparison.
7.1. Functionality Analysis
Table 1 compares the main functions of different schemes, including access structure, Boolean search capability, support for NOT queries, policy hiding, and hardness assumption. Our construction supports AND, OR, and NOT queries and protects the access policy during search.
Table 1.
Functional comparison of different schemes.
It is clear that both our scheme and the scheme [22] support NOT queries. Nevertheless, the scheme in [22] realizes negation through a different query structure and does not provide policy-hiding capability. The schemes in [20,26] are unable to process NOT-based queries, and the latter also fails to hide access policies. Different from these schemes, our construction adopts an AND-gate structure over multi-valued attributes to enforce access control. A user is regarded as authorized only if every required multi-valued attribute condition is fulfilled. Such a design ensures secure user authorization and, at the same time, avoids introducing excessive query overhead. In summary, our scheme supports Boolean queries involving AND, OR, and leaf-level NOT under the stated fixed-dictionary and negation-normal-form constraints, while also providing access policy hiding.
7.2. Computation and Storage Overhead Analysis
Table 2 and Table 3 give an analytical evaluation of computation and storage requirements for our scheme and representative ABKS schemes. In Table 2, represents the size of the attribute universe, whereas indicates the number of attributes owned by the user. Here, denotes the number of keywords associated with a record, while and represent the fixed dictionary size and the number of query leaves, respectively. For the construction of Huang et al. [22], represents the number of columns in the LSSS matrix, while indicates the count of negated keyword conditions in the query. Besides, the notation and numerical values of the basic cryptographic operations and element sizes are summarized in Table 4. In this table, Type A parameters are used for the schemes [20,22] and our scheme, whereas Type D parameters are used for the scheme [26].
Table 2.
Computation costs of different schemes.
Table 3.
Storage requirements of different schemes.
Table 4.
Values of basic cryptographic operations and element sizes.
Because PRF/hash evaluations and operations in are relatively lightweight compared with exponentiation and pairing operations, their computation costs are excluded from the pairing-dominant comparison. Pseudorandom tags add bits to a ciphertext and bits to a token.
Based on the analytical expressions in Table 2 and Table 3 and the operation costs and element sizes summarized in Table 4, we evaluate and compare the computational and storage overheads of several representative ABKS schemes, including the schemes [20,22,26], together with our proposed scheme. The comparison considers the five main phases of , , , , and .
From the perspective of computation, Table 2 shows that the phase of our scheme requires only a small number of exponentiation operations. In contrast, the setup cost of Huang et al.’s scheme [22] increases with the number of record keywords and the LSSS parameter. In the and phases, the computational costs of the compared schemes mainly depend on the numbers of attributes and keywords involved. Similarly, the cost increases with the number of user attributes and query leaves. For the phase, Huang et al.’s construction additionally depends on the number of negated keyword conditions, whereas the search cost of our scheme mainly depends on the attribute dimension and the number of query leaves. The operation costs listed in Table 4 provide numerical values for the exponentiation and pairing operations involved in these analytical expressions.
Regarding storage overhead, Table 3 shows that the storage requirements of the compared schemes are mainly determined by the numbers of attributes, keywords, and cryptographic elements contained in each component. For our construction, the fixed-dictionary representation additionally introduces bits of pseudorandom tags in the ciphertext and bits in the search token. Nevertheless, the remaining storage cost grows linearly with the attribute dimension, dictionary size, and number of query leaves. The element sizes listed in Table 4 provide the corresponding numerical basis for evaluating the storage expressions in Table 3. Overall, the computation and storage analyses show that the proposed scheme maintains moderate overhead while supporting Boolean keyword retrieval with negation and attribute-based authorization.
7.3. Experiment Analysis
All schemes were implemented in Java with the JPBC library and tested on the same Windows 11 desktop platform to ensure a fair runtime comparison.
For the experiment shown in Figure 3, we keep the dictionary size at 50 and vary the attribute size from 10 to 50 in steps of 10. As the attribute size increases, the running times of , , and generally increase, while our scheme remains less sensitive to the attribute scale, especially in the phase due to its aggregation-based attribute matching mechanism.
Figure 3.
Runtime comparison under different attribute sizes for the proposed scheme and the schemes in [20,22,26].
Similarly, Figure 4 presents the influence of dictionary size on execution cost when the number of attributes remains 50. The dictionary size changes from 10 to 50 in steps of 10. is unaffected because it contains no dictionary-dependent operation, whereas the other phases grow approximately linearly.
Figure 4.
Runtime comparison under different keyword sizes for the proposed scheme and the schemes in [20,22,26].
The observed performance differences are also related to the query-processing mechanisms of the compared implementations. Our scheme can represent multiple keywords and their Boolean relations in a single query tree and process them within one search procedure, whereas an equivalent multi-keyword request in the compared implementations may require separate keyword-query executions, resulting in accumulated search costs.
The reported implementation mainly measures the pairing-dominant algebraic core. Therefore, the results support the relative algebraic-efficiency comparison rather than a complete end-to-end clinical deployment evaluation.
The current experiments do not use real-world EHR datasets and mainly evaluate the computational overhead of the cryptographic operations in the proposed searchable-encryption layer. In particular, the evaluation does not include the costs of EHR text parsing and keyword extraction, network transmission between users and cloud servers, or encryption and transmission of the underlying medical data. In practical healthcare systems, additional engineering challenges also need to be considered, including integration with heterogeneous EHR formats and existing hospital information systems, management and update of the application dictionary, secure distribution and revocation of user credentials, and the communication and storage overhead introduced by large-scale encrypted medical records. These issues are beyond the scope of the current cryptographic evaluation and will be considered in future implementation-oriented work.
8. Conclusions
This paper presents a ciphertext-policy ABKS search layer for expressive retrieval over encrypted EHR collections. Encoding exactly one positive-or-negative literal for every term in a fixed application dictionary provides explicit keyword-absence semantics. Boolean formulas involving AND, OR, and NOT are converted into negation normal form, with NOT restricted to leaf nodes, and are then evaluated using a threshold tree. Multi-valued attribute authorization is enforced before the Boolean tree is accepted, while keyed pseudorandom encodings conceal literal and policy values from a non-colluding honest-but-curious cloud server. The security analysis establishes selective IND-sCP-CKA security with explicitly stated leakage under the DBDH and PRF assumptions. The computation and storage costs grow linearly with the attribute dimension, dictionary size, and number of query leaves. The principal limitations of the current construction are the use of a fixed dictionary, leakage of search and result patterns, reliance on a trusted credential issuer, and the exclusion of collusion between the cloud server and credentialed users or data owners. Future work will investigate incremental update mechanisms for dynamic dictionaries, so that dictionary terms and their pseudorandom tags can be updated without regenerating the entire searchable ciphertext. To mitigate access-pattern leakage, ORAM- or PIR-based techniques may be incorporated into the searchable-encryption layer. In addition, per-user or per-query blinded credentials, possibly combined with threshold-assisted token generation, will be explored to relax the current non-collusion assumption.
Author Contributions
Methodology, H.Y. and G.D.; Software, X.W., H.C. and G.D.; Formal analysis, L.Z.; Writing—original draft preparation, X.W., H.C. and G.D.; Writing—review and editing, B.C.; Supervision, H.Y. and L.Z.; Funding acquisition, B.C. and L.Z. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the Key R&D Projects in Henan Province, grant numbers 261111212500, 261111212000, and 241111212800.
Data Availability Statement
Data are contained within the article. Further inquiries can be directed to the corresponding author.
Conflicts of Interest
Haicheng Chen is affiliated with Hangzhou Muyao Technology Co., Ltd.; Guangyu Ding is affiliated with Chery New Energy Automotive Co., Ltd.; and Binrong Cheng is affiliated with Hangzhou Zhongcheng Consulting Supervision Co., Ltd. These affiliations are disclosed for transparency. The authors declare that these organizations had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results. The authors declare no other conflicts of interest.
References
- Song, D.X.; Wagner, D.A.; Perrig, A. Practical Techniques for Searches on Encrypted Data. In Proceedings of the IEEE S&P; IEEE: New York, NY, USA, 2000; pp. 44–55. [Google Scholar]
- Boneh, D.; Crescenzo, G.D.; Ostrovsky, R.; Persiano, G. Public Key Encryption with Keyword Search. In Proceedings of the EUROCRYPT; Springer: Berlin/Heidelberg, Germany, 2004; Volume 3027, pp. 506–522. [Google Scholar]
- Baek, J.; Safavi-Naini, R.; Susilo, W. Public Key Encryption with Keyword Search Revisited. In Proceedings of the ICCSA; Springer: Berlin/Heidelberg, Germany, 2008; Volume 5072, pp. 1249–1259. [Google Scholar]
- Yu, Y.; Shi, J.; Li, H.; Li, Y.; Du, X.; Guizani, M. Key-Policy Attribute-Based Encryption with Keyword Search in Virtualized Environments. IEEE J. Sel. Areas Commun. 2020, 38, 1242–1251. [Google Scholar] [CrossRef] [Scilit]
- Kamara, S.; Papamanthou, C.; Roeder, T. Dynamic searchable symmetric encryption. In Proceedings of the ACM CCS; ACM: New York, NY, USA, 2012; pp. 965–976. [Google Scholar]
- Waters, B.; Balfanz, D.; Durfee, G.; Smetters, D. Building an Encrypted and Searchable Audit Log. In Proceedings of the NDSS, San Diego, CA, USA, 26 February–1 March 2004. [Google Scholar]
- Abdalla, M.; Bellare, M.; Catalano, D.; Kiltz, E.; Kohno, T.; Lange, T.; Malone-Lee, J.; Neven, G.; Paillier, P.; Shi, H. Searchable Encryption Revisited: Consistency Properties, Relation to Anonymous IBE, and Extensions. In Proceedings of the CRYPTO; Springer: Berlin/Heidelberg, Germany, 2005; Volume 3621, pp. 205–222. [Google Scholar]
- Boneh, D.; Kushilevitz, E.; Ostrovsky, R.; William, E.S., III. Public Key Encryption That Allows PIR Queries. In Proceedings of the CRYPTO; Springer: Berlin/Heidelberg, Germany, 2007; Volume 4622, pp. 50–67. [Google Scholar]
- Park, D.J.; Kim, K.; Lee, P.J. Public Key Encryption with Conjunctive Field Keyword Search. In Proceedings of the WISA; Springer: Berlin/Heidelberg, Germany, 2004; Volume 3325, pp. 73–86. [Google Scholar]
- Wang, P.; Wang, H.; Pieprzyk, J. An Efficient Scheme of Common Secure Indices for Conjunctive Keyword-Based Retrieval on Encrypted Data. In Proceedings of the WISA; Springer: Berlin/Heidelberg, Germany, 2008; Volume 5379, pp. 145–159. [Google Scholar]
- Boneh, D.; Waters, B. Conjunctive, Subset, and Range Queries on Encrypted Data. In Proceedings of the TCC; Springer: Berlin/Heidelberg, Germany, 2007; Volume 4392, pp. 535–554. [Google Scholar]
- Lv, Z.; Hong, C.; Zhang, M.; Feng, D. Expressive and Secure Searchable Encryption in the Public Key Setting. In Proceedings of the ISC; Springer: Berlin/Heidelberg, Germany, 2014; Volume 8783, pp. 364–376. [Google Scholar]
- Zheng, Q.; Xu, S.; Ateniese, G. VABKS: Verifiable attribute-based keyword search over outsourced encrypted data. In Proceedings of the IEEE INFOCOM; IEEE: New York, NY, USA, 2014; pp. 522–530. [Google Scholar]
- Wang, H.; Dong, X.; Cao, Z. Multi-Value-Independent Ciphertext-Policy Attribute Based Encryption with Fast Keyword Search. IEEE Trans. Serv. Comput. 2020, 13, 1142–1151. [Google Scholar] [CrossRef] [Scilit]
- Miao, Y.; Liu, X.; Choo, K.R.; Deng, R.H.; Li, J.; Li, H.; Ma, J. Privacy-Preserving Attribute-Based Keyword Search in Shared Multi-owner Setting. IEEE Trans. Dependable Secur. Comput. 2021, 18, 1080–1094. [Google Scholar] [CrossRef] [Scilit]
- Xu, L.; Chen, X.; Zhang, F.; Li, W.; Wu, H.; Tang, S.; Xiang, Y. ASBKS: Towards Attribute Set Based Keyword Search Over Encrypted Personal Health Records. IEEE Trans. Dependable Secur. Comput. 2021, 18, 2941–2952. [Google Scholar] [CrossRef] [Scilit]
- Sultan, N.H.; Kaaniche, N.; Laurent, M.; Barbhuiya, F.A. Authorized Keyword Search over Outsourced Encrypted Data in Cloud Environment. IEEE Trans. Cloud Comput. 2022, 10, 216–233. [Google Scholar] [CrossRef] [Scilit]
- Miao, Y.; Ma, J.; Liu, X.; Li, X.; Liu, Z.; Li, H. Practical Attribute-Based Multi-Keyword Search Scheme in Mobile Crowdsourcing. IEEE Internet Things J. 2018, 5, 3008–3018. [Google Scholar] [CrossRef] [Scilit]
- Yang, K.; Zhang, K.; Jia, X.; Hasan, M.A.; Shen, X.S. Privacy-preserving attribute-keyword based data publish-subscribe service on cloud platforms. Inf. Sci. 2017, 387, 116–131. [Google Scholar] [CrossRef] [Scilit]
- He, K.; Guo, J.; Weng, J.; Weng, J.; Liu, J.K.; Yi, X. Attribute-Based Hybrid Boolean Keyword Search over Outsourced Encrypted Data. IEEE Trans. Dependable Secur. Comput. 2020, 17, 1207–1217. [Google Scholar] [CrossRef] [Scilit]
- Chen, Y.; Li, W.; Gao, F.; Wen, Q.; Zhang, H.; Wang, H. Practical Attribute-Based Multi-Keyword Ranked Search Scheme in Cloud Computing. IEEE Trans. Serv. Comput. 2022, 15, 724–735. [Google Scholar] [CrossRef]
- Huang, Q.; Yan, G.; Wei, Q. Attribute-Based Expressive and Ranked Keyword Search Over Encrypted Documents in Cloud Computing. IEEE Trans. Serv. Comput. 2023, 16, 957–968. [Google Scholar] [CrossRef] [Scilit]
- Li, M.; Yu, S.; Zheng, Y.; Ren, K.; Lou, W. Scalable and Secure Sharing of Personal Health Records in Cloud Computing Using Attribute-Based Encryption. IEEE Trans. Parallel Distrib. Syst. 2013, 24, 131–143. [Google Scholar] [CrossRef] [Scilit]
- Akinyele, J.A.; Pagano, M.W.; Green, M.D.; Lehmann, C.U.; Peterson, Z.N.J.; Rubin, A.D. Securing Electronic Medical Records Using Attribute-Based Encryption on Mobile Devices. In Proceedings of the 1st ACM Workshop on Security and Privacy in Smartphones and Mobile Devices; ACM: New York, NY, USA, 2011; pp. 75–86. [Google Scholar] [CrossRef] [Scilit]
- Khan, F.; Khan, S.; Tahir, S.; Ahmad, J.; Tahir, H.; Shah, S.A. Granular Data Access Control with a Patient-Centric Policy Update for Healthcare. Sensors 2021, 21, 3556. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zhang, K.; Wen, M.; Lu, R.; Chen, K. Multi-client sub-linear boolean keyword searching for encrypted cloud storage with owner-enforced authorization. IEEE Trans. Dependable Secur. Comput. 2020, 18, 2875–2887. [Google Scholar] [CrossRef] [Scilit]
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.



