Predicate Encryption Cryptography
Public Key Cryptography: Predicate Encryption and EDHOC Protocol
Predicate Encryption
Predicate encryption is a special form of public key encryption where decryption is possible only if a specific predicate is satisfied. Decryption depends on a relation between a secret embedded in the ciphertext and a secret possessed by the user (the secret key). It generalizes standard public key cryptography: instead of a single decryption key for a single encryption key, the predicate can be more complex, such as checking membership in a set or evaluating an inner product.
Inner Product Encryption (IPE)
Inner product encryption (IPE) is a type of predicate encryption where the predicate is based on the inner product of two vectors:
The ciphertext is associated with a vector y.
The secret key is associated with a vector x.
In the classical zero IPE, decryption succeeds if and only if the inner product is zero: x⋅y=0 (vectors are orthogonal).
In the non-zero IPE variant, decryption succeeds if the inner product is non-zero: x⋅y=0.
Definition: Zero IPE: decrypt if x⋅y=0; Non-zero IPE: decrypt if x⋅y=0.
Identity-Based Multi-Recipient Encryption (IBR)
Identity-based multi-recipient encryption generalizes identity-based encryption (IBE): instead of encrypting for a single user (Alice), encryption is done for a set of identities. Two main variants:
Broadcast encryption: any identity in the set can decrypt.
Revocation encryption (identity-based revocation, IBR): any identity not in the set can decrypt (i.e., the set is the revocation list).
These two can be linked to IPE: broadcast is analogous to zero IPE (condition = in set), revocation to non-zero IPE (condition = not in set). The talk shows how to connect all these primitives and achieve security in the standard model.
Security Properties for Predicate Encryption
Four main security properties define the strength of a predicate encryption scheme:
Confidentiality (Message Hiding)
The standard indistinguishability notion: an adversary picks two messages M0,M1 and receives an encryption of one. The adversary should not be able to guess which message was encrypted, as long as it does not possess a secret key authorized to decrypt the ciphertext.
Key Idea: Confidentiality is the direct equivalent of semantic security for public key encryption.
Weak Anonymity / Weak Attribute Hiding
An adversary gives two challenge vectors y0,y1 and receives a ciphertext for one. The adversary should not be able to guess which vector was used, provided it is not authorized to decrypt for either challenge (i.e., it does not have a key that would work for either y0 or y1).
Full Anonymity / Full Attribute Hiding
A stronger notion: the adversary should not be able to guess which vector y0 or y1 was used even if it is authorized to decrypt for both. That is, the adversary should not learn which particular challenge the ciphertext corresponds to – it should only know that its key works, not which condition allowed decryption.
Function Privacy (Predicate Privacy)
Here the secrecy is about the secret key: given a secret key, the adversary should not be able to learn which set of constraints (which vector x) the key is associated with. For example, when receiving a key for a user, the user normally knows which attributes they satisfy; but in some applications (e.g., distributing keys to conference attendees with some hidden additional privilege), function privacy may be desired.
Function privacy hides the predicate embedded in the secret key.
Relationship Between Properties
Generic transformations exist from zero IPE to IBR that preserve confidentiality and anonymity (weak → weak, full → full), but do not preserve function privacy.
The challenge: no zero IPE scheme with full anonymity existed in the standard model that could serve as the base for such a transformation while also achieving function privacy for revocation.
Construction Outline: From Predicate-Only IPE to Full IPE and IBR
To achieve all properties simultaneously, the authors proceed in two steps:
Step 1: Predicate-Only Zero Inner Product Encryption (PO-IPE)
Construct a predicate-only scheme that only reveals whether the inner product is zero (a single bit), without revealing the messages. This scheme uses pairing-based cryptography and is built on a new assumption (K-M-DDHI). It achieves full attribute hiding and function privacy.
The setup generates matrices of discrete logarithms as the master secret key.
The public key consists of group elements (matrices raised to the discrete logarithms).
Encryption embeds the vector y using random elements, producing a ciphertext.
Key generation embeds the vector x in a similar way but in the opposite group.
Decryption uses pairings: if the pairing produces a specific value, then the inner product was zero, outputting 1; otherwise output 0.
This scheme is proven secure under the K-M-DDHI assumption, with a security loss linear in the number of adversary queries.
Key technique: The linear encoding used in predicate encryption normally relies on the ability to cancel terms when the inner product is zero. For zero IPE, this cancellation works; for non-zero IPE, the term does not cancel, making the construction harder. Here, the authors exploit the fact that zero randomized remains zero, while non-zero randomized remains non-zero, thereby allowing the predicate-only output.
Step 2: Compiler from PO-IPE to Full IPE
A generic compiler transforms any predicate-only zero IPE into a full inner product encryption that supports non-zero predicates and hides messages. The compiler preserves full attribute hiding and function privacy.
Method: For each bit of the message, the compiler generates a new ciphertext component. The vector y is expanded into a matrix, and the encryption encodes the message bit by bit.
Efficiency loss: The size of ciphertext and computation grow linearly with the message length (bitwise overhead). This is a trade-off: previous schemes were more efficient but only achieved weak attribute hiding and had restrictions on adversary queries (e.g., bounded collusion). The new compiler removes those restrictions.
Key property: The compiler is "plug-and-play" – if a better PO-IPE scheme is found, it automatically yields a better IPE with the same security.
Step 3: From IPE to Identity-Based Revocation (IBR)
Using the generic transformation from IPE to IBR (previously known but not preserving function privacy), the authors apply their IPE to build the first IBR scheme that is simultaneously fully attribute hiding and function private. The transformation works as follows:
An identity is mapped to a vector (e.g., via polynomial interpolation).
Encrypting for a set of identities (revocation list) corresponds to encrypting for a vector that zeros out the revoked identities.
Decryption uses the same pairing check as the underlying IPE.
The resulting IBR scheme removes prior limitations: no bounded collusion assumption, and the secret key size is linear in the number of attributes (like before) but now with full security.
Result: The first efficient (academically) identity-based revocation system with full attribute hiding and function privacy. The master public key size is linear in the vector length and message length, but secret keys are linear only in the vector length – an improvement over earlier schemes that had secret keys quadratic in message length.
EDHOC Protocol: Ephemeral Diffie-Hellman Over COSE
EDHOC is a lightweight authenticated key exchange protocol designed by the IETF for constrained IoT devices. It aims to be efficient in terms of number of exchanged messages, message sizes, and code/memory footprint, compared to alternatives like compact TLS or DTLS. The latest draft (23) is published as RFC 9528.
Based on the Sigma protocol (2003).
Provides four authentication methods, depending on how the initiator and responder authenticate:
Each party can use either a signature or a static Diffie-Hellman key.
If the initiator authenticates with a signature, the protocol runs in three messages; otherwise (initiator uses static DH) it runs in four messages.
The key exchange relies on ephemeral Diffie-Hellman (DH).
Authentication:
Signature-based: The signature covers the transcript and credentials.
Static DH-based: A MAC tag is computed using a key derived from the static DH private key.
Identity protection: Identifiers (public keys or certificates) and signatures are encrypted to preserve anonymity.
Session key derivation uses an extract-then-expand paradigm (HKDF-style), progressively accumulating exchanged messages into the key derivation.
Example: Signature-Static Method (Initiator uses static DH, Responder uses signature)
Message 1 (I→R): Initiator sends its ephemeral public key and a set of supported cipher suites.
Message 2 (R→I): Responder sends its ephemeral public key, cipher suite choice, and an encrypted payload containing:
The responder’s signature (covering the transcript up to this point, plus the responder’s credentials and a MAC tag).
The responder’s identifier (encrypted).
The MAC tag (computed with a key derived from the static DH private key).
Message 3 (I→R): Initiator sends an encrypted payload containing:
The initiator’s MAC tag (computed with a key derived from the ephemeral DH shared secret and the initiator’s static DH private key), plus the initiator’s identifier.
This payload is encrypted such that the responder can retrieve the correct credential to verify the MAC.
Message 4 (optional): An authenticated encryption message that proves to both parties that the other side can compute the final session key.
Note: The number of messages depends on the authentication method; the above example has 4 messages (since initiator uses static DH). If initiator uses signature, Message 3 includes the signature and Message 4 is omitted (3 messages total).
Security Properties Captured in the Analysis
The computational security analysis by the authors considers a strong security model that simultaneously covers:
Entity authentication: Each accepting protocol instance has one and only one intended partner (no impersonation).
Key indistinguishability: The final session key is indistinguishable from a uniformly random key in the same key space.
Forward secrecy: Past session keys remain secure even if long-term secrets are compromised later.
Identity privacy:
Anonymity: The identities of parties involved in a protocol run remain confidential.
Unlinkability: Different protocol runs by the same party cannot be linked, preventing tracking.
The model uses the notion of virtual identifiers: the adversary chooses two identities, the challenger runs the protocol with one, and the adversary must guess which party was used.
Adversary model: Active adversary who controls all communication, can drop, modify, replay messages, can corrupt long-term keys, reveal session keys, and unmask identities (as long as no trivial attack results).
Security Assumptions and Bounds
The security of EDHOC is based on:
Strong Diffie-Hellman and Gap Diffie-Hellman assumptions (for the key exchange).
Security of the signature scheme and MAC function (for authentication).
Ciphertext indistinguishability of the symmetric encryption (for identity privacy).
The analysis provides theoretical security bounds for all four authentication methods, expressed in terms of adversary resources (number of queries, running time, etc.). From these bounds, concrete security estimates can be computed for different adversarial capabilities.
The EDHOC specification defines two cipher suites for high security:
One based on AES-256.
Another based on ChaCha20.
Concrete estimates show that the AES-256-based cipher suite is more suitable for high security applications, given typical adversary resources.
Future Work
With the rise of quantum computing, designing a post-quantum resistant version of EDHOC is an important open problem. The current protocol relies on discrete-logarithm and signature assumptions that are vulnerable to Shor’s algorithm.
Comparison of Efficiency: Predicate Encryption Approach
Property | Prior Work (with restrictions) | This Work |
|---|---|---|
Collusion bound | Bounded (e.g., 10 users max) | None |
Attribute hiding | Weak only | Full |
Function privacy | Not available | Achieved |
Master public key size | Constant (1 element) | Linear in vector length and message length |
Secret key size | Quadratic in message length | Linear in vector length |
Ciphertext size | Linear in vector length | Linear in vector length × message length (due to per-bit encryption) |
The transformation from PO-IPE to IPE introduces a linear overhead in message length, making it moderately efficient (academic efficiency, not yet practical). The IBR construction, however, achieves comparable or slightly better efficiency than prior schemes while providing full security without restrictions.
Takeaway: The work shows feasibility: it is possible to have a predicate encryption scheme that simultaneously achieves full attribute hiding, function privacy, and no collusion bound, at the cost of some efficiency.
Summary
Predicate encryption generalizes public key encryption by allowing decryption based on relations (e.g., inner product, identity set membership).
Inner product encryption and identity-based revocation are two important primitives with many applications.
Security properties – confidentiality, attribute hiding (weak vs. full), and function privacy – are often hard to achieve simultaneously.
A novel construction builds from predicate-only zero IPE (which only tests orthogonality) to full non-zero IPE, then to IBR, preserving both full attribute hiding and function privacy for the first time.
EDHOC is a lightweight authenticated key exchange for IoT, with four authentication methods. Its security has been thoroughly analyzed, providing concrete bounds for choosing cipher suites (AES-256 recommended for high security).
Both areas highlight the trade-off between efficiency and security, and the need for post-quantum resistant versions in the future.

Ask anything
We've read this whole study set, so questions about it get the best answers.