Abstract
The three main IBE schemes, i.e., Boneh–Franklin, Cocks and Boneh–Gentry–Hamburg present both strengths and weaknesses. In this paper, we introduce a more efficient variant of BGH (while preserving receiver’s anonymity) based on the work of Jhanwar and Barua. More precisely, we provide the reader with a scheme with reduced complexities for encryption and decryption algorithms and present a new perspective on the initial set of solutions.
MSC:
11T71; 14G50; 94A60
1. Introduction
To sidestep various challenges associated with public-key cryptography, such as trust management and public key retrieval, Shamir introduced a novel concept in 1984: Identity-Based Encryption (IBE) [1]. In this framework, the public key is directly derived from a unique information of the user, like a personal number or an email address, and therefore removing the traditional key management processes, such as certificate issuance and revocation, but relying on a trusted Private Key Generator (PKG) to generate and distribute private keys securely.
Nevertheless, development of a practical IBE scheme was delayed until 2001, when two distinct schemes were introduced. In essence, Boneh and Franklin proposed the first such scheme via bilinear maps [2]. The security of this cryptosystem is proved under the Bilinear Diffie–Hellman assumption, but these schemes are difficult to instantiate efficiently and securely. Subsequently, during the same year, Cocks presented an alternative, more natural scheme based on quadratic residues [3]. The entire theory behind this cryptosystem was rigorously analyzed [2,4,5,6,7] and developed [8,9,10,11]. The main drawback of all these schemes is the large plaintext-to-ciphertext expansion.
Regarding ciphertext expansion, the most efficient anonymous IBE scheme is the one developed by Boneh, Gentry, and Hamburg [12] in 2007. This work is also defined on quadratic residues, but using a different approach. In [13], the authors managed to obtain a tighter security margin for one of BGH versions. The main limitation of BGH schemes are considered to be their inefficient bit-by-bit encryption and decryption processes, which are quartic in the security parameter. Jhanwar and Barua offered an inside-look in the theory behind this cryptosystem [14] and tried to improve the original scheme, but as in many other papers, some security issues were later identified.
Finally, in 2008, Gentry, Peikert and Vaikuntanathan designed a series of cryptographic algorithms, including an IBE scheme, based on lattices [15] in random oracle model. This scheme drew the attention of experts and allowed the development of hierarchical IBE schemes [16,17] in the standard oracle model. The main downside of lattice-based IBE schemes is the plaintext-to-ciphertext expansion and the large keys.
This work builds upon the well-known IBE scheme BGH, proposing a more efficient variant of it. More precisely, we present an algorithm to keep the synchronization between receiver’s and sender’s parameters by removing the requirement of solving a new equation for each message bit and we offer a new look upon the initial set of solutions.
Structure of the Paper
2. Preliminaries
2.1. Notations
Throughout the paper, we use the notations presented in Table 1.
Table 1.
Notations.
2.2. Identity-Based Encryption
An IBE scheme comprises four probabilistic polynomial time (PPT) algorithms: Setup, KeyGen, Enc, and Dec. The Setup algorithm takes a security parameter as input and outputs the master secret key and the public parameters . The KeyGen algorithm uses an identity , the master secret key, and the public parameters to generate a private key linked to . The Enc algorithm encrypts a message m using a key derived from an identity and the public parameters, resulting in the ciphertext c. Finally, the Dec algorithm decrypts c using the private key associated with , recovering the original message m.
Definition 1
(Anonymity and Indistinguishability under Selective Identity and Chosen Plaintext Attacks—anon-ind-id-cpa). The
anon-ind-id-cpa
security of an IBE scheme is characterized via the following adaptive game between an adversary and a challenger C:
- Setup: The challenger C generates the public parameters , and the master key sends to adversary and retaining to himself.
- Queries: The adversary issues a finite number of adaptive queries. A query can be one of the following types:
- 1.
- Private key query: When the adversary requests a query for an identity , C runs KeyGen() and returns , the resulting private key, to .
- 2.
- Encryption query. The adversary is restricted to a single such query. The challenger receives from A two pairs consisting of the identities and two equally large plaintexts . The challenger randomly generates a bit , runs the algorithm and the resulting ciphertext c is sent to the adversary. Private-key queries for identities must never be issued.
- Guess: The adversary wins the game if it outputs a bit such that .
When attacking an IBE scheme, the advantage of the adversary is defined as
where the probability is computed over the random bits used by both the challenger and the adversary. An IBE scheme is
anon-ind-id-cpa
secure, if for any PPT adversary the advantage is negligible. Notice that when the above game is restricted to , it presents the notion of
ind-id-cpa
security.
The security of the IBE scheme presented in this paper relies on the Interactive Quadratic Residuosity assumption shown in Definition 3. This assumption states that QR assumption, presented in Definition 2, holds relative to a square root oracle.
Definition 2
(Quadratic Residuosity—qr).
Consider two large prime numbers and determine their product . Let be a PPT algorithm that outputs 1 on input if . The advantage is defined as
The Quadratic Residuosity assumption states that for any PPT algorithm the advantage is negligible.
Definition 3
(Interactive Quadratic Residuosity—iqr).
Let primes and . Consider a hash function . Let be a square root oracle that selects . This oracle takes an input pair and outputs either a square root of or a square root of , depending on which is a quadratic residue. The oracle is chosen uniformly at random from all possible such functions. The advantage is defined as
The Interactive Quadratic Residuosity assumption states that for any PPT algorithm with access to oracle , the advantage is negligible.
2.3. Boneh–Gentry–Hamburg Cryptosystem
In [12], the authors introduced two IBE cryptosystems based on quadratic residues, BasicIBE and AnonIBE. We will focus our attention on the latter and introduce it.
During the encryption and decryption processes, the secret parameter s of the sender and the private key r of the receiver are used in a synchronization procedure between the sender and the receiver in order to ensure the correctness of the decryption and the anonymity of the receiver. To achieve synchronization, both parties use a deterministic algorithm as introduced in [12]. This algorithm takes as input , where is an RSA modulus, is the square of the secret value s modulo N, is a hash value based on the identity of the receiver and . The output consists of four first-degree polynomials . The synchronization is achieved if these polynomials satisfy the following conditions:
- Condition 1: If , then for all , such that and .
- Condition 2: If , then for all , such that and .
- Condition 3: If , then is a quadratic residue for all , such that .
- Condition 4: If , then is a quadratic residue for all , such that .
- Condition 5: If , then is a quadratic residue for all , such that .
- Condition 6: Function does not depend by R, i.e., for all algorithm produce the same when are constant inputs.
The authors of [12] proposed as a starting point for generating these polynomials the modular quadratic Diophantine equation with coefficients
Both parties consider the equations and with solutions and , respectively. The previous conditions are satisfied and synchronization is achieved, as proven in [12], when polynomials are initiated as
Remark 1.
In [12], the authors present an algorithm based on the work of Cremona and Russin [18] to solve Equation (1). This algorithm is quartic in the security parameter λ.
We further present AnonIBE as it was introduced in [12].
- Setup: Given a security parameter , generate two primes such that and set . Randomly generate . Consider the public parameters , where the hash function . Let the master secret key be , where K is a uniformly random key for a pseudorandom function .
- KeyGen: On input and a message bit-length 𝓁, the algorithm generates a decryption key . For do:
- Let and ;
- Consider such that ;
- Consider the four roots of modulo N;
- Set .
Generate .
- Encrypt: In order to encrypt a message when given , the sender randomly generates , sets and gets the polynomial by running the algorithm . For each consider , find by running the algorithm and compute . The ciphertext is , where .
- Decrypt: To decrypt the ciphertext C, generate for each and the polynomials . Then
The recovered message is .
3. BGH-like Cryptosystem
We further present a more efficient version of the previous scheme. The sender is required to solve only 2 equations instead of equations and the receiver must solve at most 2 equations instead of .
During the encryption and decryption processes two hash functions will be needed, namely , which takes the identity and returns and , which will take as input the identity-related R, the value S and the message bits that were already sent or received. Consider message bit as 1 and message bit 1 as 0. We will refer to the following scheme as EffIBE.
- Setup: Given a security parameter , generate two primes such that and compute their product . Randomly generate , consider the public parameters and the master secret key .
- KeyGen: Let . If , then compute . Otherwise, set . The private key is .
- Encrypt: Let . Randomly generate and set . Apply algorithm to obtainCompute the first ciphertext bit asFor each and each plaintext bit , consider the concatenation of the previously sent message bits , compute the hash value , where . Let the ith set of polynomials bewhere are considered asDefine the ciphertext as , where k and the encryption of the ith bit, , are computed as
- Decrypt: Let .
- If , then solve and set . Consider and the ciphertext .
- If , then get the set of polynomials . Consider and the ciphertext .
Subsequently, the receiver decrypts the first bit by computingThen, for each , consider , compute the hash value and derive the new pair asLet , for , if . Otherwise, for , consider . The decryption of the ith bit is
When , EffIBE is equivalent to AnonIBE.
3.1. Correctness
The correctness of the proposed method with respect to the decryption of the first bit is an immediate consequence of the results presented in [12].
Message bits are obtained through the decryption mechanism presented in Section 3, the correctness argument is derived using Lemma 1 proven in [14].
Lemma 1.
Corollary 1.
The relations presented in Lemma 1 and Section 3 are equivalent.
Proof.
We denote .
□
Therefore, each pair obtained during the encryption and decryption processes is a solution of Equation (1), and, thus, the decryption is correctly processed. Hence, the sender and the receiver maintain the synchronization of their parameters.
3.2. Further Analysis
For a fixed secret encryption parameter s and a prime , we define the following sets:
In [14] the authors have proved that . We study the cardinalities of the sets and in Lemma 2.
Lemma 2.
The following equality holds .
Proof.
We will show that .
To prove the latter sum , we make the following remarks:
- If , then and , where ;
- ;
- If and (or ), then (or );
- .
Consequently, when , it follows that
If , then , as it admits the equivalent representation
Since and , we obtain our result. □
Corollary 2.
For an RSA-modulus , the following equality holds
Proof.
By the definition of the Jacobi symbol, we obtain the following identities
According to Lemma 2 and the Chinese Remainder Theorem (CRT), we obtain our result. □
Lemma 3.
Let , and , such that , which shifts to as presented in Section 3. Then
Proof.
A condition required to complete the shift from to presented in Lemma 1 is .
Thus, only one of the following relations is true
Therefore, using Lemma 2, we have the following
□
Lemma 4.
Let , and , such that , which shifts to as presented in Section 3. Then
Proof.
The argument is similar to the one shown in Lemma 3. □
Corollary 3.
Let (or ), and such that , which shifts to as presented in Section 3. Then the following identities hold
Proof.
According to the identities presented in Corollary 2 and the results from Lemma 3, Lemma 4 we obtain our conclusion. □
4. Security & Anonymity
In [12] the authors stated that BasicIBE does not provide anonymity to the receiver. Therefore, they introduced a new, more complex scheme, AnonIBE, which offers an anonymization process. During the proof of the ANON-IND-ID-CPA property of AnonIBE, they utilized Lemma 5 (Lemma 3.3 in [12]).
Lemma 5.
Let be an RSA modulus, . Let , where are the four square roots of X modulo N and consider a polynomial f that satisfies condition 2 presented in Section 2.3. Then is uniformly distributed in .
We will prove that our scheme is ANON-IND-ID-CPA secure based on IQR assumption. During the proof of the following theorem, we will use pseudorandom functions (PRFs) as they are introduced in [19].
Theorem 1.
If is an efficient ANON-IND-ID-CPA adversary against
EffIBE, then there exist three independent and efficient algorithms running in about the same time as adversary , such that
Proof.
The proof will be completed using a series of games. We will denote by and the events of winning the ith game and, respectively, the jth subgame of the ith game.
- G0:
- This game follows exactly the steps presented in Definition 1, thus
- G1:
- During the private key query, the challenger uses a truly random function instead of a secure PRF in order to choose which private key to be sent to the adversary. Under these conditions, the adversary will not notice any difference between Game 0 and Game 1; therefore, there exists an algorithm (running in similar time as the adversary) such that
- G2:
- Within this game, the challenger has access to a modular square root oracle , which is selected uniformly random from the set of all possible such oracles. When given as input , it returns a random private key r without having access to the factorization of N. Therefore, this game is placed in the context of the IQR assumption. Moreover, the distributions of the answers to adversary queries are identical to those observed in the previous game. Thus, the following identity holds
- G3:
- This game will be built using the following subgames.
- G3.1:
- In the course of this game, the encryption query is changed from the one in Game 2 when computing the last ciphertext bit . Instead of generating as in Section 3 using the hash function , we generate it using a different PRF T and compute the ciphertext bit using the same method. Therefore, there exists an efficient algorithm that runs similarly in time as such that
- G3.2:
- This game proceeds as subgame 3.1, the difference between them being the encryption process of the last two bits instead of only the latter. The challenger generates both using the different PRF T instead of computing them using . Therefore, similarly, the following inequality holds
- ⋮
- G3.():
- This subgame progresses similarly as subgame ; the challenger computes values utilizing T and encrypts bits accordingly. Thus, the following inequality holdsTherefore, we have the following inequality
- G4:
- The game is set almost identically to the subgame , the only difference consists in the generation process of S; that is, instead of generating it , the Challenger chooses randomly . Hence, Game 4 is indistinguishable from Game 3 under the IQR assumption. More precisely, there exists an algorithm whose running time is comparable to that of suchIn order to show that wins Game 4 exactly half of the time, we argue that the ciphertext is independent of the random bit b. Corollary 3 implies the sets and have identical distributions when and Lemma 5 ensures that each ciphertext bit is uniform in when .
□
Comparison
In Table 2 we present a comparison between the two schemes presented in [12] (BasicIBE, AnonIBE) and our proposed scheme EffIBE. The differences between them are considered in the context of an 𝓁-bit processed plaintext with a -bit N. We compare the plaintext-to-ciphertext bit expansions, the computational complexities of the encryption and decryption processes with respect to the number of times Equation (1) is solved via Remark 1 and whether the scheme provides anonymity to the receiver.
Table 2.
Schemes’ Comparisons.
5. Conclusions
In this paper, we introduced a new, more efficient BGH-like cryptosystem. Our proposed scheme reduces the complexity of both the encryption and decryption algorithms and offers anonymity to the receiver by design. Supplementary, we continued the work of Jhanwar and Barua [14] and took an in-depth look at the solutions sets of Equation (1) in the setup of the Boneh–Gentry–Hamburg cryptosystem and compared the distributions of these sets.
Funding
This research received no external funding.
Data Availability Statement
No new data were created or analyzed in this study.
Acknowledgments
I would like to express my sincere gratitude to Ferucio Laurenţiu Ţiplea, for his guidance, insightful comments and continuous support throughout this work. I am also grateful to David Nacchache for bringing to my attention that the work of Jhanwar and Barua can be used to reduce the complexity of both schemes proposed by Boneh, Gentry and Hamburg. Last but not least, I would like to thank Diana Maimuţ and Remi-Stewart Geraud for their valuable comments and knowledge.
Conflicts of Interest
The author declares no conflicts of interest.
References
- Shamir, A. Identity-Based Cryptosystems and Signature Schemes. In Advances in Cryptology, Proceedings of the CRYPTO 1984; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 1985; Volume 196, pp. 47–53. [Google Scholar]
- Boneh, D.; Franklin, M.K. Identity-Based Encryption from the Weil Pairing. In Advances in Cryptology—CRYPTO 2001, Proceedings of the 21st Annual International Cryptology Conference; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2001; Volume 2139, pp. 213–229. [Google Scholar]
- Cocks, C. An Identity Based Encryption Scheme Based on Quadratic Residues. In Cryptography and Coding, Proceedings of the 8th IMA International Conference Cirencester; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2001; Volume 2260, pp. 360–363. [Google Scholar]
- Schipor, G.A. On the Anonymization of Cocks IBE Scheme. In Cryptography and Information Security in the Balkans, Proceedings of the First International Conference, BalkanCryptSec 2014; Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2014; Volume 9024, pp. 194–202. [Google Scholar]
- Ateniese, G.; Gasti, P. Universally Anonymous IBE Based on the Quadratic Residuosity Assumption. In Topics in Cryptology—CT-RSA 2009, Proceedings of the Cryptographers’ Track at the RSA Conference 2009; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2009; Volume 5473, pp. 32–47. [Google Scholar]
- Ţiplea, F.L.; Iftene, S.; Teşeleanu, G.; Nica, A.M. On the Distribution of Quadratic Residues and Non-residues Modulo Composite Integers and Applications to Cryptography. Appl. Math. Comput. 2020, 372, 124993. [Google Scholar] [CrossRef] [Scilit]
- Cotan, P.; Teșeleanu, G. Elementary Remarks on Some Quadratic Based Identity Based Encryption Schemes. In Innovative Security Solutions for Information Technology and Communications, Proceedings of the 16th International Conference, SecITC 2023; Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2023; Volume 14534, pp. 26–34. [Google Scholar]
- Zhao, X.; Cao, Z.; Dong, X.; Shao, J. Extended Galbraith’s Test on the Anonymity of IBE Schemes from Higher Residuosity. Des. Codes Cryptogr. 2021, 89, 241–253. [Google Scholar] [CrossRef] [Scilit]
- Clear, M.; Hughes, A.; Tewari, H. Homomorphic Encryption with Access Policies: Characterization and New Constructions. In Progress in Cryptology—AFRICACRYPT 2013, Proceedings of the 6th International Conference on Cryptology in Africa; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2013; Volume 7918, pp. 61–87. [Google Scholar]
- Cotan, P.; Teşeleanu, G. Generalized Galbraith’s Test: Characterization and Applications to Anonymous IBE Schemes. Mathematics 2021, 9, 1184. [Google Scholar] [CrossRef] [Scilit]
- Joye, M. Identity-Based Cryptosystems and Quadratic Residuosity. In Public-Key Cryptography—PKC 2016, Proceedings of the 19th IACR International Conference on Practice and Theory in Public-Key Cryptography; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2016; Volume 9614, pp. 225–254. [Google Scholar]
- Boneh, D.; Gentry, C.; Hamburg, M. Space-efficient Identity Based Encryption Without Pairings. In Proceedings of the 48th Annual IEEE Symposium on Foundations of Computer Science (FOCS’07), Providence, RI, USA, 21–23 October 2007; IEEE Computer Society: Los Alamitos, CA, USA, 2007; pp. 647–657. [Google Scholar]
- Teseleanu, G.; Tiplea, F.L.; Iftene, S.; Nica, A.M. Boneh-Gentry-Hamburg’s Identity-Based Encryption Schemes Revisited. Cryptology ePrint Archive, Paper 2016/516. 2016. Available online: https://eprint.iacr.org/2016/516 (accessed on 10 November 2025).
- Barua, R.; Jhanwar, M.P. On the Number of Solutions of the Equation Rx2 + Sy2 = 1 (mod N). Sankhya A 2010, 72, 226–236. [Google Scholar] [CrossRef] [Scilit]
- Gentry, C.; Peikert, C.; Vaikuntanathan, V. Trapdoors for Hard Lattices and New Cryptographic Constructions. In Proceedings of the 40th Annual ACM Symposium on Theory of Computing, Victoria, BC, Canada, 17–20 May 2008; Dwork, C., Ed.; ACM: New York, NY, USA, 2008; pp. 197–206. [Google Scholar]
- Agrawal, S.; Boneh, D.; Boyen, X. Efficient Lattice (H)IBE in the Standard Model. In Advances in Cryptology—EUROCRYPT 2010, Proceedings of the 29th Annual International Conference on the Theory and Applications of Cryptographic Techniques; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2010; Volume 6110, pp. 553–572. [Google Scholar]
- Peikert, C. Bonsai Trees (or, Arboriculture in Lattice-Based Cryptography). Cryptology ePrint Archive, Paper 2009/359. 2009. Available online: https://eprint.iacr.org/2009/359 (accessed on 9 February 2026).
- Cremona, J.; Rusin, D. Efficient Solution of Rational Conics. Math. Comput. 2003, 72, 1417–1441. [Google Scholar] [CrossRef] [Scilit]
- Goldreich, O. Modern Cryptography, Probabilistic Proofs and Pseudorandomness; Algorithms and Combinatorics; Springer: Berlin/Heidelberg, Germany, 1998; Volume 17. [Google Scholar]
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 author. 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.