scieee AI-readable full text Open interactive document viewer

New Security Definitions, Constructions and Applications of Proxy Re-Encryption

Núñez Montañez, David Alejandro

Abstract

La externalización de la gestión de la información es una práctica cada vez más común, siendo la computación en la nube (en inglés, cloud computing) el paradigma más representativo. Sin embargo, este enfoque genera también preocupación con respecto a la seguridad y privacidad debido a la inherente pérdida del control sobre los datos. Las soluciones tradicionales, principalmente basadas en la aplicación de políticas y estrategias de control de acceso, solo reducen el problema a una cuestión de confianza, que puede romperse fácilmente por los proveedores de servicio, tanto de forma accidental como intencionada. Por lo tanto, proteger la información externalizada, y al mismo tiempo, reducir la confianza que es necesario establecer con los proveedores de servicio, se convierte en un objetivo inmediato. Las soluciones basadas en criptografía son un mecanismo crucial de cara a este fin. Esta tesis está dedicada al estudio de un criptosistema llamado recifrado delegado (en inglés, proxy re-encryption), que constituye una solución práctica a este problema, tanto desde el punto de vista funcional como de eficiencia. El recifrado delegado es un tipo de cifrado de clave pública que permite delegar en una entidad la capacidad de transformar textos cifrados de una clave pública a otra, sin que pueda obtener ninguna información sobre el mensaje subyacente. Desde un punto de vista funcional, el recifrado delegado puede verse como un medio de delegación segura de acceso a información cifrada, por lo que representa un candidato natural para construir mecanismos de control de acceso criptográficos. Aparte de esto, este tipo de cifrado es, en sí mismo, de gran interés teórico, ya que sus definiciones de seguridad deben balancear al mismo tiempo la seguridad de los textos cifrados con la posibilidad de transformarlos mediante el recifrado, lo que supone una estimulante dicotomía. Las contribuciones de esta tesis siguen un enfoque transversal, ya que van desde las propias definiciones de seguridad del recifrado delegado, hasta los detalles específicos de potenciales aplicaciones, pasando por construcciones concretas.

Full text

New Security Definitions, Constructions and Applications of Proxy Re-Encryption por David Alejandro N´u˜nez Monta˜nez Memoria presentada para optar al t´ıtulo de Doctor por la Universidad de M´alaga Directores: Isaac Agudo Ruiz Profesor Contratado Doctor Javier L´opez Mu˜noz Catedr´atico de Universidad Enero de 2016 Autor: David Alejandro Núñez Montañez http://orcid.org/0000-0002-3392-1530 EDitA: Publicaciones y Divulgación Científica. Universidad de Málaga Esta obra está bajo una licencia de Creative Commons Reconocimiento-NoComercial- SinobraDerivada 4.0 internacional: http://creativecommons.org/licenses/by-nc-nd/4.0/legalcode Cualquier parte de esta obra se puede reproducir sin autorización pero con el reconocimiento y atribución de los autores. No se puede hacer uso comercial de la obra y no se puede alterar, transformar o hacer obras derivadas. Esta Tesis Doctoral está depositada en el Repositorio Institucional de la Universidad de Málaga (RIUMA): riuma.uma.es D. Isaac Agudo Ruiz, Profesor Contratado Doctor del ´area de Ingenier´ıa Telem´atica del Departamento de Lenguajes y Ciencias de la Computaci´on de la Universidad de M´alaga, y D. Fco. Javier L´opez Mu˜noz, Catedr´atico de Universidad del ´area de Ingenier´ıa Telem´atica del Departamento de Lenguajes y Ciencias de la Computaci´on de la Universidad de M´alaga, CERTIFICAN QUE: D. David Alejandro N´u˜nez Monta˜nez, Ingeniero en Inform´atica, ha realizado en el Departamento de Lenguajes y Ciencias de la Computaci´on de la Universidad de M´alaga, bajo nuestra direcci´on, el trabajo de investigaci´on correspondiente a su Tesis Doctoral, titulada: New Security Definitions, Constructions and Applications of Proxy Re-Encryption Revisado el presente trabajo, estimamos que puede ser presentado al tribunal que ha de juzgarlo, y autorizamos la presentaci´on de esta Tesis Doctoral en la Universidad de M´alaga. M´alaga, a 26 de octubre de 2015 Fdo: D. Isaac Agudo Ruiz Profesor Contratado Doctor ´ Area de Ingenier´ıa Telem´atica Fdo: D. Fco. Javier L´opez Mu˜noz Catedr´atico de Universidad ´ Area de Ingenier´ıa Telem´atica Agradecimientos El final de esta tesis doctoral coincide con el final de una etapa de mi vida, y al mismo tiempo, con el comienzo de una nueva. En este momento me doy cuenta de que aunque este trabajo lleve mi nombre, depende tambi´en del apoyo de muchas personas. Es por ello que tengo la necesidad de agradecer a aquellos que lo han hecho posible, y que, inevitablemente, forman ahora parte de mi vida. En primer lugar, quiero agradecer a mis directores, Isaac y Javier, por su apoyo y gu´ıa constante para que este trabajo saliera adelante. De Isaac tengo que resaltar su capacidad asombrosa para inventar y pensar desde otras perspectivas, que me ha sacado del atolladero en muchas ocasiones. A Javier le debo una gratitud inmensa por darme la oportunidad, la libertad y la confianza de trabajar en esta tesis doctoral. Ambos son magn´ıficos directores, no solo ya por su calidad cient´ıfica, sino por su calidad humana. Les estar´e siempre agradecido. A mi familia, tanto la de siempre como la que se ha ido incorporando, y a mis amigos, les agradezco su apoyo constante. Aunque a veces estemos muy lejos, para m´ı siempre est´ais muy cerca. De entre todos, quiero hacer una menci´on especial a mis padres, que me inculcaron el buscar lo que me apasione y me haga feliz. Es, sin lugar a dudas, el mejor consejo que he podido recibir. A todos mis compa˜neros de NICS Labs, actuales y pasados, que han hecho que no conozca lo que es el s´ındrome post-vacacional. Un mensaje especial para Fran y Ana, mis compis de despacho: espero que esta tesis me sirva para subir en la jerarqu´ıa social y ganarme el mismo respeto que la impresora. Finalmente, el agradecimiento m´as especial es para mis grandes amores: Lorena, desde el primer d´ıa me llenas de felicidad, y nada de esto ser´ıa posible sin tu compa˜n´ıa y complicidad. Daniel, aunque acabas de llegar, siento como si siempre hubieras estado conmigo. Me hac´eis sentirme completo y os quiero con locura. No puedo olvidar tampoco a mi Aceituno, con su continua sonrisa de perro y sus besos a deshoras. A todos vosotros, os doy las gracias de coraz´on. Contents 1 Introduction 1 1.1 Motivation and Scope . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.1.1 The Secure Data Sharing Scenario . . . . . . . . . . . . . . 3 1.1.2 Proxy Re-Encryption . . . . . . . . . . . . . . . . . . . . . 9 1.1.3 Challenges of Proxy Re-Encryption . . . . . . . . . . . . . 12 1.2 Goals and Contributions . . . . . . . . . . . . . . . . . . . . . . . 14 1.3 Thesisoutline............................. 17 1.4 Publications and Funding . . . . . . . . . . . . . . . . . . . . . . 19 2 Preliminaries 21 2.1 Mathematical Notation . . . . . . . . . . . . . . . . . . . . . . . . 21 2.2 Cryptographic primitives . . . . . . . . . . . . . . . . . . . . . . . 22 2.2.1 Symmetric Encryption . . . . . . . . . . . . . . . . . . . . 22 2.2.2 Public Key Encryption . . . . . . . . . . . . . . . . . . . . 23 2.2.3 HashFunctions ........................ 24 2.3 ProvableSecurity........................... 24 2.3.1 Security Notions of PKE . . . . . . . . . . . . . . . . . . . 24 2.3.2 Hardness Assumptions . . . . . . . . . . . . . . . . . . . . 26 2.3.3 The Random Oracle Model . . . . . . . . . . . . . . . . . 31 3 A Systematic Analysis of Proxy Re-Encryption 33 3.1 Introduction.............................. 33 3.1.1 Research Methodology . . . . . . . . . . . . . . . . . . . . 34 3.2 Preliminaries ............................. 35 3.2.1 Syntax of PRE schemes . . . . . . . . . . . . . . . . . . . 35 3.2.2 Security Models of Proxy Re-Encryption . . . . . . . . . . 37 3.2.3 Properties........................... 39 3.3 Analysis of Proxy Re-Encryption Schemes . . . . . . . . . . . . . 45 3.3.1 Review of Proxy Re-Encryption Schemes . . . . . . . . . . 45 3.3.2 Summary and Comparison . . . . . . . . . . . . . . . . . . 52 i Contents 3.3.3 Efficiency ........................... 53 3.4 Applications of Proxy Re-Encryption . . . . . . . . . . . . . . . . 58 3.4.1 PRE and the Secure Data Sharing Scenario . . . . . . . . 59 3.4.2 Other Applications of PRE . . . . . . . . . . . . . . . . . 67 3.5 Summary ............................... 67 4 Parametrizing Security Notions for Proxy Re-Encryption 69 4.1 Introduction.............................. 70 4.2 Definitions of Security for Proxy Re-Encryption . . . . . . . . . . 71 4.2.1 Oracles............................. 72 4.2.2 AttackModels......................... 74 4.2.3 Security Notions for PRE . . . . . . . . . . . . . . . . . . 76 4.3 Relations among PRE security notions . . . . . . . . . . . . . . . 78 4.3.1 Implications among PRE security notions . . . . . . . . . 78 4.3.2 Separations among PRE Security Notions . . . . . . . . . 80 4.3.3 Relations for multihop PRE . . . . . . . . . . . . . . . . . 84 4.3.4 Discussion........................... 86 4.4 Security Analysis of a Recent “CCA1-secure” PRE scheme . . . . 87 4.4.1 Description of the scheme . . . . . . . . . . . . . . . . . . 87 4.4.2 Attack under the IND-CCA1,1setting ............ 89 4.4.3 Analysis of the attack . . . . . . . . . . . . . . . . . . . . 91 4.5 Summary ............................... 92 5 New Proxy Re-Encryption Constructions 93 5.1 Proxy Re-Encryption Schemes Based on NTRU . . . . . . . . . . 94 5.1.1 Introduction.......................... 94 5.1.2 Definitions........................... 95 5.1.3 NTRUReEncrypt: A Bidirectional PRE Scheme Based On NTRU............................. 97 5.1.4 A Provably Secure Version of NTRUReEncrypt ....... 102 5.1.5 Some Experimental results . . . . . . . . . . . . . . . . . . 109 5.1.6 Towards a Unidirectional Version of NTRUReEncrypt ... 115 5.1.7 Summary ........................... 116 5.2 Application of Generic CCA-Secure Transformations to PRE . . . 117 5.2.1 Introduction.......................... 117 5.2.2 Relatedwork ......................... 119 5.2.3 Adapting the Fujisaki-Okamoto Transformation to PRE . 119 5.2.4 An Account of Flawed Schemes . . . . . . . . . . . . . . . 129 5.2.5 Applying the proposed transformation . . . . . . . . . . . 135 5.2.6 Towards Other Generic Transformations for PRE . . . . . 140 5.2.7 Applicability to NTRUReEncrypt ............... 143 ii Contents 5.2.8 Summary ........................... 144 6 Applications of Proxy Re-Encryption 147 6.1 BlindIdM: Privacy Preserving Identity Management as a Service . 148 6.1.1 Introduction.......................... 148 6.1.2 The Path to Identity Management as a Service . . . . . . . 149 6.1.3 BlindIdM:Privacy-PreservingIDaaS. . . . . . . . . . . . . 154 6.1.4 RelatedWork......................... 166 6.1.5 Summary ........................... 168 6.2 Data Confidentiality in Cloud-Based Hadoop Clusters . . . . . . . 168 6.2.1 Introduction.......................... 169 6.2.2 The Hadoop Framework . . . . . . . . . . . . . . . . . . . 171 6.2.3 PRE-based Delegated Access System for Hadoop . . . . . 173 6.2.4 Experimental results . . . . . . . . . . . . . . . . . . . . . 178 6.2.5 Relatedwork ......................... 179 6.2.6 Summary ........................... 180 6.3 Escrowed Decryption System . . . . . . . . . . . . . . . . . . . . . 180 6.3.1 Introduction.......................... 180 6.3.2 PKE with PRE-based Escrowed Decryption . . . . . . . . 182 6.3.3 Analysis of our solution . . . . . . . . . . . . . . . . . . . 186 6.3.4 Summary ........................... 189 7 Conclusions 191 7.1 Proxy Re-Encryption and the Secure Data Sharing Scenario . . . 191 7.1.1 Incentives ........................... 192 7.1.2 Towards application to the Real World . . . . . . . . . . . 193 7.2 Contributions ............................. 194 7.2.1 Better understanding . . . . . . . . . . . . . . . . . . . . . 194 7.2.2 Moresecurity ......................... 195 7.2.3 Better performance . . . . . . . . . . . . . . . . . . . . . . 195 7.2.4 Bringing theory and practice together . . . . . . . . . . . . 196 7.3 Futurework.............................. 196 A Resumen 199 A.1 Motivaci´on, retos y contribuciones . . . . . . . . . . . . . . . . . . 200 A.2 An´alisis sistem´atico del estado del arte sobre el recifrado delegado 204 A.2.1 Esquemas ........................... 205 A.2.2 Aplicaciones.......................... 205 A.3 Familia param´etrica de modelos de ataque . . . . . . . . . . . . . 205 A.3.1 Modelos de ataque y nociones de seguridad . . . . . . . . . 206 A.3.2 Relaciones entre nociones . . . . . . . . . . . . . . . . . . 207 iii Chapter 1. Introduction 1.1 Motivation and Scope It is a fact that the realization of the cloud computing paradigm has raised great expectations regarding performance, simplification of business processes, and, foremost, cost reduction [1]. At the same time, it is also true that these advancements have introduced new security and privacy risks [2]. Threat scenarios radically change when moving from resources that are fully controlled by the data owner to resources administrated by third party entities like public clouds. Nowadays, the great majority of systems, including those deployed by cloud providers, base their security on preventing potential attackers from accessing internal servers and databases, where users’ data is stored. To this end, there is a great variety of measures, with access control systems and network defense techniques being the most prominent. However, the premise of this approach is that the attackers should not be able to get inside a predetermined security perimeter, where the protected assets (in this case, users’ data) reside. The harsh reality is that, although crucial, these types of measures are often not enough. In addition to external attackers, which include not only “hackers” but also nation-scale adversaries, accidental data disclosures and insider attacks are also a menacing possibility. Countermeasures to these threats include the establishment of internal security policies and governance rules, and the reinforcement of access control strategies, but these simply reduce the situation to a trust problem. That is, in the end, there are no actual mechanisms that prevent cloud providers from breaking these measures, either by accident or intentionally. Moreover, in most cases, there is almost no risk of being discovered accessing users’ information without their consent. An interesting conflict appears in this scenario – users want to go to the cloud for its benefits, but at the same time, they are unwilling to provide their data to entities that they do not necessarily trust. The adoption of cloud services has been slowed by this dichotomy from the beginning. The introduction of more advanced security mechanisms that enable users to benefit from cloud services and still ensure the confidentiality of their information could help reduce the trust assumptions in the cloud, and hence, to break the aforementioned dichotomy. Therefore, it is necessary to depart from the traditional premise that shapes current cloud security and to assume that the measures defined above can be bypassed. A more realistic premise is to assume that the attackers have potential access to users’ data [3]. Under this assumption, the only plausible solution is therefore the use of cryptography, so outsourced data is stored in encrypted form. Thus, when traditional security measures fail, attackers will only obtain en- 2 1.1. Motivation and Scope crypted data. In a way, the deployed encryption mechanisms become the ultimate safeguard of data confidentiality. A critical principle of this solution is to design the system in such a way that even the provider itself does not have access to the corresponding decryption key; not doing this would again imply a strong trust assumption on the provider. However, a naive combination of this principle with traditional encryption primitives, both symmetric and asymmetric, can hinder the proper processing and sharing of outsourced information and negatively impact the functionality of the system. Therefore, this design decision requires the use of cryptographic primitives that transcend traditional ones, so data confidentiality can be guaranteed, but functionality still remain unaffected. 1.1.1 The Secure Data Sharing Scenario We have previously discussed the need for weakening the trust assumptions in outsourced settings, such as the cloud. To this end, encrypting the data prior to outsourcing strikes as an essential requirement. At the same time, it is also necessary that the implemented encryption techniques allow the preservation of data sharing, which is one of the most basic functionalities that is expected in such scenarios. We refer generically to this setting as the secure data sharing scenario. We will later describe several examples of use cases that require secure sharing in this data outsourcing setting. Note that data sharing is one of the simplest functionalities that is expected in a setting like this. In fact, there are more advanced functionalities, such as searching, or even computing, over encrypted data; yet, the data sharing functionality is very challenging as the distribution of access rights becomes difficult once the information has been encrypted and outsourced. Before continuing, it is necessary to understand which are the roles involved in the main interactions. In any data sharing scenario (regardless of whether there is outsourcing or not), there are three main separate roles: data producers, data owner, and data consumers. The most generic usage relation in this setting is that multiple data producers generate data which is owned by a data owner, who in turn can share it with multiple data consumers. An important aspect of this usage relation is that the data owner and data producers can be separate entities, not necessarily within the same security domain. This latter characteristic has great implications when it comes to designing secure, yet scalable, solutions, since this rules out conventional techniques, such as the use of public-key encryption alone. In addition, under our motivating scenario, we also introduce a fourth role that provides a data storage service, where information is encrypted. Figure 1.1 3 Chapter 1. Introduction Consumer DomainOwner Domain Storage Domain Cloud Service Provider Data Owner Other CSPs Data Consumers Data owner's devices Data Owner's application Encrypted data outsources data storage retrieves data trust relationship grants access to data Producer Domain produces data Data Producers Data owner's devices Figure 1.1: Roles and Domains in the Secure Data Sharing Scenario depicts these roles and domains, as well as the relationships and interactions between them. The following is a more detailed description of the identified roles: •Data Producer Domain: To this domain belong those entities that generate data. Since generation does not imply ownership, the distinction between data producer and data owner becomes necessary. However, data producers can participate in the protection of the data from the beginning, by encrypting it from the source. In addition, they can send the information directly to the storage provider, in this way decoupling this interaction from the data owner. •Data Owner Domain: This domain is centered on the subject that owns the data that is to be securely shared. The main function of the data owner is to authorize consumers to access his data. Note that the data owner can also (and most times does) act as a data producer, but this does not rule out scenarios where separate entities participate in data production. 4 1.1. Motivation and Scope We assume that the data owner interacts with other actors through a user agent, usually a browser or a specific application, running on a trusted computer. This domain is assumed to be completely trusted by the data owner. •Secure Storage Provider Domain: This domain is controlled by specialized entities that steward data owners’ information and provide a sharing service, without being able to learn anything. Given that cloud computing is the most prominent instantiation of the considered scenario, we will also refer to this actor as the cloud provider. This domain is assumed to be semi-trusted, since we assume that the provider will provide the service correctly, but, at the same time, it may have incentives for trying to read the data. This trust assumption is explained below in more detail. •Data Consumer Domain: This domain comprises the entities that are legitimate recipients of the information shared by the data owner, which include not only people, but also third-party services and data owner’s devices. Data consumers access the shared information through the storage service provided by the cloud. •External Domain: A fifth domain, omitted in Figure 1.1, comprises all the external actors that may have an interest in the protected information, such as hackers and nation-scale adversaries. However, none of these actors are either in charge of managing data or granted with any permission to read it. This type of adversary would have to deal with traditional security measures (e.g., physical security, firewalls, access control systems, etc.), and in a worst-case scenario, they should see nothing more than encrypted data. If the encryption scheme in use achieves an adequate security notion (e.g., indistinguishability under chosen-plaintext/ciphertext attacks), then we can assume that the data is secure. Any information that is to be protected must be encrypted from the source (i.e., data producer domain) and decrypted by the legitimate recipients (i.e., data consumer domain). Therefore, from a visibility point of view, the goal is that the storage provider domain and external domain should only see encrypted data, in any case. A naive solution for this scenario would be to use conventional encryption techniques (e.g., AES, RSA) and to share the decryption key with the parties designated by the data owner. Symmetric encryption cannot be used alone, since it implies that the same key is shared between producers, owner and consumers or, at least, that for each piece of encrypted data, producers and owner agree on a key, which is extremely inefficient. The typical solution would be to use 5 Chapter 1. Introduction some sort of hybrid encryption, where data is encrypted with a fresh random key using symmetric encryption, and the key is encrypted with public-key cryptography. The problem in our scenario is that the producers do not necessarily know in advance who are the intended consumers of the encrypted information. Therefore, the only possibility is that they encrypt the data under some common public key controlled by the data owner (e.g., the data owner’s public key); this implies that the data owner has to decrypt the data and subsequently encrypt it with a key known by the intended consumers; this decrypt-and-encrypt solution requires the data owner to be available online to re-encrypt the data when needed, which is not always possible, apart from being extremely inefficient. The problem gets increasingly complex when one considers multiple pieces of data, and diverse producers and consumers. It can be seen that this functionality, although simple, cannot be solved by traditional encryption techniques without resorting to complex key management procedures. In order to solve this problem, different types of cryptosystems have been proposed, Proxy Re-Encryption being the most prominent candidate. Proxy Re-Encryption (PRE) is a type of public-key encryption that allows a proxy entity to transform ciphertexts from one public key to another, without learning anything about the underlying data. Therefore, from a functional point of view, proxy re-encryption can be seen as a means of securely delegating access to encrypted information. In this thesis we postulate that proxy re-encryption is a prime candidate for constructing cryptographically-enforced access control systems where the protected resource is stored externally, since it enables dynamic delegation to encrypted information. In a PRE-based solution, private data can reside in the cloud in encrypted form and be shared to authorized users by means of re-encryption, while still remaining confidential with regard to unauthorized parties and the cloud provider itself. In addition, proxy re-encryption allows the data owner to delegate the access after the data is encrypted, which is important since in a typical data sharing scenario it may not always be possible to identify beforehand the access conditions to the protected data. The use of encryption for protecting data at rest can decrease the risks associated to data disclosures in this kind of scenario, since outsourced information can only be effectively shared if access has been delegated by the data owner. Secure data sharing is the most pressing functionality in the setting under consideration, since it can be seen as a first step towards realizing more advanced functionalities; for this reason, the scope of this thesis is set on it. Other functionalities, however, may require the aid of different cryptosystems. For example, there is a growing interest in the area of Searchable Encryption [4], a type of cryp- 6 1.1. Motivation and Scope tosystem that permits searching over encrypted data; this makes sense when it is necessary to retrieve a specific piece of data from an encrypted dataset, although it does not tackle the issue of sharing the results. The area of Fully Homomorphic Encryption [5], which enables generic computations over encrypted information, has an even bigger appeal. This type of cryptosystem has received a great deal of attention, even from outside the research community [6] due to its dazzling potential, although as we have seen before, its current state is far from being practical. In addition, fully homomorphic encryption is a disproportionate solution for the problem of secure data sharing, since this problem does not require generic computation capabilities. Threat model and trust assumptions As argued, in this scenario the most powerful threats may come from the cloud provider domain, since we assume that it can bypass its internal security safeguards. Thus, we consider it as the main adversary. It is also important to remark that, in this scenario, data consumers represent a lesser danger, since they are not as empowered as storage providers: if they are not previously authorized by the data owner, then they can be considered as belonging to the external domain; conversely, if they have been granted access to the protected data, then they are legitimized to read the data, so once the information is released, it is impossible for any access control system to prevent it from being disclosed. Based on the definitions given in [7], we identify three types of providers depending on the underlying trust assumptions: •Trusted: The cloud provider is a fully trusted entity, which provides a service in a correct and truthful manner. This is the type of provider which is widely assumed nowadays, since users entrust their data to providers without demanding strong protection mechanisms and, hence, they suppose that the providers will always be trustworthy. However, as we have explained before, this is not a realistic model of provider for different reasons. •Honest-but-curious: The provider follows the agreed protocol correctly, but it also stores or collects information about the users without their consent; for this reason, we may also say that the provider is semi-trusted.Depending on the nature of this information, there are two distinct, but not exclusive, subtypes of honest-but-curious cloud providers: –Data-curious: The provider has an incentive to read users’ data that is in its custody. Such an incentive could be, for example, selling users’ private information to third-parties for advertising or fraudulent 7 Chapter 1. Introduction operations; other motivations could be industrial espionage or political repression. –Access-curious: The provider collects information related to the access patterns of the user, which enables it to track users’ behavior and threaten their privacy. We additionally assume that honest-but-curious providers do not collude with authorized data consumers in order to read users’ data; in fact, once a data consumer has access to the data of the user, it would be trivial to share it with the cloud provider. •Malicious: The provider has the possibility to actively deceive the user, read the user’s data and collect access patterns; it may also collude with other entities (e.g., data consumers) to do so. A provider of this type may not follow the agreed protocols, so users cannot trust that they will do so. This is the most difficult type of adversary; however, it is the most realistic, since it actually models all the capabilities of a real provider. With this classification in mind, we will restrict the work in this thesis to datacurious providers,whichbehavecorrectlywithrespecttoprotocolfulfillment, but which have no hindrance to try to read users’ data. We will assume therefore that the cloud provider may have some incentive to read users’ data without their consent, but will not try to track users’ behavior and access patterns. Some application use cases Once we have described the generic secure data sharing scenario, it is useful to think of plausible application use cases that can potentially benefit from the utilization of cryptographically-enforced access control systems. Some of these use cases are: •Healthcare: These types of systems, which manage sensitive data such as patients’ information, diagnostic results and medical personnel data, are increasingly being computerized and externalized. Consequently, it is of paramount importance to properly protect the information stored in these systems. This requirement stems not only from common sense, but also from a regulatory imperative: for example, in the United States, the Health Insurance Portability and Accountability Act (HIPAA) dictates that appropriate technical safeguards must be put in place in order to control access to sensitive information, including the use of encryption techniques [8]. At the same time, the materialization of widespread communication technolo- 8 1.1. Motivation and Scope gies has also brought the possibility of exchanging this data with legitimate parties (e.g., external hospitals, insurance companies, pharmacies, etc.) in order to improve the service offered to patients. Therefore, similar problems to the ones exposed above arise. This scenario has been seen traditionally as the quintessential use case for secure data sharing, since it clearly illustrates the assets to protect, the threats and the actors involved. •Digital Rights Management (DRM): These systems are used to restrict the usage of copyrighted content, such as video, audio, books and software. The copyrighted content has to be shared with legitimate consumers, but at the same time, it is necessary to prevent access from any other entities. Thus, the relevance of the secure data sharing scenario to this use case is also immediate, especially when it is combined with a cloud-based delivery model, which is extremely common nowadays. •Big Data Analytics in the Cloud: Big Data Analytics represents a new opportunity for organizations to transform the way they market services and products through the analysis of massive amounts of data. However, small and medium size companies are not often capable of acquiring and maintaining the necessary infrastructure for running Big Data Analytics on-premise, so the cloud paradigm represents a natural solution to this problem. The idea of providing Big Data Analytics as a Service, such as Google Cloud Hadoop [9] and MapR’s Hadoop as a Service [10], is a very appealing solution for small organizations. This idea makes even more sense nowadays, since a lot of organizations are already operating using cloud services, and therefore, it is more sensible to perform analytics where the data is located (i.e., the cloud). The secure data sharing scenario fits in well with the outsourcing of Big Data processing to the cloud, since information can be stored in encrypted form in external servers in the cloud and processed only if access has been delegated. It can be seen that all these use cases share a common trait: the possibility of data being disclosed or stolen is unacceptable. At the same time, they show that the sharing functionality has to be preserved, since it is necessary for creating added value services (e.g., better medical assistance, content distribution, analytics, etc.). 1.1.2 Proxy Re-Encryption The previous sections have described the secure data sharing scenario. As pointed out, our research postulate is that proxy re-encryption is an appropriate candidate 9 Chapter 1. Introduction tool for supporting access delegation to encrypted information in this scenario. In this section, we give a more detailed overview of the concept of proxy reencryption and how it fits in as part of a solution to this scenario. The basic idea of proxy re-encryption is embodied by the ability of a proxy to transform ciphertexts under the public key of Alice into ciphertexts decryptable by Bob; to do so, the proxy must be in possession of a re-encryption key that enables this process. In addition, the proxy cannot learn any information about the encrypted messages, under any of the keys. From an abstract viewpoint, a proxy re-encryption scheme can be seen as a mechanism for the delegation of decryption rights. For this reason, in PRE literature, the parties involved are named in terms of a relationship of delegation. A typical proxy re-encryption environment involves at least three parties: •Delegator: This actor is the one that delegates his decryption rights using proxy re-encryption. We usually refer to the delegator as “Alice”. •Delegatee: The delegatee is granted a delegated right to decrypt ciphertexts that, although were not intended for him in the first place, where re-encrypted for him with permission from the original recipient (i.e., the delegator). This actor usually takes the name “Bob”. •Proxy: This actor is responsible for the re-encryption process that transforms ciphertexts under the delegator’s public key into ciphertexts that the delegatee can decrypt using his private key. The proxy uses the reencryption key during this process, and does not learn any additional information. Figure 1.2 depicts the main actors in a proxy re-encryption environment and their interactions. Since PRE is a special type of PKE, users also have a pair of public and private keys, as shown in the figure. Hence, anyone that knows a public key is capable of producing ciphertexts intended for the corresponding recipient; conversely, these ciphertexts can only be decrypted using the corresponding decryption key. The distinctive aspect is that ciphertext can be re-encrypted in order to be decryptable by a different private key than the one originally intended. In addition to the actors shown in Figure 1.2, some schemes may involve more parties such as time servers (in the case of temporal proxy re-encryption schemes [11, 12]) and key generation centers (in the case of identity-based schemes [13, 14]). These are omitted here for the sake of generality. Since proxy re-encryption realizes the functionality of decryption rights, we have argued that it is a prime candidate for constructing cryptographically-enforced 10 1.1. Motivation and Scope Alice (Delegator) Bob (Delegatee) Proxy delegation of decryption rights cB=ReEnc(rkA→B,c A) cA=Enc(pkA,m) rkA→B (pkA,sk A) (pkB,sk B) Figure 1.2: Main actors and interactions in a PRE environment access control systems where the protected resource is stored externally. Note that there is a direct correspondence between the actors involved in proxy reencryption and those associated to the secure data sharing scenario, as shown in Table 1.1. Table 1.1: Correspondence between PRE and the secure data sharing scenario Proxy Re-Encryption Secure Data Sharing Delegator Data Owner Delegatee Data Consumer Proxy Secure Storage Provider Anyone Data Producer Ciphertexts Outsourced information Re-Encryption Enforcement of access delegation Taking this into consideration, it seems at first glance that the suitability of proxy re-encryption to our scenario is immediate. As hinted before, in a PRE-based solution to the secure data sharing scenario, private data is initially encrypted by data producers (which can be any entity that knows the proper public key) and outsourced to a semi-trusted proxy (i.e., storage provider in the cloud). By creating the corresponding re-encryption keys and giving them to the proxy, the data owner is effectively authorizing data consumers to access his data. The proxy enforces these access delegations through the re-encryption procedure using the corresponding re-encryption keys, while the information that is protected still remains confidential with respect to unauthorized parties and the proxy itself. 11 Chapter 1. Introduction re-encryption keys. In addition, we discuss which of these security notions represent meaningful adversarial models for PRE. Finally, we show how a recent PRE scheme is based on a security model that does not capture chosen-ciphertext attacks through re-encryption, and for which we describe an attack under a more realistic security notion. This attack emphasizes the fact that PRE schemes that leak re-encryption keys cannot achieve strong security notions. Chapter 5 presents new proxy re-encryption constructions, consisting of two separate contributions. First, we explore the use of lattice-based cryptography for constructing more efficient PRE schemes. In this chapter, we present NTRUReEncrypt, a new bidirectional and multihop proxy re-encryption scheme based on NTRU [16], a widely known lattice-based cryptosystem. We give two versions of our scheme: the first one is based on the conventional NTRU encryption scheme and, although it lacks a security proof, remains as efficient as its predecessor; the second one is a provably-secure variant that is safe against chosen-plaintext attacks. For the second part, we focus on the construction of more secure PRE schemes by means of generic transformations. To this end, we study the adaptation of conventional generic transformations, such as Fujisaki-Okamoto [17] and REACT [18], originally designed to achieve CCA-security. We show that a direct and naive application of these transformations leads to flawed schemes, and give several failed examples from the literature. In addition, we propose an extension of the Fujisaki-Okamoto transformation for PRE, which achieves a weaker form of CCA-security in the random oracle model, and identify the conditions for applying it. Chapter 6 is devoted to new applications of proxy re-encryption, with a clear focus on the secure data sharing scenario. As described in this introduction, this scenario can be seen as a generalization of different application use cases. In this chapter, we describe the integration of PRE within some of these use cases. Our first proposal is BlindIdM,amodelforprivacy-preservingIdentityManagementas a Service, with the intention of enabling organizations to outsource their identity management to the cloud in a secure way, without the cloud provider being able to read the identity information. We show how PRE can be integrated to SAML 2.0, a standard identity management protocol [19], as an example of instantiation of the BlindIdM model. A second proposal is presented next, this time focusing on the Big Data Analytics use case, as introduced in Section 1.1.1. We describe an extension to the Apache Hadoop system [20] where stored data is always encrypted and encryption keys do not need to be shared between different data sources; the use of proxy re-encryption allows stored data to be re-encrypted into ciphered data that the cluster nodes can decrypt with their own keys when a job is submitted. The last application we present differs from the others, as it is not 18 1.4. Publications and Funding directly related to the cloud data sharing scenario. In Section 6.3 we describe an escrowed encryption system based on proxy re-encryption. The goal of this system is to serve as a typical public-key encryption scheme, but at the same time, the decryption procedure is escrowed by means of proxy re-encryption; a key aspect of this proposal is that the escrowed decryption can only be achieved with the collaboration of a set of trusted custodians, which are specialized entities chosen by the users. Finally, Chapter 7 summarizes the contributions of this thesis and describes lines of future work and open research problems. 1.4 Publications and Funding The work in this thesis has led to several publications in journals and international conferences. Next, we provide a list of these contributions, organized by the type of publication: Articles in ISI-JCR Journals •D. Nu˜nez, and I. Agudo. BlindIdM: A Privacy-Preserving Approach for Identity Management as a Service. In International Journal of Information Security, vol. 13, issue 2, Springer, pp. 199-215, 2014. ISI JCR Impact Factor 2014: 0.963. International conference papers •D. Nu˜nez, I. Agudo, and J. Lopez. A Parametric Family of Attack Models for Proxy Re-Encryption. In Proceedings of the 28th IEEE Computer Security Foundations Symposium (CSF),IEEEComputerSociety,pp.290-301, 2015. •D. Nu˜nez, I. Agudo, and J. Lopez. NTRUReEncrypt: An Efficient Proxy Re-Encryption Scheme Based on NTRU. In Proceedings of the 10th ACM Symposium on Information, Computer and Communications Security (AsiaCCS), pp. 179-189, 2015. •D. Nu˜nez, I. Agudo, and J. Lopez. Delegated Access for Hadoop Clusters in the Cloud. In Proceedings of the 6th IEEE International Conference on Cloud Computing Technology and Science (CloudCom 2014),IEEEComputer Society, pp. 374-379, 2014. 19 Chapter 1. Introduction •D. Nu˜nez, I. Agudo, and J. Lopez. Integrating OpenID with Proxy Re- Encryption to enhance privacy in cloud-based identity services. In Proceedings of the 4th IEEE International Conference on Cloud Computing Technology and Science (CloudCom 2012),IEEEComputerSociety,pp. 241-248, 2012. Other research papers under submission at this stage: •D. Nu˜nez, I. Agudo, and J. Lopez. Analysis of Proxy Re-Encryption Schemes and their Application to Cloud Data Sharing. Submitted to Future Generation Computer Systems. ISI JCR Impact Factor 2014: 2.786. •D. Nu˜nez, I. Agudo, and J. Lopez. On the Application of Generic CCA- Secure Transformations to Proxy Re-Encryption. Submitted to Security and Communication Networks. ISI JCR Impact Factor 2014: 0.72. Apart from these publications, there are other works that have been developed in parallel and that are indirectly related to this thesis. These additional publications are listed next, sorted by date: •I. Agudo, D. Nu˜nez, G. Giammatteo, P. Rizomiliotis, and C. Lambrinoudakis. Cryptography Goes to the Cloud. In Proceedings of the 1st International Workshop on Security and Trust for Applications in Virtualised Environments (STAVE 2011), C. Lee, J-M. Seigneur, J. J. Park, and R. R. Wagner Eds., Communications in Computer and Information Science 187, Springer, pp. 190–197, 2011. •C. Alcaraz, I. Agudo, D. Nu˜nez, and J. Lopez. Managing Incidents in Smart Grids `a la Cloud. In Proceedings of the 3rd IEEE International Conference on Cloud Computing Technology and Science (CloudCom 2011), IEEE Computer Society, pp. 527-531, 2011. The work in this thesis has been funded by a FPI fellowship from the Junta de Andaluc´ıa as part of the project PISCIS (P10-TIC-06334). In addition, parts of this work have received support from the projects FISICCO (P11-TIC-07223), PERSIST (TIN2013-41739-R), ARES (CSD2007-00004), and SPRINT (TIN2009- 09237). 20 Chapter 2 Preliminaries This section provides an overview of basic topics upon which this thesis is grounded. Apart from basic notion used throughout this thesis, we review here the most common cryptographic primitives. In addition, we also address the topic of provable security, an area of cryptography that deals with the analysis of the security of cryptosystems using mathematical proofs. 2.1 Mathematical Notation We use the ⊕symbol to denote the exclusive-or operator, and || to denote the concatenation operator. The ⊥symbol is used for representing an error message. We denote by �·�and �·� ∞the vector Euclidean norm and infinite norm, respectively. Throughout this thesis, we use the asymptotic notations ω(·),O(·)andΩ(·). The expression ω(g(n)) denotes the class of functions that dominate g(n) asymptotically (i.e., for sufficiently large n). That is, f(n)=ω(g(n)) means that f(n) grows strictly faster than g(n). For example, a linear function (e.g., f(n)=n) dominates a logarithmic function (e.g., g(n)=logn), since, asymptotically, it grows much faster; thus, n=ω(log n). A slightly different notion is O(g(n)), which denotes the class of functions that set an upper bound on g(n), asymptotically. That is, f(n)=O(g(n)) means that f(n)growsnofasterthang(n). Conversely, Ω(g(n)) denotes the class of functions that set a lower bound on g(n), asymptotically. That is, f(n)=Ω(g(n)) means that f(n) grows no slower than g(n). Based on this notation, we say that a function f(n) is negligible if f(n)=n−ω(1). 21 Chapter 2. Preliminaries Finally, in some cases we use the expression poly(n)todenotetheclassoffunctions which are expressible as polynomials in n. 2.2 Cryptographic primitives In this section we review the basic cryptographic primitives that we use throughout this thesis, such as symmetric encryption, public-key encryption and hash functions. 2.2.1 Symmetric Encryption Symmetric encryption, or more accurately, symmetric-key encryption, is a class of encryption algorithms where the parties involved share a common secret (i.e., the key), which is used is used when they want to communicate secretly with each other [21]. Therefore, the sender uses the key to encrypt the message, and the receiver uses the same key to decrypt it. The following is a generic definition of the syntax of any symmetric encryption scheme. Definition 2.1 (SKE scheme).A symmetric-key encryption scheme is a tuple of algorithms (KeyGen,Enc,Dec): •KeyGen(λ)→K. On input security parameter λ, the key generation algorithm KeyGen outputs a key K∈K. •Enc(K, m)→c. On input a key Kand a message m∈M, the encryption algorithm Enc outputs a ciphertext c∈C. •Dec(K, c)→m. On input a key Kand a ciphertext c∈C, the decryption algorithm Dec outputs a message m∈M. The sets of all possible keys, messages and ciphertexts are denoted by K,Mand C, respectively. Once we have defined the syntax, we can establish the correctness condition for symmetric encryption. In order to say that a symmetric encryption scheme is correct it must satisfy a basic condition: for every key K∈Kand every m∈M, then it holds that Dec(K, Enc(K, m)) = m. The main two types of symmetric encryption algorithms are: 22 2.2. Cryptographic primitives •Stream ciphers,whereeach“digit”ofthemessageisprocessedindependently with a digit of the key. The One-Time Pad (OTP) is a prime example of stream cipher, where the message is XORed with a random key of the same length; the security of the OTP crucially depends on that the key is never reused (i.e., the key can only be used “one time”). •Block ciphers, which are designed to operate over units of a predetermined size (i.e., blocks). For instance, the Advanced Encryption Standard (AES), originally proposed by Daemen and Rijmen [22] and standarized by the US’ National Institute of Standards and Technology (NIST), and widely recognized as the most used block cipher nowadays, has a block size of 128 bits. 2.2.2 Public Key Encryption As opposed to symmetric encryption, in public-key encryption (PKE) it is not assumed that communicating parties share any common secret. Instead, PKE requires two separate keys, one public,usedtoencryptmessages,andoneprivate,usedtodecryptthecorrespondingciphertexts;thesetwokeysarelinkedto each other by some mathematical properties that depend on each PKE scheme. For this reason, public-key encryption is sometimes called asymmetric encryption. The syntax of any PKE scheme is as follows: Definition 2.2 (PKE scheme).A public-key encryption scheme is a tuple of algorithms (KeyGen,Enc,Dec): •KeyGen(λ)→(pk, sk). On input security parameter λ, the key generation algorithm KeyGen outputs a pair of public and private keys (pk, sk). •Enc(pk, m)→c. On input the public key pk and a message m∈M, the encryption algorithm Enc outputs a ciphertext c∈C. •Dec(sk, c)→m. On input the secret key sk and a ciphertext c∈C, the decryption algorithm Dec outputs a message m∈Mor the symbol ⊥indicating cis invalid. The plaintext and ciphertext spaces are denoted by Mand C, respectively. As for symmetric encryption, it is necessary to define under what conditions a PKE is correct. Although similar to symmetric case, this definition takes the asymmetry of the keys into consideration. The correctness condition for PKE 23 Chapter 2. Preliminaries schemes is as follows: for every pair of public and private keys (pk, sk) that results of KeyGen(λ)andeverym∈M, then it holds that Dec(sk, Enc(pk, m)) = m. 2.2.3 Hash Functions A cryptographic hash function (or simply, hash function) is a deterministic algorithm Hthat maps inputs of arbitrary size to fixed-length outputs in an efficient way. In order to be considered secure, hash functions must meet some minimum requirements, such as pre-image resistance (it should not be possible to find an input that hashes to a given output), second pre-image resistance (it should not be possible to find a second input that hashes to the same value as a given input), and collision resistance (it should not be possible to find two inputs that hash to the same value). 2.3 Provable Security In this section we briefly review some of the basic concepts on provable security, and in particular, those specific to public-key encryption. Later on, these concepts will be reused when analyzing the security of proxy re-encryption schemes. As described before, provable security deals with the analysis of the security of cryptosystems using mathematical proofs. Often, these proofs are offered in the form of reductions, which are formal argumentations where an algorithm that transforms one problem (e.g., factoring large numbers)into another problem (e.g., breaking some security goal of a given cryptosystem) is defined. It could appear at first sight that this “reductionist approach” is somewhat weak due to its conditional nature [23], but, in fact, it had made possible the rigorous analysis of the security of a myriad of cryptosystems, in an elegant, yet powerful, way. In order to create these proofs, it becomes necessary first to rigorously model the security goals of the cryptosystem and the adversarial capabilities that are allowed. This is explained in more detail below. 2.3.1 Security Notions of PKE In the context of PKE, security notions are usually defined as the combination of a security goal and an attack model [24]. Throughout this thesis, we focus on 24 2.3. Provable Security the indistinguishability of encryptions (IND) goal, which formalizes the inability of an adversary to distinguish which message a given ciphertext encrypts. A weaker goal is one-wayness (OW), which represents the inability of an adversary to extract the underlying plaintext from a given ciphertext. The strongest goal is non-malleability (NM), where an adversary should not be able to produce ciphertexts such that, for a given ciphertext, the plaintexts are meaningfully related. With regard to attack models, three options are usually considered: (i) chosenplaintext attack (CPA), (ii) non-adaptive chosen-ciphertext attack (CCA1), and (iii) adaptive chosen-ciphertext attack (CCA2). In a CPA model, the only capability of the adversary is to encrypt plaintexts of her choice (althought this capability is inherent in a public-key cryptosystem). Under CCA1, the adversary is also given a decryption capability (i.e., a decryption oracle) but only for its use before receiving the challenge ciphertext. Finally, in the CCA2 model, the adversary may use the decryption oracle in any moment, with the only restriction of not asking for the decryption of the challenge ciphertext. Therefore, a security notion can be seen as a tuple goal-atk,wheregoal ∈{OW, IND, NM},andatk ∈ {CPA, CCA1, CCA2}. It can be seen that these attack models are differentiated by the changes on the decryption capabilities of the adversary, which can be modeled through the availability of a decryption oracle. Informally, a decryption oracle is a function Odec(·) that the adversary can query on any ciphertext c(except the challenge ciphertext c∗) and that outputs the decryption of cwith the target secret key. No additional oracles are necessary for describing the above notions of security for PKE. As mentioned above, in this thesis we focus on the indistinguishability goal, so we are concerned with three possible security notions for PKE. The following definitions, adapted from [24], comprise these security notions in a formal manner. Definition 2.3 (Indistinguishability game [24]).Let Π=(KeyGen,Enc,Dec)bea public-key encryption scheme, A=(A1,A 2)a polynomial-time adversary, and Ω1 and Ω2the set of available oracles for A1and A2, respectively. For atk ∈{CPA, CCA1,CCA2},n∈N, and δ∈{0,1}, the indistinguishability of encryptions game is defined by the experiment Experiment ExpIND-atk Π,A,δ(n) (pk∗,sk∗)R ←− KeyGen(n); (m0,m 1,s)←A1(pk∗); c∗←Enc(pk∗,m δ); d←A2(m0,m 1,s,c ∗); return d 25 Chapter 2. Preliminaries where If atk =CPA then Ω1=∅and Ω2=∅ If atk =CCA1 then Ω1={Odec}and Ω2=∅ If atk =CCA2 then Ω1={Odec}and Ω2={Odec} Definition 2.4 (Advantage [24]).Let Πbe a public-key encryption scheme and Aa polynomial-time adversary. For atk ∈{CPA,CCA1,CCA2}and n∈N, the advantage of Ais given by AdvIND-atk Π,A (n)=|Pr[ExpIND-atk Π,A,1(n)=1]−Pr[ExpIND-atk Π,A,0(n)=1]| We say that the encryption scheme Πis IND-atk secure if the advantage AdvIND-atk Π,A (n) is negligible. 2.3.2 Hardness Assumptions In previous sections, we mentioned that provable-secure cryptographic schemes base their security upon the hardness of problems that are conjectured to be hard. That is, the proofs of security of these schemes are in fact reductions to the difficulty of some of these hard problems, which are usually well-defined and studied, to the extent that no efficient algorithms are known to solve them. The conjectures about the difficulty of such problems are known in cryptography as hardness assumptions. In this section we briefly describe some of the problems that lead to the hardness assumptions referred throughout this thesis, categorized by their nature. Discrete Logarithm and Diffie-Hellman Problems This family of problems is circumscribed to certain kinds of algebraic groups that have cryptographic applications. Before proceeding with the definition of these hard problems, it is necessary to give some general definitions, although we will assume that the reader is familiar with the topic. A group, denoted by G, is an algebraic structure that combines a set of elements with a binary operation defined over them, that satisfies the closure and associativity properties, and that guarantees the existence of the identity and inverse elements. In the following, we will assume that Gis a group of order q, whose operation is denoted by multiplication. By the definition of an algebraic 26 2.3. Provable Security group, the multiplication of any pair of elements of the group yields a result within the group; in other words, the group is closed under the multiplication operation. Knowing this, if one operates an element x∈Gby itself several times, this can be seen as an exponentiation. Since the group is closed under the multiplication, then xn∈Gfor any n∈Z.Ageneratorgis an element of G such that G={g1,g2,...,gq}.Itissaidthenthatggenerates Gand denoted as G=<g>. The inverse function to the exponentiation is called the discrete logarithm. Informally, let y=xn,thenn=log xyis the discrete logarithm of yin base x. The discrete logarithm is a cornerstone concept in cryptography, since for certain kinds of groups, it can be shown that no efficient algorithm exists for computing it. Among these groups, we find, for example, the large prime order subgroups of Zpfor pprime. Based on this, the following is a definition of the problem of computing the discrete logarithm for generic groups. Definition 2.5 (Discrete Logarithm Problem (DL)).Given a tuple (g,ga)∈G2, where a∈Zq, the DL problem in Gis to compute a. Although the DL assumption appears at the heart of most cryptosystems based on a group structure, it is often considered an overly weak assumption [25]. Based on the DL problem, Diffie and Hellman defined a key exchange protocol in their seminal paper “New Directions on Cryptography” [26]. The security of their protocol implicitely defined what later was dubbed as the Computational Diffie- Hellman problem (or simply, the Diffie-Hellman problem). Definition 2.6 (Computational Diffie-Hellman Problem (CDH)).Given a tuple (g,ga,gb)∈G3, where a, b ∈Zq, the CDH problem in Gis to compute gab. There is no efficient algorithm for solving this problem, for a sufficiently large group. In fact, the most efficient method for solving CDH is to solve the DL problem: on input a tuple (g,ga,gb), one computes aas the discrete logarithm of gain base g, and outputs (gb)aas the result. The CDH assumption has been used in many cryptosystems, but as in the case of the DL assumption, sometimes it is also too weak. For this reason, the decisional version of the CDH problem is often considered. Definition 2.7 (Decisional Diffie-Hellman Problem (DDH)).Given a tuple (g,ga,gb,gc)∈G4, where a, b, c ∈Zq, the DDH problem in Gis to decide whether c=ab. The Decisional Diffie-Hellman problem is specially useful in cryptography since 27 Chapter 3. A Systematic Analysis of Proxy Re-Encryption with a proxy entity, so it can first decrypt the ciphertext and then re-encrypt it using the public key of the new recipient. However, this solution is clearly not suitable for all cases, as it requires a high level of trust in the proxy, enough to entrust him the secret key of the original recipient. It is clear that this solution would introduce numerous risks. Blaze, Bleumer and Strauss proposed in 1998 the first solution to this problem [43], with the introduction of what they called “atomic proxy cryptography”, now known as “proxy re-encryption” (PRE). In this solution, a semi-trusted proxy entity is granted a re-encryption key,aspecialkindofkeyusedduringthetransformation of ciphertexts for Alice into ciphertexts for Bob; this transformation process is performed without the proxy being able to read the underlying message. Since then, there have been multiple proposals of proxy re-encryption schemes, based on different hardness assumptions and primitives. In this chapter we analyze the most important contributions on proxy re-encryption constructions. From an abstract viewpoint, a proxy re-encryption scheme realizes the functionality of delegation of decryption rights,sinceitallowsauser(i.e.,thedelegator) to delegate the decryption rights to another user (i.e., the delegatee). This functionality is extremely useful in many applications; in this chapter, we also review several proposed applications of proxy re-encryption. In particular, we are especially interested on the application of proxy re-encryption to the problem of access delegation to encrypted data, which has a natural relevance on the secure data sharing scenario, as explained in the first chapter. 3.1.1 Research Methodology In order to perform a thorough survey on proxy re-encryption schemes and applications, we followed an ad-hoc methodology to identify and filter publications based on bibliometric criteria. A comprehensive bibliography on proxy re-encryption schemes and applications, carefully maintained by Shao [44], served as a first raw source of publications. On top of that, we manually added several relevant publications that were not included in this bibliography, which stem from our own study of the literature or through queries for relevant keywords to search engines. The result of this phase is two lists of publications, one focused on schemes (together with attacks and security analyses) and the other on applications. The list of schemes originally had 83 publications and the list of applications 69, totaling 152. Once the list of publications was prepared, it was necessary to define a filter for the list of proxy re-encryption schemes, given the workload associated to their 34 3.2. Preliminaries analysis. Although, in general, most of the papers were preliminarily studied, some of them were filtered out. We used the number of cites for each paper, as measured by Google Scholar, as an heuristic metric of the relevance of the paper. For instance, non-recent publications (e.g., before 2009) which have no cites yet, were marked as not relevant. However, manual verification of the discarded publications was required in order to rule out false negatives. The result of this phase is a collection of 58 publications, where 13 were from schemes and 45 from applications. 3.2 Preliminaries In this section we provide the basic definitions and concepts that will serve as the basis of our analysis. This includes syntax definition, security models and relevant properties. 3.2.1 Syntax of PRE schemes Basically, a PRE scheme has two types of functions: those that generate key material (KeyGen and ReKeyGen), and those that deal with ciphertexts and messages (Enc,ReEnc,andDec). Some of this functions are alike PKE functions: KeyGen produces pairs of public and secret keys, Enc generates a ciphertext that encrypts a message according to a certain public key, while Dec deciphers the ciphertext using the corresponding secret key. On top of these functions, a PRE scheme also defines functions to support the re-encryption functionality: ReKeyGen produces a re-encryption key between Alice and Bob, and ReEnc uses this key to transform ciphertexts originally intended for Alice into ciphertexts decryptable by Bob using his secret key. Most of proxy re-encryption schemes comply with the diagram shown in Figure 3.1, which depicts the flow of messages, ciphertexts and keys in a PRE environment. The following is a general definition of the syntax of a proxy re-encryption scheme, based on the ones from Canetti and Hohenberger [45] and Ateniese et al. [11]: Definition 3.1 (PRE scheme).A proxy re-encryption scheme is a tuple of algorithms (KeyGen,ReKeyGen,Enc,ReEnc,Dec): 35 Chapter 3. A Systematic Analysis of Proxy Re-Encryption pkA pkB skB Enc ReEnc Dec KeyGen ReKeyGen m cA cB rkA→B skA m Figure 3.1: General diagram of a proxy re-encryption scheme •KeyGen(n)→(pkA,sk A). On input security parameter n, the key generation algorithm KeyGen outputs (pkA,sk A), the public and secret keys for user A. •ReKeyGen(pkA,sk A,pk B,sk B)→rkA→B. On input the pair of public and secret keys (pkA,sk A)for user Aand the pair of public and secret keys (pkB,sk B)for user B, the re-encryption key generation algorithm ReKeyGen outputs a re-encryption key rkA→B. •Enc(pkA,m)→cA. On input the public key pkAand a message m∈M, the encryption algorithm Enc outputs a ciphertext cA∈C. •ReEnc(rkA→B,c A)→cB. On input a re-encryption key rkA→Band a ciphertext cA∈C, the re-encryption algorithm ReEnc outputs a second ciphertext cB∈Cor the error symbol ⊥indicating cAis invalid. •Dec(skA,c A)→m. On input the secret key skAand a ciphertext cA∈C, the decryption algorithm Dec outputs a message m∈Mor the error symbol ⊥indicating cAis invalid. The plaintext and ciphertext spaces are denoted by Mand C, respectively. Note that, although this definition is wide enough, there are more general definitions of the syntax of PRE schemes, such as the one from Ateniese et al. [11], where instead single encryption and decryption algorithms, there are sets of algorithms −→ Enc and −−→ Dec, defined over different ciphertext spaces. Figure 3.2 shows the relations among plaintext and ciphertext spaces for different kinds of PRE schemes, where (3.2a) represents PRE schemes with a single ciphertext space, while (3.2b) shows the case of two ciphertext spaces. Examples of PRE schemes with a single ciphertext space are [43, 45, 46, 47, 48, 49], while [11, 14, 50, 12] are schemes with two ciphertext spaces. Some schemes, such as 36 3.2. Preliminaries M C Enc Dec ReEnc (a) Single ciphertext space M C1C2 Enc1 Dec1 Enc2 Dec2 ReEnc (b) Two ciphertext spaces Figure 3.2: Transformations between plaintext and ciphertext spaces [13], exhibit an expansive nature on re-encryption, and technically, are defined over an infinite number of ciphertext spaces, since each re-encryption induces a different space. For the sake of simplicity, we opt for the generic (and simpler) syntax with a single ciphertext space. 3.2.2 Security Models of Proxy Re-Encryption Being proxy re-encryption an extension of public-key encryption, it is natural that the security models for PRE extend those of PKE. However, the ability to reencrypt ciphertexts presents an interesting challenge when facing the definitions of security for PRE. On the one hand, PRE constructions have to guarantee the security objectives of the scheme, such as confidentiality and validity of ciphertexts. On the other hand, they have to allow the transformation of ciphertexts by means of re-encryption. Intuitively, both goals seem to conflict with each other. Security Notions for PRE Similarly to PKE, the most usual security notions in PRE are indistinguishability against chosen-plaintext attacks (IND-CPA) and indistinguishability against chosen-ciphertext attacks (IND-CCA). Both notions capture inability of an adversary to distinguish ciphertexts for known messages, and are differentiated by when the oracles are available for the adversary. These security notions are formally defined as a two-phase security game: during the first phase, the adversary can use the available oracles, constrained by some conditions; next, before the second phase starts, the adversary freely chooses two messages and receives the challenge ciphertext, which is an encryption of one of them at random; next, he 37 Chapter 3. A Systematic Analysis of Proxy Re-Encryption can use the available oracles, again, constrained by some conditions; and finally, he has to guess which of the messages was encrypted. The restrictions applicable during the game are what actually differentiates the security notions. When the oracles are completely restricted throughout the game, the security notion is IND-CPA, while when they are permitted, the notion is IND-CCA. It is possible to define more fine-grained notions for IND-CCA, as in PKE: if oracles are forbidden during the second phase, then one obtains indistinguishability against non-adaptive chosen-ciphertext attacks (IND-CCA1); if not, we are alluding to the indistinguishability against adaptive chosen-ciphertext attacks (IND-CCA2) notion. The IND-CCA1 notion is seldom targeted in proxy re-encryption. For defining IND-CCA security in PRE it is necessary to forbid certain queries from the adversary. Just as in PKE the adversary cannot query the decryption oracle with the challenge ciphertext, in PRE the adversary should not be able to trivially win the game through queries to the decryption, re-encryption and re-encryption key generation oracles; however, such restrictions should allow the adversary to still query the decryption and re-encryption oracles with any ciphertext which is not derived from the challenge ciphertext. The restrictions to the oracles in PRE are usually defined using the concept of derivatives of the challenge ciphertext, first proposed by Canetti and Hohenberger in [45], which captures the idea of ciphertexts that are connected to the challenge by means of oracle queries. See Section 4.2 in the next chapter for more details about the concept of derivatives, and for a detailed description of possible attack models, parametrized as a function of the availability of the decryption and re-encryption oracles. An interesting and orthogonal concept to the aforementioned security notions is Replayable CCA (RCCA) originally defined for PKE [51]. This is a weaker form of IND-CCA where the adversary is able to make innocuous modifications to ciphertexts, as long as the original message is not altered. This notion naturally fits in the context of PRE, since the goal of PRE is to transform ciphertexts from one user to another, without changing the message. Assumptions The security models for PRE are also shaped by some additional assumptions. Perhaps the more important of these assumptions in the PRE context is the corruption model.Inastatic corruption model,theadversarymustdecidein advance whether to corrupt a user or not before asking for the generation of 38 3.2. Preliminaries the user’s keypair; with the term corruption we are referring to the adversary knowing the secret keys of the user. In contrast, in an adaptive corruption model, the adversary is free to corrupt users in any moment. Another interesting assumption is related to how the adversary obtains keys. In the knowledge of secret key model, the challenger generates the key material of all users, while in the chosen key model the adversary can adaptively choose public keys for malicious users [12]. See [52] for more insights about these models. As in PKE, the vast majority of proxy re-encryption schemes are examples of provable security. In some cases, the proofs of the security are given in the random oracle model, where hash functions are assumed to behave as random oracles, an idealization where the hash function is deterministic but its output is uniformly distributed at random in its image domain. When this assumption is not present, we say that we are in the standard model. The security of provable-secure schemes is defined in terms of reductions to hard problems. In other words, the schemes are proven secure, assuming that certain problem is hard. There is a multitude of hardness assumptions, some of them more prominent than others. The most usual are the Computational and Decisional Diffie-Hellman (CDH and DDH) problems in the case of generic groups, the Bilinear Decisional Diffie-Hellman (DBDH) problem in the case of groups with bilinear pairings, and the Learning With Errors (LWE) problem in the case of lattice-based schemes. 3.2.3 Properties In this section we review the main properties associated to proxy re-encryption schemes. Some of these properties are related to the ability of an adversary (including the proxy and the delegatees) for deriving key material. We will use the notation introduced by Wang et al. in [53] for describing some of these properties in a more formal manner. We will denote by X+Y→Zif element Zcan be derived from elements Xand Y; public information, such as the public parameters and the public keys, is intrinsically assumed. The converse case will be denoted by X+Y�Z. Directionality This property is associated to direction of the delegation, and is embodied by the re-encryption key. The delegation can be either unidirectional or bidirectional. 39 Chapter 3. A Systematic Analysis of Proxy Re-Encryption Unidirectional delegation means that decryption rights are delegated only from delegator to delegatee, and not in the other direction. Using the notation described above, we say that a PRE scheme is unidirectional when the following applies: rkA→B�rkB→A Otherwise, the scheme is bidirectional, so it is possible to compute rkB→Afrom rkA→B. The fact that a PRE scheme is bidirectional is not necessarily negative, but depending on the situation, it may not be a desirable characteristic. Since PRE can be seen as a mechanism for delegation of decryption rights, bidirectional schemes would be appropriate for scenarios where the trust relationship between delegators and delegatees is symmetric. However, this situation is not common for most applications. For bidirectional schemes, there is a recurring pattern that appears in some of them, related to how the re-encryption keys are constructed. Informally, these re-encryption keys contain a combination of the delegatee’s secret key and the inverse of the delegator’s secret key, so when they are used during re-encryption, the delegator’s secret key in the ciphertext can be substituted by the delegatee’s. More formally, this pattern appears in schemes where public keys are a function of the secret keys, and the secret key space and re-encryption key space are the same. Let us assume that the underlying structure of the secret key space has a group structure, where ∗is the operator. Then, in this pattern, re-encryption keys are of the form rkA→B=sk−1 A∗skB,wheresk−1 Ais the inverse of skAfor the ∗operator. Therefore, it is clear that when this pattern emerges, the converse re-encryption key can be easily computed as rkB→A=rk−1 A→B,sothescheme is bidirectional. A second result is that it is possible that a collusion between the proxy and one of the participants extracts the secret key of the other (e.g., skA=rk−1 A→B∗skB). We refer to this pattern as the “BBS pattern”, as the BBS98 scheme [43] was the first example. Other notable examples are the schemes from Canetti and Hohenberger [45], Weng et al. [54] and Xagawa and Tanaka [46]. Usually, the underlying group is multiplicative, although, for example, the scheme from Xagawa and Tanaka uses an additive group. For this reason, we preferred to describe this pattern with the generic operator ∗. Number of Uses We say a PRE scheme is single-use if ciphertexts are re-encryptable just once. This characteristic is usually associated to schemes with multiple ciphertext spaces, since this way the re-encryption can be constructed as a one-way transformations between ciphertext spaces, e.g., by means of pairings. 40 3.2. Preliminaries On the contrary, if ciphertexts are re-encryptable multiple times, the PRE scheme is said to be multi-use. This characteristic is usually associated to schemes with a single ciphertext space. We further classify multi-use schemes in three types according to the way they achieve this property: •True multi-use schemes: The main characteristic of this type of schemes is that the re-encryption function does not alter the form of the ciphertexts. That is, re-encrypted ciphertexts are identical in shape to original ciphertexts, except maybe for the random elements. For this reason, reencryption preserves the size of ciphertexts and the running time of the decryption does not depend on the number of re-encryptions of the ciphertext. Examples of this type of multi-use schemes are [43] and [45]. As an illustration, let us study the re-encryption procedure in [43]: the encryption of a message mfor the user Ais of the form cA=(mgk,gak), being ka random secret, and the re-encryption key for user Ato Bis computed as rkA→B=b a,whereaand bare the secret keys of users Aand Brespectively. The re-encryption function simply exponentiates the second element of the ciphertext to the re-encryption key, so the re-encrypted ciphertext is cB=(cA,1,c rkA→B A,2)=(mgk,(ga)b a)=(mgk,gbk). •Expansive multi-use schemes:Somemulti-useschemesarebasedonanit- erative method of key encapsulation. The idea is that a random secret, generated for each re-encryption key, acts as trapdoor for a trapdoor function applied to the random secret of the previous re-encryption; the current random secret is encrypted with the encryption function of the PRE scheme, so it can be further re-encrypted. Thus, the ciphertext contains a sort of chain of random secrets for each re-encryption, scrambled using trapdoor functions. The result of this procedure is that the ciphertext size grows linearly with the number of re-encryptions, and, as a consequence, the cost of decryption depends on the number of previous decryptions. A general method for constructing expansive multi-use schemes, depicted in Figure 3.3, is as follows: Let gTbe a trapdoor function with trapdoor Tand x1,...,x Nrandom secrets, then the general form of a ciphertext re-encrypted Ntimes will be: cN=(gx1(m),g x2(x1),...,g xN(xN−1),Enc(pkN,x N)) Re-encryption keys are of the form rki→j=(f(ski,x j),Enc(pkj,x j)), where fTis also a trapdoor function. The challenge in designing a scheme of this kind is to define the re-encryption function so the combination of Enc(pki,x i)andfski(xj)) results in gxj(xi), for all xi,x j, and without the proxy learning anything. 41 Chapter 3. A Systematic Analysis of Proxy Re-Encryption c0=Enc(pk0,m) c1=(gx1(m),Enc(pk1,x 1)) c2=(gx1(m),g x2(x1),Enc(pk2,x 2)) rk0→1=(fsk0(x1),Enc(pk1,x 1)) rk1→2=(fsk1(x2),Enc(pk2,x 2)) Figure 3.3: Re-encryption process in expansive multi-use PRE schemes •Limited multi-use schemes: Whereas the previous kinds of multiuse schemes support an indefinite number of re-encryptions, some recent proxy re-encryption schemes, in particular those based on lattices [46, 47, 48, 49], present a limited version of the multi-use property, since the re-encryption function introduces noise to the ciphertext. For this reason, and depending on the parameters used, the accumulated noise makes the decryption procedure to fail after a certain number of re-encryptions. This may even happen after just one re-encryption. Thus, schemes of this type are in an intermediate area between single-use and multi-use. For instance, the scheme we propose in Section 5.1 is of this type, as the number of possible re-encryptions varies with the parameters used; in particular, the average number of reencryptions that is supported varies from 5 to 50. Another interesting example is the scheme from Kirshanova [48], which is allegedly single-use, although that would ultimately depend on the choice of parameters. Collusion-safeness This property conveys the safeness of the delegator’s secret key against collusion attacks made by the delegatee and the proxy; that is, delegator’s secret key cannot be derived from the re-encryption key and the delegatee’s secret key: rkA→B+skB�skA However, this property may not be sufficient for some purposes. In most cases, such a collusion does reveal a weak secret associated to the delegator’s secret key skA.Insomeschemes,suchas[11]and[12],thisweaksecretcanbeused to create new re-encryption keys or to decrypt re-encryptable ciphertexts; to a 42 3.2. Preliminaries certain extent, the weak secret key enables to achieve the functionality of the re-encryption key generation function and the decryption function. Transitivity A PRE scheme is said to be transitive if the proxy alone is able to re-delegate decryption rights. That is, it can combine re-encryption keys to produce new ones. More formally: rkA→B+rkB→C→rkA→C As in the bidirectional case, transitiveness is not negative per se; it depends heavily on the scenario where the scheme is applied. However, transitive delegation is troublesome in general, because it is difficult for the original delegator to foresee the potential delegations which could occur. Schemes that present the BBS pattern are also transitive. This is easy to check: if rkA→B=sk−1 A·skBand rkB→C=sk−1 B·skC,thenrkA→C=rkA→B·rkB→C. Interactivity Recall that the general syntax of PRE presented in Section 3.2.1 included the secret key of the delegatee skBin the re-encryption key generation function. If this key is not needed, then the scheme is not interactive,sincere-encryptionkeys for delegatees can be produced without their participation; that is, the delegator is able to create a re-encryption key using his own secret key and the delegatee’s public key. More formally: skA→rkA→X,∀X On the contrary, an interactive scheme implies the participation of the delegatee; in most cases interactivity is an undesired property, as it introduces a communication overhead, and more worryingly, may be vulnerable to collusion-attacks for extracting the secret keys involved. However, interactive schemes can be used to implement delegation acceptance by the delegatee [11]; that is, re-encryption keys cannot be generated without the consent and participation of the delegatee. It is worth mentioning, that the BBS pattern introduced before produces interactive schemes, since the re-encryption key generation necessarily uses the secret keys of both users. Canetti and Hohenberger describe in [45] a simple secure 43 Chapter 3. A Systematic Analysis of Proxy Re-Encryption efficient. These schemes achieve CCA-security by integrating Schnorr signatures [66] with a PRE-version of hashed ElGamal encryption scheme. The first scheme, WDLC10a,followstheBBSpatternforbidirectionalschemes. Therefore,itis interactive, transitive and not resistant to collusions. In contrast to other schemes that follow this pattern, WDLC10a is single-use. The second scheme, WDLC10b, is very similar to the previous one, but produces re-encryption keys in a different way in order to be non-transitive. LV11 schemes Libert and Vergnaud proposed, first in [67] and later on in [12], several unidirectional schemes with chosen-ciphertext security in the standard model. Specifically, they achieve the RCCA notion, which is a relaxed version of CCA security. The first scheme, LV11a, is similar to AFGH06a,buttakesideasfromCH07,suchas the use of one-time signatures. It is unidirectional, single-use, collusion-resistant, not interactive and not transitive. Since it is defined in the RCCA model, it is possible to re-randomize ciphertexts. Seo et al. [68] detected an error in one of their security proofs, in which the adversary was able to distinguish the simulation from a real attack, and propose a way to amend it. The second scheme, LV11b,isatemporalversionofthepreviousone;asopposedtothetemporal scheme from Ateniese, AFGH06b, this scheme is not interactive. Additionally, it is the first PRE scheme that considers the chosen-key model. In addition to these schemes, Libert and Vergnaud also propose several variations of their schemes, without providing extensive descriptions and proofs. In particular, they show how the temporal scheme can be extended to allow temporal windows, instead of just single periods of time; they also introduce a conditional version of their scheme. XT10 scheme Xagawa and Tanaka presented in [46] the first proxy re-encryption scheme based on lattices. In particular, this scheme is based on the Learning With Errors (LWE) problem [32]. This scheme is reminiscent to the BBS98 scheme, but adapted to a lattice-based setting. It presents the same BBS pattern, although represented additively, so rkAB =skB−skA.Therefore,thisschemeisbidirectional, interactive, transitive and not resistant to collusions. The scheme is also multi-use, more specifically, of the limited multi-use type. 50 3.3. Analysis of Proxy Re-Encryption Schemes ABPW13 scheme Aono et al. proposed in [47] a lattice-based encryption scheme, ABPW13,which is proven CPA-secure in the standard model. This scheme is based upon a lattice cryptosystem from Lindner and Peikert [33], whose hardness relies on the LWE problem. ABPW13 is unidirectional, interactive, not transitive and limited multiuse. The scheme is not resistant to collusions from the proxy and the delegatee, as shown recently by [69]. The authors also state that ABPW13 is key-private; however, Nishimaki and Xagawa recently noted in [70] that, although the scheme ensures the anonymity of the delegator, the delegatee is exposed trivially, since its public key is contained in the re-encryption key, achieving then a partial form of key-privacy. A strong contribution from the authors is the estimation of security parameters for achieving desired levels of security. This estimation was done by approximating the cost of an exhaustive search attack to LWE. On top of this scheme, the authors construct a “CCA-secure” version in the random oracle model, using the generic conversion from Fujisaki and Okamoto [71]. However, this version is flawed because it does not perform the validation step during decryption of re-encrypted ciphertexts. If one forces this check, decryption will always fail in the case of re-encryption, breaking the correctness of the scheme. Kir14 scheme Kirshanova presented in [48] a lattice-based PRE scheme, which was reported to be CCA1-secure. The scheme is based on the CCA1-secure PKE scheme from Micciancio and Peikert [40], and its security is associated to the hardness of lattice problems, namely, the Learning With Errors and Short Integer Solution (SIS) [38] problems. Basically, Kirshanova extended the original PKE scheme to support re-encryptions, using the technique presented in [40] for trapdoor delegation. The scheme Kir14 is unidirectional, not interactive and resistant to collusions. The authors state that the scheme is single-use, although technically we consider it of the limited multiuse type, as the choice of parameters is what determines the number of possible re-encryptions. The authors prove on what conditions the re-encryption process preserves the correctness, but this proof only considers one hop; still, it would be possible that some sets of parameters permit multiple re-encryptions. We show in Section 4.4 an attack to this scheme in the CCA1 setting, and prove it actually satisfies a weaker notion of CCA1 where no re-encryption oracle is provided to the adversary. The attack makes use of a property first introduced by Canetti and Hohenberger in [45], called privacy 51 Chapter 3. A Systematic Analysis of Proxy Re-Encryption of re-encryption keys, which captures the notion of an adversary being unable to extract re-encryption keys from the knowledge of original and re-encrypted ciphertexts. We refined this property and show its relation to queries to the reencryption oracle. We show then how the Kir14 scheme leaks re-encryption keys when the re-encryption oracle is present, which is implied by the CCA1 security notion. NAL15 schemes For the sake of completeness, we also include in this analysis two proposals contained in this thesis (see Section 5.1). These proposals are based on the NTRU cryptosystem [16]. The first scheme, NAL15a, is originally named “NTRUReEncrypt” since it is a PRE-version of the original NTRUEncrypt scheme. NAL15a is bidirectional, multihop, and interactive, but not collusion-resistant, as it follows the usual BBS pattern. As the underlying NTRU scheme, the underlying structure of this scheme is a polynomial ring, so the operations performed are simply additions and multiplications of polynomials, which can be computed very efficiently, and can even be parallelized. Therefore, the key strength of this scheme is its performance. Experimental results show that this scheme outperforms others by an order of magnitude, in a similar way than NTRU does with respect to other PKE schemes. However, the original NTRU scheme does not have a proof of security, in the provable sense, and its security (and therefore of NAL15a) is only conjectured, which has been called the “NTRU assumption” [72]. The parameters for NTRU are then computed with regard to its resistance to attacks. To overcome this problem, we also propose a provably-secure variant that is proven CPA-secure under the hardness of the Ring-LWE problem, a variation of the LWE problem under a polynomial ring; this scheme is an extension of a provable-secure version of NTRU proposed by Stehl´e and Steinfeld [73]. This second PRE scheme, NAL15b, is identical to the previous one with respect to the properties. 3.3.2 Summary and Comparison We now summarize and compare the analyzed schemes in a single table. Table 3.1 shows this comparison, according to the following criteria: •Directionality: A single arrow (→) is used to represent a unidirectional scheme, whereas a double arrow (↔) denotes a bidirectional one. 52 3.3. Analysis of Proxy Re-Encryption Schemes •Use: Single-use schemes are represented by the letter ’S’, true multi-use schemes by the initials ’TM’, expansive multi-use schemes by ’EM’, and limited multi-use schemes by ’LM’. •Number of ciphertext spaces (#spaces): This column specifies the number of ciphertext spaces on which the scheme is defined. •Security: The achieved notion of security (e.g., CPA, CCA, RCCA) is presented, as well as whether is based or not in the random oracle model (RO or SM). •The “Based on” column describes the underlying structure on which the scheme is constructed. The possible values are “Group” for generic groups, “Pairing” for groups with bilinear pairings, and “Lattice” for schemes that are lattice-based. Additionally, the hardness assumption is also presented. •Collusion resistance: Schemes that are resistant to collusions are marked with �,andwith×otherwise. •Non-transitive: Schemes that are non-transitive are marked with �,and with ×otherwise. •Non-interactive: Schemes that are non-interactive are marked with �,and with ×otherwise. •The last column shows additional relevant characteristics of the analyzed schemes 3.3.3 Efficiency This section is devoted to analyzing the performance of several PRE schemes. This analysis will be made from two points of view: theoretical and empirical. The latter kind of study is is seldom tackled in the literature. As described in the general syntax of PRE, there are several functions in a PRE scheme. However, from a functional point of view, we are mainly interested in studying the computational costs for three of them: encryption of messages intended to be re-encrypted, re-encryption of ciphertexts, and decryption of re-encrypted ciphertexts. This decision is justified by the actual use of proxy re-encryption in applications, where ciphertexts are meant to be reencrypted. Therefore, functions such as non-delegatable encryption (denoted usually by “first-level encryption”) are out of the scope of this analysis, since could be achieve by means of traditional encryption schemes. 53 Chapter 3. A Systematic Analysis of Proxy Re-Encryption Table 3.1: Comparison of PRE schemes Scheme Dir. Use #spaces Security Based on Coll. res. Non-trans. Non-int. Other characteristics BBS98 [43] ↔TM 1CPA (SM) Group (DDH) × × × Perfect key-switching AFGH06a [11] →S 2 CPA (SM) Pairing (eDBDH) � � � Proxy invisible AFGH06b [11] →S 2 CPA (SM) Pairing (DBDH) �× × Temporary CH07 [45] ↔TM 1CCA (SM) Pairing (DBDH) × × × Perfect key-switching GA07a [13] →EM NCPA (RO) Pairing (DBDH) ×� � Identity-based GA07b [13] →S 2 CCA1 (RO) Pairing (DBDH) ×� � Identity-based CT07a [14] →EM NCPA (SM) Pairing (DBDH) ×� � Identity-based CT07b [14] →EM NRCCA (SM) Pairing (DBDH) ×� � Identity-based Mat07 [63] →S 1 CPA (SM) Pairing (DBDH) �× × Identity-based ABH09 [64] →S 2 CPA (SM) Pairing (eDBDH) � � � Key-private WDLC10a [54] ↔S 2 CCA (RO) Group (CDH) × × × WDLC10b [54] ↔S 2 CCA (RO) Group (CDH) ×�× LV11a [12] →S 2 RCCA (SM) Pairing (3w-DBDHI) � � � LV11b [12] →S 2 RCCA (SM) Pairing (1w-DBDHI) � � � Temporary, Chosen-Key model XT10 [46] ↔LM 1CPA (SM) Lattice (LWE) × × × ABPW13 [47] →LM 1CPA (SM) Lattice (LWE) ×�×Partial Key-Private Kir14 [48] →LM 1 CCA1∗(SM) Lattice (LWE) �×� NAL15a [49] ↔LM 1 - Lattice (NTRU) × × × NAL15b [49] ↔LM 1CPA (SM) Lattice (Ring-LWE) × × × 54 3.3. Analysis of Proxy Re-Encryption Schemes Theoretical analysis In this section we analyze and compare schemes from the theoretical standpoint. We omit from our analysis the schemes that are lattice-based, since their underlying structure varies greatly, the theoretical analysis of costs is very intricate and the results are not directly comparable. Therefore, the underlying structure of the analyzed schemes is groups, either generic ones or pairing-based. Usually, computational costs are analyzed in terms of the main operations performed, which in this case are the exponentiation and the pairing. These costs are denoted by teand tp,respectively. Itisimportanttonotethat,inthecase of pairing groups, the computational costs of operations are different depending on the group where are performed; in fact, operations in Gare more expensive than in GT.Forthisreason,whennecessarywewillmakethedistinctionbetween operations in G(denoted by te)andinGT(denoted by teT). Some of the schemes make use of a one-time signatures (OTS) for reaching CCA-security. In this case, the signature of a message using OTS, including key pair generation, is denoted by tS, while the verification of a signature is denoted by tV. Finally, the decryption of expansive multi-use schemes varies with the number Nof re-encryptions. The results of this analysis are presented in Table 3.2. It is interesting to see the great difference in performance between schemes. For instance, the BBS98 schemes only needs a few exponentiations, as opposed to more complex schemes, such as LV11a and CH07, which require up to five pairing operations for the decryption. This is due to the additional costs incurred by the achievement of CCA-security. Notable schemes are WDLC10a and WDLC10b, since they provide CCA-security but only require a few exponentiations. Note also how in the case of expansive multi-use schemes, the cost of decryption depends on the number of re-encryptions. With regard to space costs, these are mainly driven by the size of group elements. Note also that, in the case of pairing groups, GTadmits shorter representations than G. As in the case of computational costs, some schemes make use of OTS; the size of a signature is denoted by |σ|,whilethesizeofaverificationkeyis|svk|. The cost of ciphertexts in some schemes also depends on the size of the original message, |m|. Finally, in some cases, elements of Zqare also used. Table 3.3 shows the results of this analysis. It can be seen how expansive schemes increase the size of ciphertext linearly on each re-encryption. Similarly to the analysis of computational costs, CPA- schemes usually have lower size of ciphertexts, since CCA-schemes need to include additional elements for the validation of the ciphertexts (e.g., signatures). 55 Chapter 3. A Systematic Analysis of Proxy Re-Encryption Table 3.2: Computational costs of selected PRE schemes Scheme Encryption Re-encryption Decryption BBS98 2tetete AFGH06a te+teTtpteT AFGH06b tp+te+teTtpteT CH07 tp+4te+teT+tS4tp+2te+tV5tp+2te+teT+tV GA07a tp+2tetpNtp GA07b tp+3te4tp+2te2tp+te CT07a 2te+teT2tp(N+2)tp CT07b 3te+teT+tS2te+tV(7N+3)tp+2te+(N+1)tV Mat07 tp+3te+teTtp+teT2tp ABH09 2te+teT4tp+2teTteT WDLC10a 3te3te2te WDLC10b 3te3te2te LV11a 3te+teT+tS2tp+4te+tV5tp+te+teT+tV LV11b 5te+teT+tS4tp+8te+tV9tp+te+teT+tV Empirical analysis We complement the theoretical analysis with an experimental evaluation, based on previous work [49]. A selection of these schemes was implemented, with representation of all the kinds of PRE schemes; this time, lattice-based schemes were also included. The selected schemes are BBS98,AFGH06a,WDLC10a,LV11a, ABPW13,andNAL15a. Our execution environment was an Intel Core 2 Duo processor @ 2.66 GHz with 4 GB of RAM. Group-based schemes were implemented in Java using elliptic curve cryptography over a prime field. The NIST P-256 curve was used, which provides 128 bits of security [74]. Pairing-based schemes were implemented using the jPBC library [75], a pairingbased cryptography library for Java. As for the cryptographic details, we used a supersingular curve of the form y2=x3+x, with a 256-bit group order and 3072 bits for the field size, which achieves 128 bits of security (against the discrete logarithm problem in Gand GT) [76][77]. In this case, the pairing is symmetric (i.e., Type 1 pairing), which implies that operations in Gare costlier than in GT; for example, using these parameters, exponentiations in Gare 10 times costlier 56 3.3. Analysis of Proxy Re-Encryption Schemes Table 3.3: Space costs of selected PRE schemes Scheme CT Re-encrypted CT BBS98 2|G|2|G| AFGH06a |G|+|GT|2|GT| AFGH06b |G|+|GT|2|GT| CH07 |svk|+3|G|+|GT|+|σ| |svk|+3|G|+|GT|+|σ| GA07a |G|+|GT|(N+1)(|G|+|GT|) GA07b 2|G|+|GT|+|m| |G|+|GT|+2|m|+|id| CT07a 2|G|+|GT|(N+2)|G|+(N+1)|GT| CT07b 3|G|+|GT|+|svk|+|σ|(6N+3)|G|+(N+1)(|GT|+|svk|+|σ|) Mat07 2|G|+|GT|2|G|+|GT| ABH09 2|G|+|GT|2|GT| WDLC10a 2|G|+|m|+|Zq|2|G|+|m| WDLC10b 2|G|+|m|+|Zq| |G|+|m| LV11a |svk|+2|G|+|GT|+|σ| |svk|+4|G|+|GT|+|σ| LV11b |Zq|+|svk|+3|G|+|GT|+|σ| |Zq|+|svk|+7|G|+|GT|+|σ| Table 3.4: Experimental performance of several PRE schemes (in ms.) Scheme Encryption Re-encryption Decryption BBS98 11.07 11.48 11.21 AFGH06a 22.76 83.52 13.76 WDLC10a 22.52 22.29 11.89 LV11a 155.27 386.93 443.87 ABPW13 1.17 20.50 0.47 NAL15a 0.43 1.15 1.22 than in GT. For efficiency reasons, we have made extensive use of exponentiation and pairing preprocessing of frequently-used elements. With regard to lattice-based schemes, we implemented NAL15a as an extension of an available open-source Java implementation of NTRU [78]. We used the ees1171ep1 parameter set from [79], which is designed for 256 bits of security. The ABPW13 was implemented using the SageMath software, using the set of parameters proposed by the authors that correspond to 143 bits of security and 128-bit plaintexts. Table 3.4 shows the cost in ms. of the main operations of the selected PRE schemes. These figures were measured as the mean CPU time of 10.000 executions 57 Chapter 3. A Systematic Analysis of Proxy Re-Encryption for each type of operation. Roughly, the theoretical costs presented before are translated to an empirical setting. It is worth mentioning the high performance that lattice-based schemes exhibit. Both schemes, ABPW13 and NAL15a, present similar figures regarding encryption and decryption, although ABPW13 is one order of magnitude slower when it comes to re-encryption. Note, however, that the results of these experiments are highly dependent on implementation issues, such as the choice of language, parameters (type of curve, size of fields, type of pairing, etc.), the underlying libraries and the use of preprocessing. For this reason, any comparative analysis based on these figures has to take these aspects into consideration. 3.4 Applications of Proxy Re-Encryption The second part of this chapter is devoted to the analysis of the applications of proxy re-encryption. As described in the introduction, we performed a review of almost 70 papers regarding applications, of which 45 were finally analyzed in detail. We also followed a bibliometric approach for drawing conclusions on this part. In particular, we classified each of the reviewed application according to certain criteria: objective, scenario and functionality. The first criterion is related to the security objectives that are intended to tackle with the application of PRE; possible objectives are confidentiality, privacy, authentication and accountability. The second criterion was clearly dominated by the cloud scenario, although other scenarios are also considered, such as wireless networks. The third criterion is associated to the intended functionality that is constructed with PRE, being access control and key management the most prominent. Once the classification is finished we counted the number of occurrences for each category, and obtained the results shown in Table 3.5. The principal finding after this study is that, not surprisingly, most of devised PRE applications are centered on the combination of the confidentiality objective, the cloud computing scenario, and the access control functionality. In other words, the typical use case for proxy re-encryption is the construction of cryptographically-enforced access control system in the clouds, so data can be shared to authorized users while remaining confidential with regard to unauthorized parties and the cloud provider itself. This result is compatible with our initial research postulate, by which we consider PRE as a valuable part of the solution to the secure data sharing scenario. The next section discusses the role of PRE in this scenario in more detail. 58 3.4. Applications of Proxy Re-Encryption Table 3.5: Bibliometric Analysis of PRE Applications Criteria Classification Coverage Objective Confidentiality 80% Privacy 10% Authentication 8% Accountability 2% Scenarios Cloud 53% Wireless Network 8% Others 33% Functionality Access Control 67% Key Management 24% Communication 4% 3.4.1 PRE and the Secure Data Sharing Scenario As described in the introduction of this thesis, and illustrated in Figure 1.1, the aforementioned scenario can be decomposed in several security domains, which match naturally to the actors involved in PRE. When PRE is integrated within the domains of the secure data sharing scenario, the data owner acts as a delegator who transfers access rights to encrypted information to data consumers, who act as delegatees; a proxy entity (i.e., the cloud) participates in this delegation process, transforming encrypted information by means of re-encryption. Figure 3.4 depicts this more detailed view, including the associated key material that is present on each domain. From an abstract standpoint, data sharing in the cloud can be seen as a problem of access control, where the protected resource is encrypted information. Proxy reencryption is then used to construct a cryptographically-enforced access control. Ateniese et al. proposed in [11] a generic way to do this, as shown in Figure 3.5. Let us assume three main actors: (i) the data owner, with public and private keys pkAand skA; (ii) a consumer, with public and private keys pkBand skB;and (iii) the cloud, which acts as a proxy and allows access to encrypted data through re-encryption. The data to be protected is encrypted by the data owner with a fresh symmetric encryption key, the data key, which is in turn encrypted his public key pkAusing the PRE scheme, thus creating an encrypted lockbox.This lockbox, which contains the encrypted data and data key, can now be stored in an untrusted repository, such as the cloud. Note also that the production of encrypted data can be performed by any entity that knows the public key of the data owner, supporting this way multiple data sources. For granting access to his data, the data owner generates re-encryption keys for authorized users and hands 59 Chapter 3. A Systematic Analysis of Proxy Re-Encryption Table 3.6: Estimated cost (in picocents) for cloud resources Resource Cost (2010) Cost (2015) Computation (per CPU cycle) 0.93 – 2.36 0.65 – 1.65 Network (per bit) 800 – 6 000 560 – 4200 Storage (per bit per year) 100 70 Table 3.7: Comparison of re-encryption costs in the cloud Scheme Time (ms) Cost (cents) #re-encryptions/cent BBS98 11.48 4.58E-05 21 844 AFGH06a 83.52 3.33E-04 3003 WDLC10a 22.29 8.89E-05 1 1250 LV11a 386.9 1.54E-03 648 ABPW13 20.5 8.17E-05 12 233 NAL15a 1.15 4.59E-06 218 063 these costs remain stable (e.g., infrastructures, energy and personnel), the core resource, which is hardware, increases with time its efficiency per unit of cost. Computing resources are the best example, since the cost per CPU cycle has decreased exponentially through history, following Moore’s law. A simple analysis based on the prices of Amazon EC2 shows that these have decreased roughly a 30% from 2010 to 2015 (a yearly 7%); there are, however, some indications that real costs for the cloud provider have decreased even more and that their margins of benefits have progressively increased [100]. Based on these figures, we estimate the cost per re-encryption operation for several of the PRE schemes analyzed in this survey. A similar economic assessment about the use of proxy re-encryption in a cloud setting is presented in [92]. Recall that the re-encryption is the basic operation that the cloud provider performs in a PRE-based access control solution for the cloud. Table 3.7 shows these estimations, assuming a cost of 1.5 picocents per CPU cycle. These figures vary greatly depending on the selected scheme and its properties, but demonstrate that the cloud provider could perform in the order of thousands of re-encryptions per cent. For illustration purposes, let us assume a scenario similar to that suggested in [92], where a cloud provider implements a PRE-based access control solution that performs a million re-encryptions per day, one for each access request it receives. From the figures of the last table, it can be seen that the total cost of these operations over the course of a year range from $5,631 for the LV11a scheme, to 66 3.5. Summary just $17 for the NAL15a scheme. In our opinion, these expenses are reasonable for a cloud provider, considering the costs that it could incur in the case of a disclosure or security breach. These costs are difficult to estimate, but at the very least such incidents would have a negative impact with regard to loss of customers and reputation. 3.4.2 Other Applications of PRE Although protecting outsourced information in the cloud is a natural application, there are other interesting uses for proxy re-encryption, where group key management is the most remarkable. In this case, PRE can be used for different purposes such as distributing keys, revoking access, performing key escrows, etc. This has multiple applications, such as DRM protection [101, 102, 103, 104], and security in multicast communications [105, 106, 107, 108]. Among alternative uses of PRE we find privacy-preserving solutions for RFID [109, 110, 111], authentication in VANETs [112, 113], location privacy [114], privacy in online social networks [115], anonymity in P2P communication [116], and access control in other scenarios [117, 118]. 3.5 Summary In this chapter, we survey and analyze the current state of research on proxy reencryption, for both constructions and applications. The most prominent proxy re-encryption schemes are studied in the light of relevant properties and security models. We additionally provide a comparative analysis of the performance of selected schemes, both from the theoretical and experimental points of view. With regards to the applications, we perform an extensive analysis of the available literature following a bibliometric approach. As a result, we confirm that secure data sharing in the cloud is currently the use case with the most potential for proxy re-encryption. In a PRE-based solution to cloud data sharing, private data can reside in the cloud in encrypted form and be shared to authorized users by means of re-encryption, while still remain confidential with regard to unauthorized parties and the cloud provider itself, reducing this way the risks traditionally associated to this scenario. We postulate that the cloud data sharing problem could certainly benefit from the use of proxy re-encryption, given the functionalities and performance levels that it provides. Moreover, it is more realistic than other solutions, such as those based on homomorphic encryption. 67 Chapter 3. A Systematic Analysis of Proxy Re-Encryption In the next chapters, we will tackle some of the challenges associated to proxy re-encryption described in the introduction. In particular, the next chapter is devoted to analyzing the very definitions of security in PRE. 68 Chapter 4 Parametrizing Security Notions for Proxy Re-Encryption The previous chapter gave deep insight into the basic concepts of proxy reencryption, including some of the most representative schemes and applications. Now we put the focus on security definitions, the fundamental abstractions that shape the idea of security in proxy re-encryption. As proxy re-encryption is a special type of public-key encryption, it is natural to “reuse” the security notions of the latter (see Section 2.3.1). Thus, PRE schemes in the literature aim to achieve IND-CPA [11], IND-CCA1 [48] and IND-CCA2 [45] security. However, the desired security notions are often defined in an ad-hoc manner for each scheme, with subtle variations and restrictions, caused by the lack of established definitions of the security notions of PRE, and ultimately, of the attack models, which in the case of PRE are potentially richer than in PKE because of the possibility of re-encryption. While in the PKE setting, the different attack models are determined by the availability of the decryption oracle (i.e., not available in CPA, only before the challenge in CCA1, or throughout the game in CCA2), in the PRE setting it is reasonable to base the attack models on the availability of both the decryption and the re-encryption oracles. In this chapter we explore these subtleties by means of a parametric family of attack models that considers the availability of both oracles separately. In turn, the resulting set of attack models enables fine-grained security notions for PRE. Based on these notions, we study some of the relations that arise between them, and especially, the separations, which further support the importance of the re-encryption oracle. The identified separations stem from the study of a new property of PRE, called “privacy of re-encryption keys”, and that formalizes the concept that re-encryption keys should not be leaked through the re-encryption 69 Chapter 4. Parametrizing Security Notions for Proxy Re-Encryption function; we show that when a scheme does not satisfy this property, it cannot achieve a proper security notion for PRE. Finally, in light of this formalization, we show how a recent “CCA1-secure” proxy re-encryption scheme from PKC 2014 [48] does not actually achieve a meaningful chosen-ciphertext security notion for PRE, since it breaks when one considers an oracle for re-encryption. The methodology described for this attack, based on the leakage of re-encryption keys, supports the idea that PRE schemes should not leak re-encryption keys. 4.1 Introduction In the context of PKE, there is a wide consensus on the consideration of indistinguishability against adaptive ciphertext attacks (IND-CCA2) as the right notion of security, although weaker notions such as IND-CCA1 may be sufficient in other contexts, such as homomorphic encryption. See [119] for a detailed exposition on the importance of security against chosen ciphertext attacks. The arguments for CCA2-security also hold in the case of proxy re-encryption. Canetti and Hohenberger motivate the necessity of CCA2-security with an example of a decryption oracle in a scenario of encrypted email forwarding, where email user Alice can set the mail server to forward all her encrypted emails to a designated recipient Bob, without giving her secret keys to either the mail server or Bob [45]. In this example, an attacker might gain access to a decryption oracle by producing ciphertexts, emailing them to Alice and then hoping that she responds with “Did you send the following attachment to me?”, together with the decrypted ciphertext. If instead of this, it is Bob who responds to the attacker attaching the re-encrypted ciphertext, then the attacker would gain access to a re-encryption oracle. The motivation for considering the re-encryption oracle also comes from the study of applications of proxy re-encryption from the literature, where the re-encryption function is deployed as a service, so participants of the system can re-encrypt ciphertexts from one user to another. This service effectively simulates a re-encryption oracle. In fact, expecting the availability of this oracle is a weaker assumption than presuming the availability of a decryption oracle, since the latter requires knowledge of secret keys, and therefore, it probably would be better protected and less likely to be available. While in the PKE context a chosen-ciphertext attack (CCA) means that the adversary is free to choose ciphertexts for querying a decryption oracle, in the PRE context a CCA adversary should also be able to freely re-encrypt ciphertexts. That is, the re-encryption functionality should be captured by any meaningful 70 4.2. Definitions of Security for Proxy Re-Encryption CCA model for PRE. In fact, the re-encryption oracle alone is able, in some cases, to simulate a decryption oracle, as shown in Section 4.3.3. This further supports our claims about its relevance and raises questions about what are proper security notions for PRE. 4.2 Definitions of Security for Proxy Re-Encryption The definitions of security in the context of PRE extend those of PKE due to the possibility of re-encrypting ciphertexts. That is, in addition to the KeyGen,Enc and Dec functions, a PRE scheme defines two more, ReKeyGen and ReEnc,which are associated with this additional capability (as described in Definition 3.1 in Section 3.2.1). This incorporation is what led us to conceive a more comprehensive characterization of the attack models and security notions for PRE. Before proceeding, recall that we distinguished in Section 3.2.1 between schemes with a single ciphertext space from those with multiple ciphertext spaces. The former are usually associated with multi-hop PRE schemes, although there are some recent single-hop schemes based on lattices that also present this characteristic [47, 48]. The latter are, on the contrary, usually associated with unidirectional schemes, since this way there may be transformations between ciphertext spaces that are valid only in one direction. In this chapter, we restrict ourselves to PRE schemes defined over a single ciphertext space, although our results can be extended to the other case. The additional re-encryption capability that is introduced in proxy re-encryption clearly makes the definitions of security more complex. As in the decryption case, the re-encryption capability can be modeled by the access to a re-encryption oracle Oreenc. Thus, it is natural to think of a collection of attack models with different access levels to the decryption and re-encryption oracles. In this section we describe a parametric set of chosen-ciphertext attack models, which depends solely on the availability of these oracles for each phase of the security game. This family of attack models in turn implies a collection of security notions. As mentioned before, we will restrict ourselves to the indistinguishability goal. It is reasonable to argue that meaningful chosen-ciphertext attack models for proxy re-encryption should provide re-encryption capabilities, in the form of a reencryption oracle. However, access to this oracle is not sufficient guarantee that proper re-encryption capabilities are granted to the adversary. In order to not make the security game trivial for the adversary, it is necessary that the definition of the re-encryption oracle includes some restrictions. At the same time, it is also 71 Chapter 4. Parametrizing Security Notions for Proxy Re-Encryption important that these restrictions are not too strong, since this would achieve weaker notions of security, as pointed out by Canetti and Hohenberger in [45]. In particular, the re-encryption oracle should be able to re-encrypt any ciphertext that is not derived from the challenge ciphertext, between any pair of users, including the target user. Otherwise, the security model would be too restrictive, leading to weaker security notions. Therefore, it is paramount that the proposed attack models are accompanied by a reasonable definition of the oracles available, as well as their restrictions. 4.2.1 Oracles The following definitions of oracles and their restrictions are adapted from those of Canetti and Hohenberger [45]. A core concept that shapes the restrictions is the notion of derivatives of the challenge. As stated before, the security game could be trivial for the adversary if there were no restrictions, since in certain cases a re-encryption oracle can be used to simulate a decryption oracle. For example, consider the case of the challenge ciphertext c∗,whichcanbepotentially re-encrypted from the target public key pk∗to any other one. Canetti and Hohenberger introduce the notion of derivatives as a means for shaping the oracle restrictions. Informally, the derivatives of the challenge are those pairs (pk, c) that are linked to (pk∗,c ∗) through queries to the re-encryption and reencryption key generation oracles, and which would allow trivial attacks from the adversary. Definition 4.1 (Derivatives of the challenge).The set of derivatives of (pk∗,c ∗) is defined inductively, as follows: •(pk∗,c ∗)is a derivative of itself. •If (pkj,c j)is a derivative of (pki,c i)and (pki,c i)is a derivative of (pk∗,c ∗), then (pkj,c j)is a derivative of (pk∗,c ∗). •If the adversary has issued a re-encryption query (pki,pk j,c i)and obtained a ciphertext cjas response, then (pkj,c j)is a derivative of (pki,c i). •If the adversary has issued a re-encryption key generation query (pki,pk j), and Dec(pkj,c j)∈{m0,m 1}, then (pkj,c j)is a derivative of all pairs (pki,c). Once this concept has been established, we will describe the oracles involved in the security game. Apart from the decryption and re-encryption oracles, it is necessary to provide additional oracles for dealing with the inherently multi-user 72 4.2. Definitions of Security for Proxy Re-Encryption nature of proxy re-encryption. These oracles provide the adversary of keys for multiple users, which can be either honest or corrupt depending on whether the adversary is unaware of the corresponding secret key or not. Let n∈Nbe the security parameter for a PRE scheme, and IHand ICbe the sets of indices of honest and corrupt users, respectively. By definition, the target user is deemed honest, so its index i∗∈I H. The public and private keys of target user are pki∗and ski∗,respectively;wewill,however,notatethemaspk∗and sk∗, for simplicity. We define the following oracles, which will be made available to the adversary during the security game and which can be invoked multiple times in any order: •Honest key generation Ohonest: The oracle obtains a new keypair (pki,sk i)← KeyGen(n), adds index ito IH, and returns the public key pki. •Corrupt key generation Ocorrupt: The oracle obtains a new keypair (pki,sk i)← KeyGen(n), adds index ito IC, and returns the pair (pki,sk i). •Re-encryption key generation Orkgen: On input a pair of public keys (pki,pk j), the oracle returns the re-encryption key rki→j←ReKeyGen(pki,sk i,pk j,sk j). The adversary is only allowed to make queries where i�=j,andeither i, j ∈I Hor i, j ∈I C. •Re-encryption Oreenc: On input (pki,pk j,c), where i�=jand i, j ∈I H∪IC, the oracle returns the re-encrypted ciphertext c�←ReEnc(rki→j,c). The adversary is not allowed to make queries where j∈I Cand (pki,c)isa derivative of (pk∗,c ∗). •Decryption Odec: On input (pki,c), where i∈I H∪IC, the oracle returns m←Dec(ski,c). The adversary is not allowed to make queries where (pki,c)isaderivativeof(pk∗,c ∗). The ability to re-encrypt and decrypt ciphertexts is modeled by Oreenc and Odec. The restrictions on the derivatives of the challenge ciphertext disallow trivial attacks from the adversary, but are flexible enough to support a wide range of queries. For example, it should be possible for the adversary to issue reencryption queries of the form (pk∗,pk j,ˆc), where pkjis corrupt, but (pk∗,ˆc)is not a derivative of (pk∗,c ∗). The key generation oracles Ohonest,Ocorrupt,andOrkgen are always available for the adversary,subject to the restrictions above. It can be seen that we assume a static corruption model, where the adversary must decide to corrupt a user or not before asking for the generation of the user’s keypair [64], hence the distinction between honest and corrupt key generation. In addition, we also put common 73 Chapter 4. Parametrizing Security Notions for Proxy Re-Encryption restrictions regarding how the adversary obtains keys. In particular, we are assuming the knowledge of secret key model, where the challenger generates the key material of all users. A stronger model is the chosen key model, where the adversary can adaptively choose public keys for malicious users [12]. The restrictions on the re-encryption key generation oracle have a strong influence on the security model; in particular, we disallow the generation of re-encryption keys between honest and corrupt users, as in some cases, this may lead to trivial attacks from the adversary. We stress that the intention of this work is to support definitional unity for PRE by providing a universal framework that captures the essence of CCA-security, thus avoiding the definition of security notions that are particular for each PRE subfamily. Although it would be possible to define stronger notions by removing the restrictions on this oracle, this would render these definitions useless for schemes with useful PRE properties, such as multihop or transitiveness, which are of interest for many applications. For instance, Libert and Vergnaud [12] permit all possible re-encryption key generation queries, except those from the target user to a corrupt one. However, this only works when the scheme is single-hop, non-transitive and resistant to collusions. There are several examples that justify the restrictions for honest-to-corrupt reencryption keys. For instance, in multi-hop PRE, an adversary could trivially win the game by first re-encrypting the challenge ciphertext to a honest user key, and then using the honest-to-corrupt key to re-encrypt it to a corrupt user key, thus trivially winning the game. The adversary could also achieve a similar result if the scheme is transitive. Another example is found in not collusion-resistant schemes, where the adversary can use a honest-to-corrupt key and a corrupt secret key to extract the honest secret key. With regard to the restrictions to corrupt-to-honest keys, there are two main reasons for that. On the one hand, adversaries in non-interactive PRE schemes do not require the private key of the delegatee for computing re-encryption keys, so the re-encryption key generation oracle would be superfluous. On the other hand, interactive schemes are usually bidirectional, which means that it is possible to compute a honest-to-corrupt key from a corrupt-to-honest key, so the arguments above apply. Therefore, although it is possible to remove these restrictions, it would make the resulting security notions too particular and not relevant for many PRE schemes, which conflicts with our original intention to attain definitions that are universal. 4.2.2 Attack Models Inspired by the mnemonic defined in [24] for attack models CCA1 and CCA2, where the number denotes the last adversarial stage during which she has access 74 4.2. Definitions of Security for Proxy Re-Encryption to a decryption oracle, we analogously define a parametric set of attack models for proxy re-encryption based on the last adversarial stage during which the adversary has access to the decryption and re-encryption oracles. Thus, our parametric set of attack models is characterized by a pair of indices i, j ∈{0,1,2}, so CCAi,j denotes an attack model where the adversary has a decryption oracle until Phase i, and a re-encryption oracle until Phase j. As extreme cases, we have that a “pure” CPA model is then denoted by CCA0,0,whereasa“pure” CCA model is represented by CCA2,2.Thereis,however,arangeofintermediate attack models, differentiated by the last stage during which the adversary has access to the decryption and re-encryption oracles. In the following, we formalize this concept. As stated, what actually varies among the proposed attack models is the availability of the decryption and re-encryption oracles. That is, throughout the game the adversary has access to the key generation oracles Ohonest,Ocorrupt, and Orkgen.WedenoteasΩ kg to the set that comprises these oracles. Now, let Ωcca 1and Ωcca 2denote the sets of additional oracles that are available in Phases 1 and 2, respectively; the possible values that these sets can take are therefore ∅,{Oreenc},{Odec},and{Odec,Oreenc}.LetΩ 1=Ω cca 1∪Ωkg and Ω2=Ω cca 2∪Ωkg be the sets of oracles available in Phases 1 and 2, respectively. Since the set Ωkg of key generation oracles is always present, then the sets Ωcca 1and Ωcca 2fully characterize the possible attack models. We can describe the available oracles in a more formal manner as follows. Let CCAi,j be an attack model for PRE and k∈{1,2},thenOdec ∈Ωcca k,fori≥k,andOreenc ∈Ωcca k,forj≥k. Table 4.1 describes the possible attack models for proxy re-encryption as a function of the availability of the oracles, characterized by the sets Ωcca 1and Ωcca 2. The different combinations of available oracles produce a parametric set of attack models, with 9 possible choices. Note that we disallow the possibility of having an oracle in Phase 2 but not in Phase 1, as the wording used in the definition of the parametric attack models uses the term “until Phase” for defining oracles’ availability and not “in Phase”. As a particular case of these attack models we have that when Ωcca 1=Ω cca 2=∅, the attained model CCA0,0is indeed CPA, since no decryption and re-encryption oracles are provided. Not all possible attack models of this set are meaningful in the context of proxy reencryption. In fact, it seems reasonable to consider the access to a re-encryption oracle to be easier than to a decryption oracle, since usually, re-encryption is performed as a service by an online semi-trusted entity, whereas decryption capabilities are retained by the users. Hence, attack models in which there are more decryption than re-encryption capabilities, and in particular, those where a decryption oracle is provided but not a re-encryption one (CCA1,0and CCA2,0), 75 Chapter 4. Parametrizing Security Notions for Proxy Re-Encryption Algorithm Enc’(pk, x) y←Enc(pk, x) return (0,y) Algorithm Dec’(sk, (y1,y 2)) If y1=0thenreturn Dec(sk, y2) else return ⊥ Algorithm ReEnc’(rk,(y1,y 2)) If y1=0thenreturn (0,ReEnc(rk,y2)) else return (1,rk) Figure 4.3: Modified algorithms in Π� Proof of Theorem 4.7. First, assume that there exists a PRE scheme Π= (KeyGen, ReKeyGen,Enc,Dec,ReEnc)thatissecureinthesenseofIND-CCA1,2;otherwise, the theorem is vacuously true. We now define scheme Π�=(KeyGen’,ReKey- Gen’,Enc’,Dec’,ReEnc’), where KeyGen’ =KeyGen,ReKeyGen’ =ReKeyGen,and Enc’,Dec’,andReEnc’) are defined as shown in Figure 4.3. Informally, Π�simply leaks the re-encryption key during a re-encryption when the first component is different from 0. That is, we are constructing a proxy re-encryption scheme which does not fulfill the property of private re-encryption keys. A re-encryption oracle for this scheme should behave in the same way (i.e., it cannot output a random value instead of the corresponding re-encryption key), since otherwise it could be immediately detected by the adversary by verifying the correctness of the re-encryption. Claim 4.7.1. Π�is not secure in the sense of IND-CCA2,1. Proof of Claim 4.7.1. We define an adversary A=(A1,A 2) that breaks Π �in the sense of IND-CCA2,1, with probability 1 and in polynomial time, as follows. As we are working in the selective model, A1receives the target public key pk∗at the beginning of the game. In addition, A1gets a honest public key pkhthrough oracle Ohonest. According to the definition of the CCA2,1model, Oreenc is available during the first phase. A1queries this oracle with (pk∗,pk h,(1,z)), for a randomly generated ciphertext z. Note that this query is legitimate, since challenge ciphertext has not been generated yet. A1receives rkpk∗→pkhas part of the output of the reencryption oracle, includes it in the state sand outputs (m0,m 1,s). At the guess phase, the challenge ciphertext is (0,c ∗), so A2receives (m0,m 1,s,(0,c ∗)) and extracts rkpk∗→pkhfrom s. Now it computes ReEnc’(rkpk∗→pkh,(0,c ∗)) = (0,c h). Finally, since the decryption oracle Odec is available during the second phase, according to the definition of the CCA2,1model, it makes the query Odec(pkh,(0,c h)) to recover the message mδand determines δwith probability 1. This query is legitimate because (pkh,(0,c h)) cannot be considered a derivative of the challenge, 82 4.3. Relations among PRE security notions as the adversary did not obtain the re-encryption key from Orkgen. Claim 4.7.2. Π�is secure in the sense of IND-CCA2,0 Proof of Claim 4.7.2. The proof is by contradiction. Suppose that Π�is not secure in the sense of IND-CCA2,0. Then, there exists an algorithm Bthat breaks Π�in the IND-CCA2,0sense with non-negligible advantage ε.FromB,wecan define an adversary A=(A1,A 2) that breaks Πin the IND-CCA2,0sense as follows. Algorithm A1simply outputs the same results than B1for input pk∗,while algorithm A2takes input (m0,m 1,s,c ∗) and outputs the result dfrom calling B2 with parameters (m0,m 1,s,(0,c ∗)). The computations of Bare done by Asimulating B’s decryption oracle OB dec using its own oracle OA dec,asfollows:oninput (pk, (c1,c 2)) to OB dec,Averifies that c1= 0 and outputs OA dec(pk, c2); otherwise, it outputs ⊥.Thesimulationisperfect,andAbreaks Πin the IND-CCA2,0sense with the same advantage ε. We present now a different attack strategy, which produces a greater separation between PRE security notions. Suppose that the adversary is able to extract rkpk∗→pkxthrough calls to Oreenc,wherepkxbelongs to a corrupt user. Then, she wins the security game by locally re-encrypting the challenge ciphertext c∗to cx, which she can decipher using skx. The only oracle query to Oreenc is legal since it does not involve a derivative of the challenge ciphertext. It can be seen that this attack strategy can only work when there is a re-encryption oracle available (i.e., any attack model above CCA0,1), thus producing a separation between IND-CCA2,0 and IND-CCA0,1. Theorem 4.8 (IND-CCA2,0�=⇒IND-CCA0,1).If there exists a PRE scheme Π that is secure in the sense of IND-CCA2,0, then there exists a PRE scheme Π� that is secure in the sense of IND-CCA2,0but which is not secure in the sense of IND-CCA0,1. Proof of Theorem 4.8. The proof in this case is very similar to that of Theorem 4.7, except that we now prove that Π�is not secure in the sense of IND-CCA0,1. Claim 4.8.1. Π�is not secure in the sense of IND-CCA0,1. Proof of Claim 4.8.1. This proof is similar to the one of Claim 4.7.1. We define an adversary A=(A1,A 2) that breaks Π �in the sense of IND-CCA0,1, with probability 1 and in polynomial time, as follows. Since we are working in the selective model, A1receives the target public key pk∗at the beginning of the game. In 83 Chapter 4. Parametrizing Security Notions for Proxy Re-Encryption addition, A1gets a pair of corrupt public and private keys (pkx,sk x) through oracle Ocorrupt. Recall that, according to the definition of the CCA0,1attack model, the only additional oracle available in the phase 1 is Oreenc.A1queries this oracle with (pk∗,pk x,(1,z)), for a randomly generated ciphertext z.A1receives rkpk∗→pkxas part of the output of the re-encryption oracle, includes it in the state sand outputs (m0,m 1,s). In phase 2, the challenge ciphertext is (0,c ∗), so A2receives (m0,m 1,s,(0,c ∗)) and extracts rkpk∗→pkxfrom s. Now it computes ReEnc’(rkpk∗→pkx,(0,c ∗)) = (0,c x). Finally, it evaluates Dec’(skx,(0,c x)) to recover the message mδand determines δwith probability 1. The last theorem entails the following corollary, which formalizes the idea that there are PRE schemes that are secure in the sense of IND-CCAi,0,butfailonce a re-encryption oracle is introduced. Corollary 4.9. If there exists a PRE scheme Πthat is secure in the sense of IND-CCAi,0, for i∈{0,1,2}, then there exists a PRE scheme Π�that is secure in the sense of IND-CCAi,0but which is not secure in the sense of IND-CCAi,j, for j∈{1,2}. The scheme described in Section 4.4 illustrates this corollary, since it is IND-CCA1,0 secure (i.e., it does not consider a re-encryption oracle), but not IND-CCA1,1se- cure, as we show how the attacker can use the re-encryption oracle to win the security game. This attack further supports the separation between PKE-based notions (i.e., those that do not consider a re-encryption oracle) and the rest. 4.3.3 Relations for multihop PRE In this section we study the effect on the security notions that appears from the following observation: assuming a proper re-encryption oracle (that is, one that enables re-encryption from a honest party to a corrupt one), then the adversary can construct a decryption oracle using the re-encryption one. She solely has to re-encrypt ciphertexts to a corrupt user and decrypt afterwards, since she knows the secret key. More formally, let xbe a corrupt user controlled by the adversary, then for all public keys pkiand all ciphertexts c,where(pki,c)isnot a derivative of (pk∗,c ∗), the decryption oracle can be simulated by the adversary as follows: Odec(pki,c)=Dec(skx,Oreenc(pki,pk x,c)) (4.1) 84 4.3. Relations among PRE security notions This equivalence only holds in the multihop case, since when cis already a reencryption from other ciphertext, then it is not possible to re-encrypt it again; that is, for single-hop PRE schemes this equivalence only holds when the ciphertext has not been re-encrypted (i.e., a second-level ciphertext [11]). On the contrary, multihop PRE schemes permit to re-encrypt ciphertexts indefinitely. Note also that the query Oreenc(pki,pk x,c) is legal as long as (pki,c)isnota derivative of (pk∗,c ∗). This result allows us to establish additional implications between security notions, for the case of multihop PRE. In the IND-CCA0,1scenario, the re-encryption oracle is only provided in Phase 1 and no decryption oracle is available. For a multihop scheme, it is easy to check that Equation 4.1 describes a valid simulation of the decryption oracle during Phase 1. Since the challenge ciphertext has not yet been generated, neither the re-encryption nor decryption oracles have any kind of restriction on the input ciphertext. Thus, if a re-encryption oracle for Phase 1 is provided, the decryption oracle becomes redundant, since it can be easily simulated by the adversary. Therefore, IND-CCA0,1⇒IND-CCA1,1. Now we assume that the re-encryption oracle is also available in Phase 2. In this case, there is a restriction on the input ciphertexts, as described in Section 4.2, so it cannot be a derivative of the challenge ciphertext. Note that the very same restriction is applicable to the decryption oracle during the same phase. As in the previous case, Equation 4.1 describes a valid simulation of the decryption oracle, this time for both phases. Similarly, if a re-encryption oracle is provided until Phase 2, then the decryption oracle becomes redundant, as it can be simulated by the adversary using the re-encryption oracle. Therefore, IND-CCA0,2⇒IND-CCA2,2. These two results, together with the fact that IND-CCA1,1⇒IND-CCA0,1and IND-CCA2,2⇒IND-CCA0,2, imply that IND-CCA1,1≡IND-CCA0,1and IND-CCA2,2≡ IND-CCA0,2.Therefore,theprevioussetofrelationsbetweensecuritynotionscan be simplified for the multihop case, as shown in Figure 4.4. For clarity, the notions of IND-CCA0,2and IND-CCA1,2have been assimilated into IND-CCA2,2,and IND-CCA0,1into IND-CCA1,1. These results strengthen the idea that the re-encryption oracle is somewhat more powerful than the decryption oracle, and that in some cases, renders it completely redundant. 85 Chapter 4. Parametrizing Security Notions for Proxy Re-Encryption IND-CCA2,2 IND-CCA2,1 IND-CCA2,0 IND-CCA1,1 IND-CCA1,0 IND-CCA0,0 Figure 4.4: Relations among security notions for multihop PRE 4.3.4 Discussion From the parametric family of attack models for PRE we propose, we have developed in this thesis a set of security notions and showed the relations among them. However, that does not necessarily mean that all the notions are equally meaningful for the context of PRE. Recall that one of the main characteristics of PRE is that re-encryption capabilities are granted to some semi-trusted entity that acts as proxy, transforming ciphertexts from one public key to another. In this case, it seems reasonable to think of the proxy as a re-encryption oracle, and since it is a semi-trusted entity, its availability for an adversary may be easier than in the case of the decryption oracle. In fact, there are several examples of devised applications of PRE where re-encryption is performed as a service by an online semi-trusted entity, whereas decryption capabilities are retained by the users [11, 101]. Hence, attack models in which the decryption capabilities are greater than for re-encryption, and particularly, those where a decryption oracle is provided but not a re-encryption one (CCA2,0and CCA1,0), do not seem to be appropriate for shaping security in scenarios where proxy re-encryption is applied. The scheme we analyze in Section 4.4 is an example of construction that is only secure under this kind of attack model. In our opinion, it seems difficult to strongly justify any asymmetry between the adversarial capabilities concerning decryption and re-encryption. For that reason, we consider that the representative attack models for PRE are CCA2,2,CCA1,1,andCCA0,0(which can be denoted as CPA). The rest of attack models (and therefore, security notions) can be considered as the formalization of transitional models, but that fail to properly capture adversarial 86 4.4. Security Analysis of a Recent “CCA1-secure” PRE scheme capabilities of meaningful scenarios. Nevertheless, these transitional models can be of use when reasoning about security notions, and as intermediate milestones during the design of PRE schemes, as proposed in the next chapter. In the next section, we describe an example of a recent PRE scheme, which is allegedly “CCA1-secure”. However, our analysis shows that, according to our definitions of attack models for PRE, this scheme is in fact IND-CCA1,0secure, since it does not consider a re-encryption oracle. Furthermore, it cannot achieve a better security notion since it leaks the re-encryption keys when the re-encryption oracle is introduced. This impossibility is a consequence of Theorem 4.8. 4.4 Security Analysis of a Recent “CCA1-secure” PRE scheme The scheme analyzed in this section was proposed by Kirshanova at PKC 2014 [48]. Although, the scheme is said to be “CCA1-secure”, its security proof does not provide meaningful re-encryption capabilities to the adversary. An analysis of the security proof reveals that this scheme is actually secure under IND-CCA1,0, because the decryption oracle is available until the challenge, but it lacks of a re-encryption oracle. As discussed in Section 4.3.4, we do not consider this as a meaningful notion for PRE because of the asymmetry between the adversarial capabilities concerning decryption and re-encryption. In fact, IND-CCA1,0is, together with IND-CCA0,1, the closest notion to IND-CCA0,0≡IND-CPA.Inthis section we describe an attack to this scheme under a more significant notion, namely IND-CCA1,1. That is, this scheme cannot achieve IND-CCA1,1in its current form. The main idea behind this attack is that failure to fulfill the private re-encryption keys property leads to insecure schemes when one considers the reencryption oracle. The proposed attack is applicable even when a re-encryption oracle is provided only before the challenge phase. In addition, such oracle must not have strong restrictions, since this would imply an overly weak security model, as discussed in Section 4.2. In particular, it should be possible to ask for the reencryption of ciphertexts that are unrelated to c∗,fromthetargetusertoa corrupt one. 4.4.1 Description of the scheme First we will describe the scheme from Kirshanova. This is one of the first PRE schemes based on the hardness of lattice problems, specifically, the Learning 87 Chapter 4. Parametrizing Security Notions for Proxy Re-Encryption With Errors (LWE) [32] and Short Integer Solution (SIS) [38] problems. Some details, such as a comprehensive characterization of the random distributions used and the validity checks in the decryption algorithm, are omitted for the sake of clarity. We refer the reader to [48] for a complete description of the scheme, and to [40] for more details on the original PKE scheme upon Kirshanova’s scheme is based. Let nbe the security parameter. The modulus q=poly(n) is a large prime power and k=logq.Set¯m=O(nk)andm=¯m+2nk.LetDRbe a random distribution over Z¯m×nk that samples the secret keys Rand Dea random distribution over Zmthat samples error vectors e; details about these distributions are omitted. InvertOand SampleOare two algorithms for inverting the LWE-function and sampling preimages from the SIS-function, respectively. Let G∈Zn×nk qbe a specially-constructed public matrix that makes these algorithms efficient. The scheme is as follows: •KeyGen(n): choose A0←Znׯm q,R1,R 2←DRand an invertible matrix H←Znk×nk q. Next, define A1=−A0R1∈Zn×nk qand A2=−A0R2∈ Zn×nk q, and compose the matrix A=[A0|A1|A2]∈Zn×m q. The public key is the pair pk =(A, H), while the secret key is matrix sk =[R1|R2]∈Z¯m×2nk. •Enc(pk =([A0|A1|A2],H),m ∈{0,1}nk): choose a non-zero invertible matrix Hu,andavectors←Zn q.SetAu=[A0|A1+HG|A2+HuG]. Sample error vector e←De. Compute bt=2(stAumod q)+et+(0,0,enc(m))t mod 2q,wherethefirstzerovectorhasdimension¯m,thesecondhas dimension nk and enc is an encoding function. Output the ciphertext c=(H,b)∈Zn×n q×Zm 2q. •Dec(pk =([A0|A1|A2],H),sk =[R1|R2],c =(Hu,b)): Using matrix Hu compute Au=[A0|A1+HG|A2+HuG]. With the secret key call algorithm InvertO([R1|R2],A u,b mod q,Hu). As output we receive two vectors z∈Zn q and e∈Zm qthat satisfy bt=ztA+etmod q.Letv=b−emod 2q. Compute vt  R1R2 I0 0I mod 2q and apply enc−1to the last nk coordinates. •ReKeyGen(pk =([A0|A1|A2],H),sk =[R1|R2],pk�=([A� 0|A� 1|A� 2],H�)): Let Y=[A� 0|A� 1+H�G|A� 2−A2]andyibe the i-th column of Y.Execute SampleO(yi,[A0|A1],R 1,H)foreachcolumnvectoryiand concatenate the column vector outputs to form matrix X.Itcanbeseenthatthismatrix 88 4.4. Security Analysis of a Recent “CCA1-secure” PRE scheme satisfies that [A0|A1]X=Y. Parse matrix Xas [X0|X1|X2], where the block X0∈Z(¯m+nk)ׯmis the output corresponding to the first part of Y, X1∈Z(¯m+nk)×nk to the second one, and X2∈Z(¯m+nk)×nk to the last one 1. Finally, output the re-encryption key rkpk→pk�: rkpk→pk�=�X0X1X2 00I� •ReEnc(rkpk→pk�,c =(Hu,b)): to change the underlying public key in the ciphertext component b, compute b�t=bt·rkpk→pk�. Finally, output c�= (Hu,b �). 4.4.2 Attack under the IND-CCA1,1setting In this section we describe an attack to Kirshanova’s scheme under the IND-CCA1,1 setting. Once we give the attacker the capability of using a re-encryption oracle, and given the fact that the re-encryption function in the Kirshanova PRE scheme does not check for the validity of its inputs, then the attacker can query the reencryption oracle with a series of deceptive ciphertexts, which ultimately leak the re-encryption key from the target user to a corrupt one. Note that these queries are completely legal, as the input ciphertexts are not related to the challenge ciphertext (in fact, when the re-encryption key is leaked the challenge ciphertext has not been produced yet). Once the attacker asks for the challenge ciphertext, she can re-encrypt it for a corrupt user under her control, and distinguish the original challenge message. This attack constitutes an instantiation of one of the generic attacks used for separating security notions described in Section 4.3, namely the one used in the proof of Theorem 4.8. Assuming a IND-CCA1,1setting, then we can construct a CCA1,1attack (i.e., only consulting the decryption and re-encryption oracles before the challenge) as follows. First, as we are working in the selective model, the challenger gives the target public key pk∗to the attacker at the beginning of the game. In addition, the attacker asks for a pair of corrupt public and private keys (pkx,sk x) to oracle Ocorrupt. Next, recall that the re-encryption function simply multiplies the original ciphertext by the re-encryption key, as shown in Equation 4.2 and depicted by Figure 4.5a, without performing any kind of prior or subsequent checks: 1In the original scheme, matrix Xis further decomposed into smaller blocks (e.g., X0is decomposed in X00 and X01), but this is not necessary for our analysis. 89 Chapter 4. Parametrizing Security Notions for Proxy Re-Encryption Challenger Adversary Oreenc bt b�t=bt·rk (a) The re-encryption oracle Challenger Adversary Oreenc bt=(1,0, ..., 0)t b�t=(1,0, ..., 0)t·rk =row1(rk) (b) Using a unit vector as input Figure 4.5: Leaking re-encryption keys [b�t 0|b�t 1|b�t 2]=[bt 0|bt 1|bt 2]·�X0X1X2 00I� =[bt 0|bt 1]·[X0|X1|X2]+[0|0|bt 2] (4.2) The attacker can take advantage from the behavior of the re-encryption oracle and ask for the re-encryption of specially-crafted “trap” ciphertexts bt i=[bt i,0|bt i,1|bt i,2], so that [bt i,0|bt i,1]=ˆui,whereˆui∈Z1ׯm+nk 2qis the i-th row unit vector, for 1≤i≤¯m+nk,andbt i,2is chosen randomly in Z1×nk 2q. Next, the attacker proceeds with ¯m+nk queries to Oreenc(pk∗,pk x,(Hi,b i)), for random Hi,toobtain re-encrypted ciphertexts (Hi,b � i). It can be seen that, after removing the term [0|0|bt i,2], the vector b� ifrom the re-encrypted ciphertexts will have the form b� i=ˆu·[X0|X1|X2], which corresponds to the i-th row of the re-encryption key. A simplified illustration of this stage of the attack is shown in Figure 4.5b. Finally, the attacker simply stacks the results together to obtain the matrix Xof the re-encryption key rkpk∗→pkx. Note that, originally, re-encryption keys are defined over Z, but with these queries she actually obtains its representation in Z2q; nonetheless, the obtained re-encryption key is equivalent for making computations, and thus, equally valid. The knowledge of this re-encryption key gives the attacker enough power to decrypt the challenge ciphertext during the second phase of the game, and hence distinguish the original message. Note that the queries to the re-encryption oracle can be carried out before the challenge ciphertext is generated, so it is complies with the IND-CCA1,1security notion (i.e., it cannot be considered an adaptive attack). This attack can be refined as follows. Assume that the re-encryption oracle could “detect” the aforementioned queries as trap ciphertexts and return a random output (althought that could mean producing invalid re-encryptions for valid 90 4.4. Security Analysis of a Recent “CCA1-secure” PRE scheme ciphertexts that happen to have the same form). In this case, the attacker may be unable to detect the situation, since she does not know the underlying message of the trap ciphertexts (i.e., she does not know whether or not the trap ciphertexts are valid encryptions under target public key pk∗). We now describe another way of extracting the sought-after re-encryption key, by concealing these trap vectors in the following way. The attacker produces m ciphertexts (Hi,p t i)=Enc(pk∗,m i), for random mi∈{0,1}nk, and constructs a matrix P∈Zm×m 2q,sothateachpt iis the i-th row of P. Note that, by the hardness assumption of the encryption scheme, the distribution of vectors pt iis within negligible statistical distance from the uniform distribution, as described by the LWE hardness assumption. Hence, with overwhelming probability, Pis an invertible matrix, and P−1P=I.InthecasethatPwere not invertible, the attacker could simply “resample” more ciphertexts and produce a new P. Next, the attacker makes mqueries Oreenc(pk∗,pk x,(Hi,p t i)), with 1 ≤i≤m.By the definition of the re-encryption function, the outcome of each query contains the vector p�t i=pt i·rkpk∗→pkx.LetP�∈Zm×m 2q,sothateachp�t iis the i-th row of P�. Hence, it can be seen that P�=P·rkpk∗→pkx. Finally, she simply computes rkpk∗→pkx=P−1·P�=P−1·P·rkpk∗→pkx. Using this re-encryption key, the attacker decrypts the challenge ciphertexts as described before. 4.4.3 Analysis of the attack There are two main reasons that explain why this attack is possible. The first is related to the construction itself, whereas the second concerns the underlying security model. Firstly, the scheme leaks the re-encryption key through queries to the re-encryption oracle. That is, it fails to satisfy the private re-encryption keys property. This characteristic is what makes possible for the attacker to learn the re-encryption key from the target user to one under her control, thus winning the security game. This is a consequence of how the re-encryption function is constructed, which is simply the multiplication of a ciphertext by the re-encryption key. Thus, when the input ciphertexts are carefully chosen, it is possible to recover the desired re-encryption key. A possible solution to thwart this attack consists on adding a small noise after the multiplication. Another issue with the re-encryption function is that it is performed without any kind of validity check on the input. This poses an interesting problem since this validity check should be performed without the proxy seeing the original plaintexts. The usual solution to this problem is to make the ciphertexts publicly verifiable [54]. A consequence of this property 91 Chapter 5. New Proxy Re-Encryption Constructions In NTRU, the private key sk consists of a polynomial f∈R NTRU chosen at random, with a determined number of coefficients equal to 0, -1, and 1. The polynomial fmust have an inverse in RNTRU/q and RNTRU/p,respectively,f−1 q and f−1 p.Forefficiency,fcan be chosen to be congruent to 1 modulo p.The public key pk consists of the polynomial h=p·g·f−1 qmod q,whereg∈R NTRU is chosen at random. The encryption process is very simple: a plaintext Mfrom message space RNTRU/p is encrypted to ciphertext C=h·s+Mmod q,wheresis a small random polynomial in RNTRU. For decrypting a ciphertext C, one must first compute C�=f·C and reduce it modulo q. If the original polynomial C�is sufficiently small then the result of the reduction is pgs +fM ∈R NTRU/q. Next, C�is reduced modulo p, obtaining fM. Finally, this result is multiplied by f−1 pto extract the original message M; note that the last step is redundant if fwas selected congruent to 1 modulo p. NTRUReEncrypt Based on the NTRU encryption scheme, we define the proxy re-encryption scheme NTRUReEncrypt. Our proposal is essentially an extension of the scheme that includes the definition of the re-encryption and re-encryption key generation algorithms. One of the fundamental differences of our scheme with respect to the original NTRU is that the secret polynomial fhas to be congruent to 1 mod p, not for efficiency reasons, but because it is necessary to correctly decrypt reencrypted ciphertexts. The scheme Now we present our scheme NTRUReEncrypt.Inthefollowing, the delegator is represented by user A,whereasthedelegateeisuserB.Our scheme is specified by the following algorithms: •KeyGen(): The output of the key generation algorithm for user Ais a pair of public and secret keys (pkA,sk A). If first chooses a pair of polynomials (fA,g A)∈R 2 NTRU at random, with a determined number of coefficients equal to 0, -1, and 1, as in the conventional NTRU scheme. The only added requirement is that fAhas to be congruent to 1 modulo p. As in the original case, fAmust have an inverse in RNTRU/q,denotedbyf−1 A. Note that now it is not necessary the inverse of fAmodulo p.TheprivatekeyskAis the polynomial fA,whereasthepublickeypkAconsists of the polynomial hA=p·gA·f−1 Amod q. 98 5.1. Proxy Re-Encryption Schemes Based on NTRU •ReKeyGen(skA,sk B): On input the secret keys skA=fAand skB=fB, the re-encryption key generation algorithm ReKeyGen computes the reencryption key between users Aand Bas rkA→B=skA·sk−1 B=fA·f−1 B. The re-encryption key can be computed by means of a simple three-party protocol, so neither A,Bnor the proxy learns any secret key. The protocol, originally proposed in [45], is as follows: Aselects a random r∈R NTRU/q and sends r·fAmod qto Band rto the proxy; next, Bsends r·fA·f−1 B mod qto the proxy, who computes rkA→B=fA·f−1 Bmod q. •Enc(pkA,M): On input the public key pkAand a message M∈R NTRU/p, the encryption algorithm Enc generates a small random polynomial s∈ RNTRU, and outputs the ciphertext CA=hAs+M. •ReEnc(rkA→B,C A): On input a re-encryption key rkA→Band a ciphertext CA, the re-encryption algorithm ReEnc samples a random polynomial e∈ RNTRU and outputs ciphertext CB=CA·rkA→B+pe. •Dec(skA,C A): On input the secret key skA=fAand a ciphertext CA, the decryption algorithm Dec computes C� A=(CA·fA)modqand outputs the original message M=(C� Amod p). Note that if ciphertexts are not re-encrypted, NTRUReEncrypt behaves in exactly the same way as the original NTRU encryption scheme. Correctness Now, we informally explain the reason why the re-encryption process works. Re-encrypted ciphertexts are of the form: CB=CA·rkA→B+pe =(pgAf−1 As+M)·fAf−1 B+pe =pgAf−1 Bs+pe +fAf−1 BM When decrypting a re-encrypted ciphertext, the delegatee multiplies the ciphertext with the secret key fB: CB·fB=(pgAf−1 Bs+pe +fAf−1 BM)·fB=pgAs+pefB+fAM Now, taking modulo p, we get rid of the additional terms. Recall that we require secret key polynomial fAto fulfill fA=1 modp,so(CB·fB)modp=(pgAs+ pefB+fAM)modp=M, which is the original message. The inclusion of the random term eduring the re-encryption phase is necessary in order to prevent a simple ciphertext-only attack from the delegatee. Imagine that a re-encrypted ciphertext is of the form CB=CA·rkA→B=CA·fA·f−1 B; that is, without the random term e.Then,thedelegateecouldextractthesecret key of the delegator based on the observation that CB·fB=CA·fAholds, since 99 Chapter 5. New Proxy Re-Encryption Constructions Table 5.1: Space costs of NTRUReEncrypt Element Size Keys O(n·log2q) Message O(n) Ciphertext O(n·log2q) Ciphertext expansion O(log2q) CB=CA·rkA→B. Next, assuming that CAis invertible modulo q,theattacker can extract the secret key by computing fA=C−1 A·CB·fB. The scheme is also multihop, that is, it supports multiple re-encryptions. However, this property is limited, since the addition of the error term during the re-encryption produces an increasing error that grows on each hop, until eventually, decryption fails. Our experiments show that this depends heavily on the choice of parameters. This issue is discussed in more detail in Section 5.1.5. Analysis The resulting proxy re-encryption scheme preserves the performance level of the original NTRU; a detailed experimentation on this matter is presented in Sections 5.1.5 and 5.1.5. These experimental results show that NTRUReEncrypt outperforms other proxy re-encryption schemes by an order of magnitude. A theoretical analysis of the computational costs associated with NTRUReEncrypt shows that the main algorithms, namely encryption, decryption and reencryption, only need a single multiplication (actually, re-encryption takes an additional multiplication for computing the term pe, but this can be computed beforehand and, in addition, the polynomial pis small and known in advance). As already stated in the introduction, the core operation in NTRU is the multiplication of polynomials, which can be done in O(nlog n) time using the Fast Fourier Transform (FFT) [124]. As for the space costs associated to NTRUReEncrypt,Table5.1presentsathe- oretical analysis of the size of the messages, keys, and ciphertexts, as well as a measure of the ciphertext expansion it produces. It can be seen that the expansion is logarithmic in the parameter q, and that the size of keys is within O(nlog2q). This can be put in contrast with other lattice-based cryptosystems, such as the proxy re-encryption scheme from Aono et al. [47], where keys and messages are typically matrices whose dimensions grow linearly with the parameter n. This implies that the size of these matrices is at least quadratic with respect to n. Table 5.2 illustrates this fact by showing a comparison between Aono’s scheme 100 5.1. Proxy Re-Encryption Schemes Based on NTRU Table 5.2: Comparison of space costs (in KB) Size Aono et al. [47] NTRUReEncrypt Public keys 60.00 1.57 Secret key 60.00 1.57 Re-Encryption key 2520.00 1.57 Ciphertext 0.66 1.57 and ours. The space costs from Aono’s scheme are determined by the parameters shown in [47] for the case of 143 bits of security and 128-bit plaintexts, whereas our figures are calculated using a parameter set that achieves 256 bits of security and supports up to 186-bits plaintexts. More details about the parameters used are given in Section 5.1.5. It can be seen that our space costs are lower in comparison, even considering the difference in bits of security. In the case of re-encryption keys, the difference in size is remarkable as it grows up to 3 orders of magnitude. On the other hand, our ciphertexts are slightly bigger. Another interesting fact is that we use the same kind of polynomials for conveying all the types of keys and ciphertexts, so the space costs are the same in all cases (1.57 KB). It is easy to check that our scheme is bidirectional. Given rkA→B=fAf−1 B,the proxy can easily compute rkB→A=(rkA→B)−1=fBf−1 A.Thispropertyisa consequence of how re-encryption keys are constructed (rkA→B=skA·sk−1 B), in the same way as in other bidirectional schemes [43, 45, 54]. With respect to the security of the scheme, we cannot overcome the problem of NTRU lacking a formal security proof. However, we can study it from a practical way, as NTRU does. For instance, the time required for a lattice-based attack to the public key is conjectured to be exponential in n[16]. This is also relevant to the re-encryption scheme since extracting private keys from the re-encryption key is at least as hard as attacking NTRU public key, as they are constructed in the same way: for instance, the public key of user Bis of the form pgBf−1 B,whereas re-encryption key rkA→Bis of the form fAf−1 B. In NTRU, the polynomials f are larger than the polynomials g,i.e.,theyhavemorenon-zeroterms,sothe term fAof a re-encryption key would be larger than the term pgBof a public key. However, as it happens to the majority of bidirectional proxy re-encryption schemes [43, 45, 54], our scheme is not collusion-safe. That is, it is vulnerable to a collusion of the proxy and the users, since extracting the delegator’s secret key fAis as simple as computing rkA→B·fB. The same problem applies to the delegatee’s secret key. As a way to provide a formal security proof of our scheme, we explored how this problem has been addressed in the literature. An interesting approach is made 101 Chapter 5. New Proxy Re-Encryption Constructions by Stehl´e and Steinfeld in [73, 122], where they present a variant of NTRU which is proven CPA-secure under lattice-based assumptions. Based on this solution, we build a second version of our NTRU-based proxy re-encryption scheme, called PS-NTRUReEncrypt,whichisprovably-secure. 5.1.4 A Provably Secure Version of NTRUReEncrypt In this section we provide a second proxy re-encryption scheme, called PS-NTRUReEncrypt, that is provable secure under a hard problem for lattices, namely the Ring-LWE assumption. Before explaining our provably-secure scheme, we must first establish some background concepts; after that, we describe the NTRU variant proposed in [73, 122] by Stehl´e and Steinfeld, which serves as a basis for our second scheme. Notation and definitions Most of these definitions and notation are taken from [73, 122], and were already mentioned in Section 2.3.2, but we gather them here for the sake of convenience. Let Φ(x)=xn+ 1, with napowerof2;thatis,Φ(x) is the 2n-th cyclotomic polynomial. Let qbe a prime integer such that q=1 mod2n.LetRbe the ring Z[x]/Φ(x), and Rq=R/q =Zq[x]/Φ(x). We will denote the set of invertible elements of Rqas R× q. Although elements of Rare polynomials, we often treat them as vectors. The Ring Learning With Errors (Ring-LWE) problem is a hard decisional problem based on lattices introduced by Lyubaskevsky et al. in [37], which we describe in Definition 2.14. In this chapter, we use an adapted version of this problem proposed in [73, 122] by Stehl´e and Steinfeld. Definition 5.3 (The Ring-LWE problem [73, 122]).Let s∈R qand ψa distribution over R× q, then we define A× s,ψas the distribution that samples pairs of the form (a, b), where ais chosen uniformly from R× qand b=a·s+e, for some esampled from ψ. The distribution A× s,ψis also called the Ring-LWE distribution. The Ring-LWE problem is to distinguish distribution A× s,ψfrom a uniform distribution over R× q×R q. The Ring-LWE assumption is that this problem is computationally infeasible. This variant of the Ring Learning With Errors problem is denoted in [73, 122] as the R-LWE× HNF problem; however, we will not use that notation for simplicity. The error distributions ψare sampled from a family of distributions Ψα,with 102 5.1. Proxy Re-Encryption Schemes Based on NTRU parameter α; for more details of the definition of these distributions, see [73, 122]. Provably Secure NTRU Stehl´e and Steinfeld proposed in [73, 122] a variant of the NTRU primitive which is proven CPA-secure under the hardness assumption of the Ring-LWE problem. This scheme is defined over the rings Rand Rq, determined by parameters n and q, as defined in previous section. The plaintext space Mcorresponds to the ring R/p,wherep∈R × qis also a parameter of the scheme; as conventional NTRU, typical values for this parameter are p=3andp=x+ 2, but in this scheme one may choose p= 2, since qis prime. The parameter αcharacterizes the family of distributions Ψα, and the parameter σis the standard deviation of the Gaussian distribution used during the key generation algorithm. Thus, global parameters are a tuple (n, q, p, α,σ). The algorithms of this encryption scheme are the following: •KeyGen(): The output of this algorithm for user Ais the pair of public and secret keys (pkA,sk A)∈R × q×R× q.LetDZn,σbe the Gaussian distribution over Znwith standard deviation σ.Thekeysarecomputedasfollows: 1. Sample f�from DZn,σ;letfA=1+p·f�;if(fAmod q)�∈ R× q,resample. 2. Sample gAfrom DZn,σ;if(gAmod q)�∈ R× q,resample. 3. Compute hA=p·gA·f−1 A. 4. Return secret key skA=fAand pkA=hA. •Enc(pkA,M): On input the public key pkAand a message M∈M, sample noise polynomials s, e from a distribution from Ψα, and output ciphertext CA=hAs+pe +M∈R q. •Dec(skA,C A). On input the secret key skA=fAand a ciphertext CA,the decryption algorithm Dec computes C� A=CA·fAand outputs the message M=(C� Amod p)∈M. It can be seen that the operation of this scheme is very similar to the original NTRU, except for the generation of the keys and the inclusion of a noise term during encryptions. The authors prove that this NTRU variant is CPA-secure, over the hardness of the Ring-LWE problem. They also prove the correctness of their proposal, by establishing the conditions for avoiding decryption failures. Both proofs will serve as a basis for ours. 103 Chapter 5. New Proxy Re-Encryption Constructions PS-NTRUReEncrypt In this section we present the scheme PS-NTRUReEncrypt,whichisbasedonthe provably-secure variant of NTRU described in the previous section. This scheme uses the same global parameters as before, a tuple (n, q, p, α,σ). This scheme is defined by the following algorithms: •KeyGen(): The output of the key generation algorithm for user Ais the pair of public and secret keys (pkA,sk A)∈R × q×R× q.Thekeysarecomputed as follows: 1. Sample f�from DZn,σ;letfA=1+p·f�;if(fAmod q)�∈ R× q,resample. 2. Sample gAfrom DZn,σ;if(gAmod q)�∈ R× q,resample. 3. Compute hA=p·gA·f−1 A. 4. Return secret key skA=fAand pkA=hA. •ReKeyGen(skA,sk B): On input the secret keys skA=fAand skB=fB, the re-encryption key generation algorithm ReKeyGen computes the reencryption key between users Aand Bas rkA→B=skA·sk−1 B=fA·f−1 B. •Enc(pkA,M): On input the public key pkAand a message M∈M,the encryption algorithm Enc samples noise polynomials s, e from a distribution from Ψα, and outputs ciphertext CA=hAs+pe +M∈R q. •ReEnc(rkA→B,C A): On input a re-encryption key rkA→Band a ciphertext CA, the re-encryption algorithm ReEnc samples noise polynomial e�from a distribution from Ψαand outputs ciphertext CB=CA·rkA→B+pe�∈R q. •Dec(skA,C A). On input the secret key skA=fAand a ciphertext CA,the decryption algorithm Dec computes C� A=CA·fAand outputs the message M=(C� Amod p)∈M. It can be seen that this scheme is an extension of the one from Stehl´e and Steinfeld, by including the definition of the re-encryption and re-encryption key generation algorithms. Note also that the same three-party protocol for computing the re-encryption key described in Section 5.1.3 for NTRUReEncrypt can be applied here. Analysis The properties of PS-NTRUReEncrypt are the same as our first scheme. These properties are: 104 5.1. Proxy Re-Encryption Schemes Based on NTRU Table 5.3: Time costs of PS-NTRUReEncrypt Operation On-line Off-line Encryption tmtm+2ts Re-Encryption tmtm+ts Decryption tm– •Bidirectional: Given rkA→B=fAf−1 B, one can easily compute rkB→A=(rkA→B)−1=fBf−1 A. •Multihop: It supports multiple re-encryptions, as shown in Section 5.1.4. Note that an error term is included during the re-encryption process, so the noise grows on each hop. Nevertheless, the correctness conditions presented before guarantee that the decryption succeeds with overwhelming probability for proper parameters (which include the devised maximum number of hops, N). See also the results presented on Section 5.1.5. •Not collusion-safe: This scheme suffers from the same vulnerability as NTRUReEncrypt,sosecretkeyscanbeextractedfromthere-encryption key if the proxy colludes with a user involved. This problem is common in bidirectional proxy re-encryption schemes. Table 5.3 shows the computational costs associated to PS-NTRUReEncrypt. As for our first scheme NTRUReEncrypt, the main operation here is the multiplication of polynomials, which is denoted by tm. In addition, another potentially costly operation is sampling from the noise distribution, denoted by ts.Wedistinguish here between on-line and off-line operations, as the latter can be performed beforehand (e.g., sampling noise terms). With regard to the theoretical space costs, this scheme shares the same results as NTRUReEncrypt, presented in Table 5.1. However, when considering an experimental instantiation, the parameters used would not be the same, which implies that the experimental costs vary. In addition, given that we lack of a formal analysis for quantifying the level of security that is provided by the scheme, it is not possible to make a direct comparison. An experimental analysis of the costs of PS-NTRUReEncrypt is presented in Section 5.1.5. Security proof In this section, we proceed to prove that the scheme PS-NTRUReEncrypt is CPA-secure. This proof is also based on the one given in [122, Lemma 3.8]. Theorem 5.4. Suppose that nis a power of 2, and qa prime number such that 105 Chapter 5. New Proxy Re-Encryption Constructions q=1 mod2n. Let γ∈(0,1 3),ε>0,p∈R × qand σ≥n�ln(8nq)·q1 2+γ. If there exists and IND-CPA attack against PS-NTRUReEncrypt with probability 1 2+ε, then there exists an algorithm that solves the Ring-LWE problem with probability ε 2−q−Ω(n). Proof of Theorem 5.4. Let us assume, by contradiction, that we have an adversary Athat breaks PS-NTRUReEncrypt with probability 1 2+ε.Weconstructan algorithm Bagainst the Ring-LWE problem as follows: Let Osample be an oracle that samples tuples (h�,C�) from either the uniform distribution over R× q×Rqor A× s,ψ. Algorithm Bfirst gets a sample (h�,C�)from Osample. Next, Bgenerates target public key pk∗=h∗=p·h�and gives pk∗to A. Note that, regardless of the input distribution, h�will be sampled uniformly from R× q,andsincep∈R × q,thenh∗=p·h�is uniformly random in R× q;however,by [122, Theorem 3], h∗is within negligible statistical distance q−Ω(n)to public keys generated by KeyGen.Bwill also generate an invalid, but correctly distributed, secret key polynomial f∗as described in the first step of the key generation process, so target secret key is sk∗=f∗. Both honest and corrupted key generation are done as in the PS-NTRUReEncrypt scheme. Re-encryption key generation queries are done using the secret keys derived on the key generation queries. Once Aqueries the challenge oracle with inputs M0and M1,Brandomly picks δ←{0,1}, and constructs the challenge ciphertext as C∗=p·C�+Mδ. Adversary Areceives C∗and, eventually, outputs its guess δ�;ifδ�=δ, then algorithm Boutputs 1. On the one hand, when the input to Bis a sample from A× s,ψ, then it will be of the form (h�,C�=h�s+e), for some s, e ←ψ.Inthiscase,thechallenge ciphertext C∗is a correct encryption of Mδunder h∗,sinceC∗=p·C�+Mδ= p(h�s+e)+Mδ=h∗s+pe +Mδ,andAwill succeed in distinguishing Mδwith probability 1 2+ε−q−Ω(n). Hence, Bwill determine that the sample was from the A× s,ψdistribution with the same probability. On the other hand, when the sample is from the uniform distribution over R× q× Rqthen C�is uniformly random in Rq, and since p∈R × q,soisp·C�.The challenge ciphertext C∗=p·C�+Mδwill be then uniformly random in Rq,as in the original distribution of ciphertexts, and independent of δ.Inthiscase, algorithm Bdoes not have any advantage in distinguishing the distribution and outputs 1 with probability 1 2. Overall, algorithm Bsucceeds with probability (1 2)(1 2+ε−q−Ω(n))+( 1 2)(1 2)=1 2+ε 2−q−Ω(n). This contradicts the Ring-LWE assumption when εis non-negligible. 106 5.1. Proxy Re-Encryption Schemes Based on NTRU Note that in this simulation, each re-encryption key that involves the target public key is invalid, as generating a re-encryption key implies knowledge of the secret keys of the users involved. In this case, the target public key is constructed from Osample, so the simulator does not know the corresponding secret key. However, since the secret key of the target used generated at the beginning of the simulation is correctly distributed, any re-encryption key computed from this secret key is indistinguishable from a valid one. A similar argument is made in [13]. Correctness Following the description of the encryption, decryption and re-encryption algorithms, it is easy to informally check that the correctness conditions stablished in Definition 5.1 are fulfilled: •For all (pkA,sk A) output by KeyGen and all messages M∈M, it holds that Dec(skA,Enc(pkA,M)) = M. The evaluation of the encryption of an arbitraty message M∈Mgives Dec(psgAf−1 A+pe+M,skA) as a result. Next, as described in the decryption algorithm, we take C�=fA·(psgAf−1 A+pe +M)=psgA+pefA+MfA. Finally, since fA=1 modpand psgA=pefA=0 modp,wehavethat C�mod p=M. •For any sequence of pairs (pki,sk i) output by KeyGen,with0≤i≤N,all re-encryption keys rkj→j+1 output by ReKeyGen(skj,sk j+1), with j<N, all messages M∈M, and all ciphertexts C1output by Enc(pk1,M), it holds that: Dec(skN,ReEnc(rkN−1→N, ...ReEnc(rk1→2,C 1))) = M If for any M∈Mcorrectness holds only with probability 1 minus a negligible quantity, we say that the scheme is correct with respect to M. Let us assume the sequence of secret keys f0,f 1,...,f N.Sinceourschemeis multi-hop, a ciphertext re-encrypted Ntimes will be of the form: CN=pg0f−1 Ns+pe0f0f−1 N+pe1f1f−1 N+... +peN−1fN−1f−1 N+peN+Mf0f−1 N =pg0f−1 Ns+�N−1 � i=0 peifif−1 N�+peN+Mf0f−1 N(5.1) where eidenotes the additional error terms added during the re-encryptions, and e0is the error term from the first (and unique) encryption. When decrypting CN, and assuming there are no decryption failures, one obtains: 107 Chapter 5. New Proxy Re-Encryption Constructions 5678910 100 101 102 103 log2(n) Time (ms) Encryption Decryption Re-Encryption Figure 5.2: Performance of PS-NTRUReEncrypt Table 5.6: Space costs (in KB) of PS-NTRUReEncrypt for different parameters Parameters Size of polynomials n=32,log2q=23 0.09 n=64,log2q=28 0.22 n=128,log2q=32 0.50 n=256,log2q=37 1.16 n=512,log2q=41 2.56 n= 1024,log2q=46 5.75 Other factor that could impact the results is that the implementation is not as optimized as NTRUReEncrypt, since we had to code it from scratch. In order to improve our implementation, we can make use of optimizations such as faster algorithms for polynomial multiplication, based on the Fast Fourier Transform (FFT). As for the space costs, Table 5.6 shows the size in KB of the polynomials produced by different parameters. Recall that in our schemes, all the elements of the cryptosystem (i.e., public and secret keys, re-encryption keys, and ciphertexts) are represented by the same kind of polynomials. 114 5.1. Proxy Re-Encryption Schemes Based on NTRU 5.1.6 Towards a Unidirectional Version of NTRUReEncrypt There are several improvements that are desirable for our proposed schemes. Apart from enhancing the security notion, which is discussed in the next section, achieving a unidirectional (and non-interactive) version strikes as an obvious next step. The first ideas towards a unidirectional scheme come from the study of a multikey fully homomorphic encryption scheme [127] that uses the NTRU version from Stehl´e and Steinfeld as a building block. In this paper, the authors embed a secret key into a ciphertext, using the NTRU variant, for constructing the evaluation key of a fully homomorphic encryption scheme; this way, the secret key is stealthily used during the homomorphic evaluation procedure. It can be seen that this is somehow analogous to the re-encryption keys and re-encryption procedure, so a natural question is to wonder whether this very same approach can be reused for constructing unidirectional re-encryption keys. Let us assume that the re-encryption key generation procedure of PS-NTRUReEncrypt is modified, so that instead of re-encryption keys of the form rkA→B=fAf−1 B, these are of the form rkA→B=hBz+pr +fA,wherez,r are random vectors. A first implication of this change is that the re-encryption key generation procedure becomes non-interactive, since it does not require the delegator to know the secret key fBof the delegatee, but the public one hB. A second implication is that, considering that PS-NTRUReEncrypt is also one-way secure, then it should not be possible to extract the secret key from the re-encryption key. The unidirectional property is also obvious, as a particular re-encryption key cannot be used to derive the converse re-encryption key. Although this approach looks promising, it is important to check if the correctness is preserved. In the case of PS-NTRUReEncrypt, this implies bounding the ciphertext noise in order to study the occurrence of decryption failures. Let CA=hAs+pe +Mbe a regular ciphertext. Recall that when decrypting a re-encrypted ciphertext, the decryption algorithm first makes the following computation: C� B=fB·(rkA→B·CA) =fB·(hBz+pr +fA)(hAs+pe +M) =p·[(gBz+fBr)·CA+gAfBs]+fAfBM(5.3) Assuming no decryption failures, this expression is reduced modulo p,which should yield a correct decryption, since, being fAfBmod p= 1, it holds that: C� Bmod p=fAfBMmod p=M 115 Chapter 5. New Proxy Re-Encryption Constructions However, these arguments can be false in the event of decryption failures. In fact, the noise represented by the term p·[(gBz+fBr)·CA+gAfBs] in Equation 5.3 can be quite large. Preliminary experimental results show that this noise is too big for allowing the decryption to be correct. This problem also seems to appear when we follow a similar approach for NTRUReEncrypt, which was more tolerable against noise. The fact that this approach does not yield immediate results for both NTRUReEncrypt and PS-NTRUReEncrypt hints that solving this problem is far from being obvious. An initial strategy towards solving this problem is to find a set of parameters that minimize the probability of decryption failures, while preserving the security of the schemes. This is still work in progress. Apart from the decryption failures, the proposed approach, based on the encryption of secret keys acting as re-encryption keys, poses new challenges. The security concerns that arise when a secret key is encapsulated into a ciphertext are modeled by the notion of circular security. Informally, this notion studies the implications of providing the adversary with cycles of the following form: {Enc(pk1,sk 2),Enc(pk2,sk 3), ..., Enc(pkn−1,sk n),Enc(pkn,sk 1)} Cash et al. show in [128] that if it is possible to obtain certain type of key cycles, then passive adversaries might be able to recover the secret keys involved, even when CCA-secure encryption schemes are used. Potentially, this has serious implications for this proposed approach, because re-encryption keys can be used to create key cycles. 5.1.7 Summary In this section we described NTRUReEncrypt, a highly-efficient proxy re-encryption scheme based on the NTRU cryptosystem. This scheme is bidirectional and multihop, but not collusion-resistant. The key strength of this scheme is its performance. Experimental results show that this scheme outperforms previous proposals by an order of magnitude, and there is room for even more improvement, for instance using parallelization techniques, as shown in [124]. We believe that the level of efficiency shown by NTRUReEncrypt opens up new practical applications of proxy re-encryption in constrained environments. In addition to this scheme, we propose PS-NTRUReEncrypt, a provably-secure variant that is CPA-secure under the hardness of lattice problems, namely the Ring-LWE problem. 116 5.2. Application of Generic CCA-Secure Transformations to PRE 5.2 Application of Generic CCA-Secure Transformations to PRE In the previous section, we described a proxy re-encryption scheme that is proven CPA-secure. Once one obtains schemes like this, an immediate objective would be to improve their security notion, hopefully achieving full CCA-security. To this end, there are two different strategies that can be applied: one is to redesign, from scratch, a new scheme based on the original; a second option is to try to bootstrap the achieved security notion into a stronger one by means of a generic method. Several generic methods exist for achieving CCA-secure public-key encryption schemes from weakly secure cryptosystems, such as the Fujisaki-Okamoto and REACT transformations [17, 18]. To the best of our knowledge, this is not the case of proxy re-encryption. Therefore, it would be desirable to count on analogous constructions that allow PRE schemes to achieve better security notions. In this section, we study the adaptation of these transformations to proxy reencryption and find both positive and negative results. On the one hand, we show that a direct and naive application of these transformations leads to flaws in the security proofs, which we spot in a dozen of schemes from the literature. On the other hand, we propose an extension of the Fujisaki-Okamoto transformation for PRE, which achieves a weak form of CCA-security in the random oracle model, and identify the sufficient conditions for applying it. 5.2.1 Introduction Acovetedgoalforanycryptosystemistosatisfyastrongnotionofsecurity,relevant to its security objectives. In the case of Public-Key Encryption (PKE), indistinguishability against chosen-ciphertext attacks (IND-CCA) is widely regarded as the right notion of security [119]. Informally, the IND-CCA notion describes a security model where any adversary, even with access to a decryption oracle, is not able to distinguish messages for a given ciphertext. The same desire for achieving right security notions drives the design of other kinds of cryptosystems, and proxy re-encryption is no different. Similarly to the PKE case, the IND-CCA notion is also considered as the target security notion for PRE schemes. In addition to the decryption capabilities, this notion naturally considers the ability of the adversary to re-encrypt chosen ciphertexts by means of a re-encryption oracle. However, this added capability poses an interesting challenge since the possibility of re-encrypting ciphertexts conflicts with 117 Chapter 5. New Proxy Re-Encryption Constructions the traditional view of CCA-security, which implies non-malleability of ciphertexts, as pointed out by Canetti and Hohenberger, the authors of one of the first CCA-secure PRE scheme [45]. Given the peculiarities of IND-CCA security in PRE, it is often not easy to devise schemes that achieve strong security notions. Most CCA-secure PRE schemes usually resort to additional constructions such as one-time signatures [45, 12], Schnorr signatures [54] and non-interactive zeroknowledge proofs [62], which have to be carefully integrated in an ad-hoc manner. Apart from this difficulty, there are also other factors, such as efficiency and design simplicity, which are usually negatively impacted in CCA-secure schemes. In the context of PKE, several generic methods exist for achieving CCA-secure schemes from weakly secure cryptosystems. Fujisaki and Okamoto proposed in 1999 [71], and revisited recently in [17], a generic conversion for achieving CCA- security in the random oracle model from a weakly secure asymmetric cryptosystem and a symmetric encryption scheme. Similar transformations, such as REACT [18] and GEM [29], have been proposed since then. A natural question is, then, to wonder whether an analogous transformation can be constructed for proxy re-encryption schemes. Direct application of the aforementioned transformations leads, in general, to flawed cryptosystems. In this chapter we show several examples from the literature where a naive application of this transformation leads to flaws in the security proofs. On a positive note, we also describe sufficient conditions that allow to apply the Fujisaki-Okamoto directly. These conditions include achieving a weak notion of security, namely IND-CCA0,1(defined in Chapter 4), where the adversary only has access to the re-encryption oracle before the challenge, and the satisfaction of a new property of PRE called “perfect key-switching”, which characterizes schemes where the re-encryption process preserves the original randomness of ciphertexts. The schemes resulting from this transformation achieve IND-CCA2,1security in the random oracle model, a notion slightly weaker than full CCA-security. As an illustration, we present an example of a scheme that satisfies the application conditions and we show the resulting scheme after the transformation. In addition to the Fujisaki-Okamoto proposal, we also outline how the REACT [18] and GEM [29] transformations could be extended for proxy re-encryption. Finally, we discuss the applicability of the devised transformations to our PRE schemes based on NTRU. 118 5.2. Application of Generic CCA-Secure Transformations to PRE 5.2.2 Related work The Fujisaki-Okamoto transformation, originally proposed in [71] and recently revisited in [17], was the first generic transformation from weakly secure encryption schemes to a CCA-secure public key cryptosystem. Later, Okamoto and Pointcheval described a more efficient construction, called REACT [18], which in turn inspired Coron et al. to propose GEM [29], a more complex construction, but that achieves shorter ciphertexts. Although both REACT and GEM are more efficient than the Fujisaki-Okamoto transformation, they require stronger assumptions on the underlying public-key scheme (see Section 5.2.6). There are several examples of the application and modification of such transformations for other kinds of cryptosystems. Kitagawa et al. study in [129] the adaptation of both Fujisaki-Okamoto and REACT to Identity-Based Encryption, and estimate their reduction costs. Similar works exist in the context of certificateless public-key encryption [130], and certificated-based encryption [131]. Although these extensions are relevant to our work, the inherent difficulties that arise from the re-encryption capabilities of PRE pose a challenging problem. To the best of our knowledge, there is no prior work on generic transformations for PRE, in the sense of constructions that increase the security of existing proxy reencryption schemes. There are, however, a couple of works that propose generic methods for constructing CCA-secure PRE schemes out of other kinds of cryptosystems. Shao et al. propose in [132] a generic method based on a CCA-secure threshold encryption scheme; additionally they describe variants for achieving collusion resistance and Identity-based PRE. In a posterior work, Hanaoka et al. present in [133] another generic method for constructing CCA-secure PRE schemes, also based on the use of threshold encryption, together with a CCA- secure PKE scheme and a strongly unforgeable signature scheme. However, this latter method requires long keys and ciphertexts. For instance, a re-encryption key is made of two PKE public keys, one PKE ciphertext, a threshold encryption share and a signature. 5.2.3 Adapting the Fujisaki-Okamoto Transformation to PRE In this section we describe the original Fujisaki-Okamoto transformation and describe the conditions that allow to apply it correctly to proxy re-encryption. 119 Chapter 5. New Proxy Re-Encryption Constructions The Fujisaki-Okamoto Transformation Fujisaki and Okamoto proposed in 1999 a generic transformation for achieving IND-CCA security in the random oracle model from a public key encryption scheme with one-way security under chosen plaintext attacks (OW-CPA) [71]. In order to do so, the generic transformation integrates the PKE scheme with an IND-CPA-secure symmetric scheme and a pair of hash functions. Recently, the authors presented a revised version [17], which will be the one we consider in this chapter. The hybrid transformation, which we denote as Hyb,isasfollows.LetPKE be a public-key encryption scheme, Sym a symmetric encryption scheme, and Hand G hash functions. PKE is non-deterministic, so in addition to the public key and the message, its encryption function takes an additional parameter for introducing randomness in the ciphertext. In order to encrypt a message m, the hybrid transformation first samples randomly a term σfrom the message space of PKE.Themessagemis then encrypted with Sym using G(σ)askey,whichproducesthetermc=Sym.Enc(G(σ),m). Next, the σterm is encrypted with PKE, taking H(σ, c) as the random coins. The hybrid transformation produces the following tuple as the encryption of message m: Hyb.Enc(pk, m)=(PKE.Enc(pk, σ, H(σ, c)),c) When decrypting a ciphertext, which we will denote by the tuple (e, c), the hybrid transformation performs the inverse procedures in reverse order: it decrypts σfrom e, and computes G(σ) in order to extract the decryption key for c, thus obtaining the original message m. However, an additional validation step is performed during the decryption. This step involves re-computing the term e=PKE.Enc(pk, σ, H(σ, c)) of the ciphertext, ensuring this way that the ciphertext is valid. If this check does not succeed, the ciphertext is rejected. This very last step is the reason why the Fujisaki-Okamoto transformation fails if applied as is in PRE: the re-encryption function change the ciphertexts in such a way that the validation checking that takes place during the decryption inevitably fails. In particular, the alteration produced by the re-encryption affects the original random coins introduced in the encryption; hence, the validation check will fail once a ciphertext is re-encrypted. Section 5.2.4 shows how the scheme from Aono et al. [47] is flawed precisely for omitting the validation step, so the problem went unnoticed. As a solution to this problem, it is interesting to think of PRE schemes where the re-encryption does not alter the original randomness. In this section we 120 5.2. Application of Generic CCA-Secure Transformations to PRE characterize a property of PRE schemes that captures this notion, called perfect key-switching, and use it as one of the conditions to successfully apply the Fujisaki-Okamoto transformation to PRE. A New Property of PRE: Perfect Key-Switching In the previous section we identified that the alteration of the original randomness prevents Fujisaki-Okamoto’s decryption procedure from validating a re-encrypted ciphertext. We are therefore interested on those schemes where the original randomness is preserved. This notion is captured by the following property. Definition 5.8 (Perfect Key-Switching).Let Π=(KeyGen,ReKeyGen,Enc,Dec,ReEnc) be a PRE scheme, with message space Mand random coins space R, and λthe security parameter. We say that Πsatisfies the perfect key-switching property if for all keypairs (pki,sk i),(pkj,sk j)generated by KeyGen(λ), all m∈M, all r∈R, and all rki→j=ReKeyGen(pki,sk i,pk j,sk j), then ReEnc(rki→j,Enc(pki,m,r)) = Enc(pkj,m,r) It can be seen that the key-switching procedure that takes places during reencryption is “perfect”, in the sense that it does not affect the random coins used. Informally, the re-encryption simply “switches” one public key for another. Examples of this type of scheme are the BBS [43] and CH [45] schemes. It is easy to check that the former exhibits this property. The BBS scheme, based on the ElGamal cryptosystem, is constructed over a group Gof prime order q, with generator g.Secretkeysareoftheformsk =a∈Zq, whereas public keys are pk =ga∈G. Ciphertexts are of the form (pkr,gr·m), for a random exponent r. Re-encryption keys are computed as rki→j=skj ski, so the re-encryption process simply consists on raising the pkrcomponent of the ciphertext to the reencryption key. This scheme fulfills the perfect key-switching property since the re-encryption process gracefully removes the original public key and substitutes it with the new one, preserving the original randomness: ReEnc(rki→j,Enc(pki,m,r)) = ReEnc(b a,((ga)r,gr·m)) =((gar)b a,gr·m) =(gbr,gr·m)=Enc(pkj,m,r) Therefore, the original ciphertext (gar,gr·m)isperfectlytransformedafterreencryption into (gbr,gr·m). 121 Chapter 5. New Proxy Re-Encryption Constructions Note that Definition 5.8 can be generalized for PRE schemes with multiple encryption (and consequently, decryption) functions. For example, for the case of two encryption functions Enc1and Enc2,asintheschemesfromAtenieseet al. [11], the perfect key-switching condition can be restated as follows: ReEnc(rki→j,Enc2(pki,m,r)) = Enc1(pkj,m,r) An immediate consequence of the perfect key-switching property is that it implies proxy invisibility.APREschemeissaidtobeproxy-invisibleifadelegatee is unable to distinguish a ciphertext computed under her public key from a reencrypted ciphertext, originally encrypted under another public key [11]. That is, the proxy is “invisible”, in the sense that the delegatee cannot discern whether the proxy has transformed the ciphertexts. From this description, it is clear that perfect key-switching implies proxy invisibility: a re-encrypted ciphertext has exactly the same form as a ciphertext originally encrypted with the delegatee’s public key. However, the converse implication (i.e., proxy invisibility implies perfect key-switching) is not necessarily true. For example, the third proposal from Ateniese et al. [11] is proxy invisible, but does not satisfy the perfect key-switching property, since the original randomness is altered after the re-encryption; in particular, the original random component ris polluted during the re-encryption with the original secret key a,sothenewrandomnessbecomes r�=a·r.Thisdoesnotaffectsecurityoftheschemeinanywaybecausethe random elements are safely conveyed as exponents (i.e., exploiting this would imply solving the discrete logarithm problem), but it is sufficient for disallowing the reconstruction of a re-encrypted ciphertext from the original message and randomness, breaking the perfect key-switching property. Another interesting result is that the perfect key-switching property also implies that the PRE scheme cannot be key-private, a property of PRE schemes where the proxy cannot learn the identity of the involved users from the re-encryption key. This property was first defined in [64], where the authors formulated some necessary conditions for achieving key privacy. One of this conditions is that the re-encryption function must be probabilistic. However, it can be seen that our formulation of perfect key-switching requires deterministic re-encryption. Therefore, if a PRE scheme satisfies the perfect key-switching property, it cannot be key-private. Extension of the Fujisaki-Okamoto transformation to PRE The intuition behind how the Fujisaki-Okamoto transformation can be extended to PRE is simple: assuming the underlying PRE scheme satisfies the perfect keyswitching property, then a re-encrypted ciphertext is completely indistinguishable 122 5.2. Application of Generic CCA-Secure Transformations to PRE from an original ciphertext created with the same randomness. Therefore, the re-encryption does not affect the transformation. The extended transformation Let PRE be a proxy re-encryption scheme and Sym a symmetric encryption scheme. Let Mpre,Cpre and Rpre denote the message, ciphertext and randomness spaces of PRE,respectively,whileMsym,Csym and Ksym denote the message, ciphertext and key spaces of Sym. The encryption function in PRE is non-deterministic, so besides the public key and the message, it takes a parameter from Rpre for introducing randomness in the ciphertext. Let H and Gbe hash functions, where H:Mpre ×Csym →R pre and G:Mpre →K sym. We denote as Hyb to the hybrid scheme that results from applying the extended Fujisaki-Okamoto transformation, which is generically defined as follows: •Hyb.Setup(λ)→params�. On input the security parameter λ,thesetup algorithm first computes params ←PRE.Setup(λ) and outputs the set of global parameters params�=params ∪{H(·),G(·)}. •Hyb.KeyGen(λ)→(pki,sk i). On input the security parameter λ,thekey generation algorithm outputs (pki,sk i)←PRE.KeyGen(λ), which is the pair of public and secret keys for user i. •Hyb.ReKeyGen(pki,sk i,pk j,sk j)→rki→j. On input the pair of public and secret keys (pki,sk i)foruseriand the pair of public and secret keys (pkj,sk j)foruserj, the re-encryption key generation algorithm outputs the re-encryption key rki→j←PRE.ReKeyGen(pki,sk i,pk j,sk j). •Hyb.Enc(pki,m)→(ei,c i). On input a public key pkiand a message m∈ Msym, the encryption algorithm first samples a random σ∈M pre,andcomputes ci←Sym.Enc(G(σ),m). Next, it computes ei←PRE.Enc(pki,σ,H(σ, ci)). Finally, it outputs ciphertext (ei,c i). •Hyb.ReEnc(rki→j,(ei,c i)) →(ej,c j). On input a re-encryption key rki→j and a ciphertext (ei,c i), the re-encryption algorithm outputs the ciphertext: (PRE.ReEnc(rki→j,e i),c i) •Hyb.Dec(ski,(ei,c i)) →m. On input the secret key skiand a ciphertext (ei,c i), the decryption algorithm first computes σ←PRE.Dec(ski,e i), and verifies that σ∈M pre; otherwise, it outputs ⊥. Next, it verifies that ei=PRE.Enc(pki,σ,H(σ, ci)); otherwise, it outputs ⊥. Finally, it outputs the result of the symmetric decryption algorithm Sym.Dec(G(σ),c i). 123 Chapter 5. New Proxy Re-Encryption Constructions encryption oracle is based on the random oracle tables. This solution is incorrect, as the security proof differs from the real execution for certain re-encryption queries. We surveyed the literature of CCA-secure PRE schemes in the Random Oracle model, looking for instances of this flaw. Our study yielded eleven vulnerable schemes [55, 62, 54, 135, 136, 137, 138, 139, 140, 141, 142], althought this list might not be exhaustive. Although these PRE schemes have different characteristics, such as being bidirectional [54], conditional [55] or identity-based [141], all of them share the same intrinsic problem that arises from a wrong integration of the Fujisaki-Okamoto transformation or other related techniques. It is important to note that this problem was first identified by Canard et al. in [144], but restricted to the analysis of scheme from Chow et al. [135]. The problem is based on two different issues. First, in the encryption function, secret values are used as input to a hash function to produce the randomness needed for encryption. For instance, in the original Fujisaki-Okamoto transformation [71], the session key σand the original message mare used as this input: it is clear that mshould not be disclosed during re-encryption; in the same manner, neither σshould be revealed, since this could be used to decrypt the message. However, this also means that in a real execution of the re-encryption function, it is not possible to verify that the hash function has been used correctly (i.e., (σ, m) was used as input to H). Second, the CCA attack model in PRE implies that queries of the form (pk∗,pk j,ˆc), where user jis corrupt and ˆcis not a derivative of the challenge, are legitimate and must be answered correctly. This requirement can be inferred from usual security models for CCA in proxy re-encryption, such as [45, 120], and in fact, represents a critical, yet often overlooked, point in most CCA security proofs. In particular, the simulation of these queries in the security proofs of the identified schemes relies on examining the random oracle tables, which contain the input and output of previous random oracle queries, as generally the challenger does not have access to the target secret key sk∗, which is necessary for generating the corresponding re-encryption key. Taking both issues into consideration, let us suppose that the adversary creates an ill-formed ciphertext ˆcunder the target public key pk∗, where the randomness ris not derived from H(σ, m), but chosen randomly. Next, the adversary calls the reencryption oracle with the input (pk∗,pk j,ˆc), for some corrupt user j. Note that this query is legal, since it is not related to the challenge ciphertext (in fact, it can occur in phase 1), and the simulator must answer it correctly since the adversary 130 5.2. Application of Generic CCA-Secure Transformations to PRE can check whether its decryption results in the same original message. The reencryption strategy based on the random oracle tables does not work in this case, since the adversary did not use the random oracle, so the challenger cannot respond to this type of queries. The security proofs in the identified schemes opt for returning ⊥, indicating that the ciphertext is invalid. However, this approach differs from the real execution, where the re-encryption function is unable to check whether the random oracle was used or not (i.e., that the ciphertext is valid or not), since the input to the random oracle should be hidden from the proxy; the re-encryption will work normally. Consequently, these security proofs are flawed, as the security proofs differ from the real execution. Let us illustrate this flaw by analyzing one of the identified schemes. The PRE scheme from Weng et al. [54, 50] is bidirectional, single-hop, interactive and is allegedly CCA-secure in the random oracle model. Although this scheme does not use the Fujisaki-Okamoto transformation, it integrates a variation of the Hashed ElGamal scheme. Still, the same error in the security proof applies, since the randomness is generated from a value that must be kept hidden from the proxy (i.e., the original message m), which implies it can only be correctly verified during decryption, and not during re-encryption. The following is a slightly simplified version of the scheme: •Setup(λ): The setup algorithm first determines the cyclic group Gof order q,withqa prime of λbits. A generator g∈Gis chosen randomly. The message space is M={0,1}n,wherenis polynomial in the security parameter λ.ItisalsorequiredasetofhashfunctionsH1,H 2and H3,where H1:{0,1}n×G→Zq,H 2:G→{0,1}nand H3:G2×{0,1}n→Zq.The global parameters are represented by the tuple: params =(q,G,g,H 1,H 2,H 3) •KeyGen(params): Sample a random xi∈Zq, and compute the public and private key of user ias pki=gxiand ski=xi. •ReKeyGen(ski,sk j): The re-encryption key from user ito user jis computed as rki→j=skj/ski. •Enc(pki,m): First, compute r=H1(m, pki). Next, sample random u∈Zq, and compute D=(pki)u,E=(pki)r,F=H2(gr)⊕m,ands=u+r· H3(D,E,F)modq. The ciphertext is the tuple CTi=(D,E,F, s). •ReEnc(rki→j,CT i=(D, E,F,s)): First, check that the condition (pki)s= D·EH3(D,E,F)holds; otherwise, output ⊥. The re-encryption of ciphertext CTiis the tuple CTj=(pki,E�,F), where E�=Erki→j=(pkj)r. 131 Chapter 5. New Proxy Re-Encryption Constructions •Dec1(sk, CT =(pki,E�,F)): Given a first-level ciphertext CT, the original message is computed as m=F⊕H2((E�)1/sk). Finally, check that E�= pkH1(m,pki)holds and return m; otherwise, return ⊥. •Dec2(sk, CT =(D,E,F, s)): Given a second-level ciphertext CT,firstcheck that the condition pks=D·EH3(D,E,F)holds; otherwise, output ⊥.The original message is computed as m=F⊕H2(E1/sk). Finally, check that E=pkH1(m,pk)holds and return m; otherwise, return ⊥. Note that the check that is made during re-encryption is unable to verify whether r=H1(m, pki). For instance, if the value ris chosen randomly, the re-encryption still works normally. Therefore, the security proof should also behave in the same way, but we will see below that this is not the case. Figure 5.5 shows the definition of the re-encryption oracle given in the security proof of this scheme. Algorithm Oreenc(pki,pk j,CT i=(D,E,F, s)) If (pki)s�=D·EH3(D,E,F)return ⊥ If iand jare both honest or corrupt Compute E�=Exj/xi Else Search tuple (m, pki,r)∈L H1,suchthat(pki)r=E If such tuple exists, then compute E�=(pkj)r Else return ⊥ Return CTj=(pki,E�,F) Figure 5.5: Re-encryption oracle from Weng et al.’s security proof [54] It can be seen that when users iand jare both honest or corrupt, the reencryption oracle simply computes the re-encryption keys; otherwise, it resorts to examining LH1, the random oracle table for H1. However, as pointed out previously, this oracle is unable to correctly answer queries of the form (pk∗,pk j,ˆc), where ˆcis an ill-formed ciphertext under the target public key pk∗whose randomness ris not derived from H1(m, pk∗). In this case, the target user is honest, by definition, whereas user jis corrupt, so the re-encryption oracle resorts to the random oracle table LH1,whichdoesnot contain any tuple of the form (m, pk∗,r), and returns ⊥.Thisbehaviordeviates from the real-world execution of the re-encryption function, where no ciphertext is rejected when r�=H1(m, pk∗). 132 5.2. Application of Generic CCA-Secure Transformations to PRE Another example of wrong usage of the transformation In addition to the flawed schemes presented in the previous section, we describe here a scheme where the Fujisaki-Okamoto transformation is incorrectly applied. In [47], Aono et al. proposed a lattice-based encryption scheme which is proven CPA-secure in the standard model. Then, on top of this scheme, they construct a “CCA-secure” version in the random oracle model, using the generic conversion from Fujisaki and Okamoto [71]. However, this version is flawed because it does not perform the validation step during decryption. If one forces this check, decryption will always fail for re-encrypted ciphertexts, breaking the correctness of the scheme. The PRE scheme from Aono et al. In this subsection we describe the scheme from Aono et al. This scheme is based upon a lattice cryptosystem from Lindner and Peikert [33], whose hardness relies on the Learning With Errors (LWE) problem [32]. Some details are omitted for clarity; we refer the interested reader to [47] and [33] for a complete description of the scheme. Let nbe the security parameter, qa prime number, and la fixed message length. Set k=logq. Let the randomly generated matrix A∈Zn×l qbe publicly known. Let Dn1×n2be a gaussian noise distribution over Zn1×n2. Auxiliary function Power2:Zn×l q→Znk×l qis defined as Power2(X)=     X 2X . . . 2k−1X      while function Bits :Z1×n q→{0,1}1×nk produces a bit representation of the elements of input vector v,suchthatBits(v)·Power2(X)=v·X∈Z1×l q. Details about noise distribution Dand functions Power2(·)andBits(·)areomittedhere, but can be found on [47, 33]. The scheme is as follows: •KeyGen(n): Sample R, S ←Dn×l. The public key is pk =P=R−AS ∈ Zn×l q,whilethesecretkeyissk =S∈Zn×l. •Enc(pk =P,m ∈{0,1}l): Sample gaussian noise vectors f1,f 2from D1×n, and f3from D1×l.Encodethemessagem∈{0,1}lto m·�q 2�∈Z1×l q. 133 Chapter 5. New Proxy Re-Encryption Constructions Output the ciphertext e=(e1,e 2)∈Z1×(n+l) q,where e1=f1A+f2 e2=f1P+f3+m·�q 2� •Dec(sk =S, e =(e1,e 2)): Compute ¯m=e1S+e2∈Z1×l q.Let(¯m1, ..., ¯ml) be the individual elements of ¯m. Output the decrypted message m= (m1,...,m l), where mi=0if ¯mi∈[−�q 4�,�q 4�)⊂Zq,andmi=1oth- erwise. •ReKeyGen(ski=Si,pk j=Pj,sk j=Sj): Sample X∈Znk×n qfrom the uniform distribution and Efrom Dnk×l. Output the re-encryption key rki→j=(Pj,Q), where Q=�X−XSj+E+Power2(Si) 0I� •ReEnc(rki→j=(Pj,Q),e =(e1,e 2)): Sample gaussian noise vectors g1,g 2 from D1×n,andg3from D1×l. Compute g1[A|Pj]+[g2|g3]+[Bits(e1)|e2]·Q∈Z1×(n+l) q and parse the result as [e� 1|e� 2], where e� 1∈Z1×n qand e� 2∈Z1×l q. Output the re-encrypted ciphertext e�=(e� 1,e � 2). It can be seen that e� 1=g1A+g2+Bits(e1)X e� 2=g1Pj+g3+Bits(e1)(E−XSj)+e1Si+e2 Description of the flaw The flaw is based on the fact that a direct application of the Fujisaki-Okamoto conversion does not work in general for proxy reencryption, since the validity check during the decryption fails for re-encrypted ciphertexts. In the definition of their CCA scheme, they only consider the validity of decryption in the case of original ciphertexts. However, when one considers reencrypted ciphertexts, it can be seen that the validity check during the decryption always fails. Let us consider the CCA-secure version of the scheme, after applying directly the Fujisaki-Okamoto transformation, and let us define a scenario with two users i and j, with public keys Piand Pj, respectively. A ciphertext originally encrypted 134 5.2. Application of Generic CCA-Secure Transformations to PRE for user iis a tuple (e1,e 2,c)where: e1=f1A+f2 e2=f1Pi+f3+σ·�q 2� c=Sym.Enc(G(σ),m) The terms (e1,e 2) are the encryption of σwith the PRE scheme, where the term cis the symmetric encryption of the original message, with key G(σ). Thus, the original random coins in this case are the noise vectors (f1,f 2,f 3), which by the definition of the transformation, are computed from H(σ, c). In the random oracle model, if this query to Hhas not been done previously, Hproduces a random output and records the tuple (σ, c, f1,f 2,f 3)forfuturequeries. Now lets consider that this ciphertext, originally intended for user i,isre-encrypted for some user j.Letg1,g 2,g 3be the random vectors introduced by the reencryption function, X,E random matrices defined by user jduring the interactive process for generating re-encryption keys and Si,S jthe secret keys of users iand j. The transformation only re-encrypts the terms (e1,e 2), so the result is a tuple (e� 1,e � 2,c) of the form: e� 1=g1A+g2+Bits(e1)X e� 2=g1Pj+g3+Bits(e1)(E−XSj)+e1Si+e2 c=Sym.Enc(G(σ),m) Now user jdecrypts this ciphertext. Recall that the Fujisaki-Okamoto conversion dictates that the output of the asymmetric encryption must be reconstructed, using the same inputs. By the correctness of the original PRE scheme, she correctly receives σ. However, the output of H(σ, c)mustbeagain(f1,f 2,f 3), by the definition of the random oracle. When trying to reconstruct (e� 1,e � 2)shewould obtain ˆe� 1=f1A+f2,ˆe� 2=f1Pj+f3+σ·�q 2�, and the validation would fail since (ˆe� 1,ˆe� 2)�=(e� 1,e � 2). Therefore, the decryption of re-encrypted ciphertexts will always fail. 5.2.5 Applying the proposed transformation For illustration purposes, in this section we present a PRE scheme that is secure in the sense of IND-CCA0,1, assuming the 3-wDBDHI problem [12] is hard. We later apply our extended Fujisaki-Okamoto transformation for obtaining a INDCCA2,1-secure scheme. 135 Chapter 5. New Proxy Re-Encryption Constructions The original scheme This scheme is based on a scheme from Ateniese et al. [11] that lacked a security proof. In order to prove that this scheme is IND-CCA0,1secure, we borrowed some ideas from the RCCA secure scheme from Libert and Vergnaud [12]. The scheme is as follows: •Setup(1λ): The setup algorithm first determines the cyclic groups Gand GTof order q,withqa prime of λbits, and a bilinear pairing e,sothat e:G×G→GT.Asetofgeneratorsg,u,v ∈Gis chosen randomly, and Z=e(g,g). Function F:Zq→Gis defined as F(t)=ut·v. The global parameters are represented by the tuple: params =(g,u,v,F(·),Z) •KeyGen(params): Sample a random xi∈Zq, and compute the public and private key of user ias pki=gxiand ski=xi. •ReKeyGen(ski,pk j): The re-encryption key from user ito user jis computed as rki→j=(pkj)1/ski=gskj/ski •Enc2(pki,m): Sample random r, t ∈Zq.Thesecond-levelencryptionofm under pkiis the tuple CTi=(t, C0,C 1,C 2), where C0=F(t)rC1=Zr·m C2=(pki)r=gxir •Enc1(pki,m): The first-level encryption of munder pkiis exactly as the second-level, except that C2=e(g,pki)r=Zxir. •ReEnc(rki→j,CT i=(t, C0,C 1,C 2)): Check that the condition e(C0,pk i)= e(C2,F(t)) holds; otherwise, output ⊥. The re-encryption of the secondlevel ciphertext CTiis the tuple CTj=(t, C0,C 1,C� 2), where C� 2=e(C2,rk i→j)= Zxjr. •Dec1(ski,CT i=(t, C0,C 1,C 2)): Given a first-level ciphertext CTi, the original message is computed as m=C1 C1/ski 2 136 5.2. Application of Generic CCA-Secure Transformations to PRE •Dec2(ski,CT i=(t, C0,C 1,C 2)): Given a second-level ciphertext CTi,the original message is computed as m=C1 e(g,C2)1/ski The first important characteristic of this scheme is that it fulfills the perfect keyswitching property, since the original randomness used in second-level ciphertext is preserved after re-encryption, so a re-encrypted ciphertext is equal to first-level ciphertext encrypted with the same randomness. More formally, for all messages m, randomness t, r and public keys pki,pk j, it holds that: ReEnc(rki→j,Enc2(pki,m;t||r)) = Enc1(pkj,m;t||r) Assuming we use the same randomness t||rfor both encryptions, then it can be seen that a re-encrypted ciphertext is computed with the same operations than a first-level encryption, except for element C2.TheC2component of a firstlevel encryption under pkjis computed as C2=e(g,pkj)r=Zxjr, while the same component in a re-encrypted ciphertext is C� 2=e((pki)r,rk i→j)=e(gxir,gxj/xi)= Zxjr, yielding the same result. Therefore, this scheme satisfies the perfect keyswitching property. In addition, it can be seen that it is also well-spread, since for any message m there can be q2≈22λdifferent ciphertexts: component tis sampled randomly from Zq, and the rest of the components resemble an ElGamal ciphertext, for random r∈Zq. Proving IND-CCA0,1security In this section we prove that the scheme is secure under the IND-CCA0,1notion, assuming the 3-wDBDHI problem is hard. We use an alternative definition of this hard problem, due to Libert and Vergnaud [12]. Definition 5.10 (3-wDBDHI problem).Given a tuple (g,ga,ga2,g1/a,gb,e(g,g)d), the 3-weak Decisional Bilinear DH Inversion problem (3-wDBDHI) in (G,GT)is to decide whether d=b/a2. The proof consists on a reduction from the 3-wDBDHI problem to the INDCCA0,1security of the scheme. Suppose that the scheme is not IND-CCA0,1secure, then there is an adversary Bthat wins the IND-CCA0,1game with non-negligible advantage ε, so its success probability is 1 2+ε.Fromthisadversary,wecan construct an algorithm Athat solves the 3-wDBDHI problem with probability 137 Chapter 5. New Proxy Re-Encryption Constructions 1 2+ε 2−qreenc ·2−λ−1,whereqreenc is the number of queries to the re-encryption oracle made by B. Areceives as input a tuple (g,ga,ga2,g1/a,gb,Zd), and uses it to simulate the environment for the adversary B. First, Asamples random t∗,α 1,α 2∈Zq,and sets u=(ga)α1and v=(ga)−t∗α1(ga2)α2,soF(t)=gaα1(t−t∗)ga2α2. Note that F(t∗)=ga2α2; we will use this later in the proof. The public key of the target user is set as pk∗=ga2.Forhonestusers,Asamples random wi∈Zqand sets pki=gawi.Forcorruptusers,Asimply runs the key generation algorithm and return the resulting public and private key pair (pki=gxi,sk i=xi). Re-encryption keys rki→jare generated as follows: •Honest user to target user: rki→∗ =(ga)1/wi •Target user to honest user: rk∗→j=(ga)wj •Honest user to honest user: rki→j=gwj/wi •Honest user to corrupt user: rki→j=(g1/a)xj/wi •Corrupt user to another user: rki→j=(pkj)1/xi Since the attack model is CCA0,1, it is only necessary to simulate the re-encryption oracle in Phase 1 (i.e., before the challenge). It is possible to simulate correctly all possible re-encryption queries Oreenc(pki,pk j,CT i) using the re-encryption keys described, except for the case when pki=pk∗and user jis corrupt. These queries are solved as below, without requiring the corresponding re-encryption key. Since pki=pk∗,theciphertextCTiis a tuple (t, F(t)r,m·Zr,(pk∗)r)= (t, (gaα1(t−t∗)ga2α2)r,m·Zr,ga2r). In order to compute the re-encryption, the challenger produces the auxiliary value gar in the following way: gar =C0 Cα2 2 1 (t−t∗)α1=�F(t) ga2α2�r (t−t∗)α1 Once Acomputes gar, the re-encryption of C2(which, as mentioned before, is the only component of the ciphertext that changes after re-encryption) is as follows: C� 2=e((g1/a)xj,gar)=Zxjr Note that this procedure is correct except for the case then t=t∗.Sincet∗is not disclosed by Ain Phase 1, and tis sampled randomly, the case when t=t∗can happen only with negligible probability 1/q ≈2−λ,foreachre-encryptionquery. 138 5.2. Application of Generic CCA-Secure Transformations to PRE We assume that the adversary Bcan make up to qreenc queries, so the overall probability of this type of events is qreenc ·2−λ. The challenge ciphertext is constructed as: CT∗=(t∗,(gb)α2,m δ·Zd,gb) Aruns adversary Bto obtain the guess δ�and decides that d=b/a2when δ=δ�. Note that when d=b/a2, the challenge ciphertext is a valid encryption of mδ under pk∗, where the random exponent ris defined implicitly as r=b/a2. CT∗=(t∗,F(t∗)b/a2,m δ·Zb/a2,(ga2)b/a2) Therefore, in this case Bguesses δcorrectly with probability 1 2+ε−qreenc ·2−λ and Asolves the 3-wDBDHI problem with the same probability. On the contrary, when dis random, mδis information-theoretically hidden, so the probability of Bguessing δcorrectly is 1 2. The overall success probability of Ais then 1 2+ε 2− qreenc ·2−λ−1. AIND-CCA2,1-secure PRE scheme Since the previous scheme is IND-CCA0,1-secure, satisfies the perfect key-switching property and is well-spread, then it can be extended for IND-CCA2,1security using our transformation. The resulting scheme is very similar, except that now rand tare not chosen randomly, but using a hash function H.Theschemeisas follows: •Enc2(pki,m): Sample random σ∈GTand compute C3=G(σ)⊕m. Next, the randomness used for encryption is produced as t||r=H(σ, C3). The second-level encryption of munder pkiis the tuple CTi=(t, C0,C 1,C 2,C 3), where C0=F(t)rC1=Zr·mC 2=(pki)r=gxir •Enc1(pki,m): The first-level encryption of munder pkiis exactly as the second-level, except that C2=e(g,pki)r=Zxir. •ReEnc(rki→j,CT i=(t, C0,C 1,C 2,C 3)): Check that the condition e(C0,pk i)= e(C2,F(t)) holds; otherwise, output ⊥. The re-encryption of the secondlevel ciphertext CTiis the tuple CTj=(t, C0,C 1,C� 2,C 3), where C� 2= e(C2,rk i→j)=Zxjr. 139 Bibliography [151] M. Hussain. The Design and Applications of a Privacy-Preserving Identity and Trust-Management System. PhD thesis, School of Computing, Queen’s University, 2010. [152] Shibboleth Consortium. Shibboleth. http://shibboleth.net/. [153] OASIS Web Services Federation TC. Web Services Federation Language (WS-Federation) Version 1.2, 2009. [154] OASIS Security Services TC. Glossary for the OASIS Security Assertion Markup Language (SAML) V2.0, 2005. [155] E. Maler and D. Reed. The venn of identity: Options and issues in federated identity management. Security & Privacy, IEEE, 6(2):16–23, 2008. [156] Microsoft. Windows Azure Active Directory. http://www.windowsazure. com/en-us/home/features/identity/. [157] CA Technologies. CA CloudMinder Identity Management. http://www. ca.com/us/cloudminder-identity-management. [158] S. Clauß and M. K¨ohntopp. Identity management and its support of multilateral security. Computer Networks, 37(2):205–219, 2001. [159] S. Pearson and A. Benameur. Privacy, security and trust issues arising from cloud computing. In 2nd IEEE International Conference on Cloud Computing Technology and Science (CloudCom), pages 693–702. IEEE, 2010. [160] Top threats to cloud computing, version 1.0. Technical report, Cloud Security Alliance, 2010. [161] E.U. Comission. Council Directive 95/46/EC: On the protection of individuals with regard to the processing of personal data and on the free movement of such data, 1995. [162] Scott Shane and John F. Burns. U.S. Subpoenas Twitter Over WikiLeaks Supporters. The New York Times, January 8, 2011. [163] U.S. Congress. Uniting and strengthening america by providing appropriate tools required to intercept and obstruct terrorism act, 2001. [164] J. Camenisch and E. Van Herreweghen. Design and implementation of the idemix anonymous credential system. In Proceedings of the 9th ACM conference on Computer and communications security,pages21–30.ACM, 2002. 242 Bibliography [165] OASIS Security Services TC. Metadata for the OASIS Security Assertion Markup Language (SAML) V2.0, 2005. [166] W3C. XML Encryption Syntax and Processing Version 1.0. W3C Recommendation, W3C, 2002. http://www.w3.org/TR/xmlenc-core/. [167] OASIS Security Services TC. Bindings for the OASIS Security Assertion Markup Language (SAML) V2.0, 2005. [168] R. Shirey. Internet Security Glossary, Version 2. RFC 4949 (Informational), August 2007. [169] David Nu˜nez, Isaac Agudo, and Javier Lopez. Integrating openid with proxy re-encryption to enhance privacy in cloud-based identity services. In Proceedings of the 2012 IEEE 4th International Conference on Cloud Computing Technology and Science (CloudCom), pages 241 – 248, Taipei, Taiwan, Dec 2012 2012. IEEE Computer Society, IEEE Computer Society. [170] P. Angin, B. Bhargava, R. Ranchal, N. Singh, L.B. Othmane, L. Lilien, and M. Linderman. An entity-centric approach for privacy and identity management in cloud computing. In 29th IEEE Symposium on Reliable Distributed Systems, pages 177–183, 2010. [171] Arkajit Dey and Stephen Weis. PseudoID: Enhancing privacy in federated login. In Hot Topics in Privacy Enhancing Technologies, pages 95–107, 2010. [172] S. Chow, Y.J. He, L. Hui, and S. Yiu. SPICE–simple privacy-preserving identity-management for cloud environment. In Applied Cryptography and Network Security, pages 526–543. Springer, 2012. [173] E. Bertino, F. Paci, R. Ferrini, and N. Shang. Privacy-preserving digital identity management for cloud computing. Bulletin of the IEEE Computer Society Technical Committee on Data Engineering, 32(1):21–27, 2009. [174] NIST. Big Data Working Group. http://bigdatawg.nist.gov/. [175] Expanded Top Ten Big Data Security and Privacy Challenges. Technical report, Cloud Security Alliance, 2013. [176] Sabrina De Capitani di Vimercati, Sara Foresti, and Pierangela Samarati. Managing and accessing data in the cloud: Privacy risks and approaches. In Risk and Security of Internet and Systems (CRiSIS), 2012 7th International Conference on,pages1–9.IEEE,2012. 243 Bibliography [177] Devaraj Das, Owen O’Malley, Sanjay Radia, and Kan Zhang. Adding Security to Apache Hadoop. Technical Report 1, Hortonworks, 2011. [178] Seonyoung Park and Youngseok Lee. Secure Hadoop with Encrypted HDFS. In Grid and Pervasive Computing, pages 134–141. Springer, 2013. [179] Hsiao-Ying Lin, Shiuan-Tzuo Shen, Wen-Guey Tzeng, and B.-S.P. Lin. Toward data confidentiality via integrating hybrid encryption schemes and Hadoop distributed file system. In Advanced Information Networking and Applications (AINA), IEEE 26th International Conference on, pages 740– 747, 2012. [180] Apache Accumulo. http://accumulo.apache.org/. [181] Jia Liu, Mark D Ryan, and Liqun Chen. Balancing societal security and individual privacy: Accountable escrow system. In Computer Security Foundations Symposium (CSF), 2014 IEEE 27th, pages 427–440. IEEE, 2014. [182] Geoffrey A. Fowler, Devlin Barrett, and Sam Schechner. U.S. shuts offshore file-share ‘locker’. The Wall Street Journal, January 20, 2012. [183] Certivox. PrivateSky. http://privatesky.me/. [184] CipherCloud. CipherCloud Gateway. http://www.ciphercloud.com/. [185] Masaaki Miki, Eiji Hayashi, and Hideki Shingai. Highly reliable and highly secure online storage platform supporting “timeon” regza cloud service. Toshiba Review, 68(5):25–27, 2013. In Japanese. [186] M. Shimano, G. Fujino, M. Miki, Y. Tsuzuki, I. TAKEYASU, and E. TOKITA. Key change management apparatus and key change management method, April 3 2014. US Patent App. 13/928,112. [187] L. Xu and X. Wu. Proxy-based encryption method, proxy-based decryption method, network equipment, network device and system, October 28 2014. US Patent 8,873,754. [188] G. Zhang. Data protection method and data protection system, September 17 2013. US Patent 8,539,606. [189] D. BISWAS. Methods and apparatus for sharing real-time user context information, February 4 2014. US Patent 8,645,682. [190] P. Paillier and A. Gouget. Data providing process based on an ibpe scheme, February 4 2014. US Patent 8,644,509. 244 Bibliography [191] A.J. Farrugia, N. Sullivan, G. Fasoli, and M. Ciet. Encryption method and apparatus using composition of ciphers, March 25 2014. US Patent 8,681,975. [192] S.R. Hohenberger, K. Fu, G. Ateniese, and M. Green. Unidirectional proxy re-encryption, January 10 2012. US Patent 8,094,810. [193] System for cross-domain identity management. http://www.simplecloud. info/. 245