Attribute-based encryption

Attribute-based encryption (ABE) generalizes IBE by replacing exact-identity matching with expressive Boolean access policies (ABE ⇒ IBE). The decryption relation is a pair , where is a monotone Boolean formula over attributes from universe and is an attribute set; decryption succeeds if and only if . ABE comes in two dual flavors depending on which component travels with the key and which with the ciphertext:

VariantKey holdsCiphertext holds
KP-ABE (Key-Policy)policy attribute set
CP-ABE (Ciphertext-Policy)attribute set policy

Policies are typically expressed as monotone Boolean formulas, which subsume threshold gates and conjunctions, or more generally as Linear Secret-Sharing Schemes (LSSS), which are strictly more expressive at polynomial size — KW93.

Syntax

An ABE scheme is a tuple of efficient algorithms with respect to attribute universe , policy class of monotone Boolean functions on subsets of , message space , and ciphertext space :

  • is a randomized algorithm that takes the universe size and outputs public parameters and master secret key ; a large-universe scheme accepts every ,
  • is a (possibly randomized) algorithm that takes and either a policy (KP-ABE) or an attribute set (CP-ABE), outputting a secret key,
  • is a randomized algorithm that takes , either an attribute set (KP-ABE) or a policy (CP-ABE), and , outputting ,
  • is a deterministic algorithm that takes a secret key and ciphertext, outputting or .

Decryption succeeds if and only if the associated pair satisfies .

The policy class contains every monotone formula of threshold gates over , where a -of- gate () outputs iff at least of its inputs are ; AND and OR are the -of- and -of- gates. A scheme that bounds the size or depth of its policies takes the bound as a further input to , and for every polynomial there is a polynomial bound at which its policy class contains every such formula of size at most . For every , the message space contains two distinct messages of equal length that an efficient algorithm outputs given ; otherwise IND-CPA admits only and is vacuous — standard. The correctness condition and every game on this page are required at every polynomial , and at every polynomial bound for a scheme that takes one.

As an object, ABE denotes a -correct scheme in this syntax that is KP-IND-CPA-secure if key-policy and CP-IND-CPA-secure if ciphertext-policy; every result below that starts from ABE holds for both flavors. The variants on this page have the same syntax and correctness requirement. Without correctness, meets every notion on this page, and without two such messages so does the scheme that sends in the clear.

Properties

Correctness

An ABE scheme is -correct at if for all , policy-attribute pairs with , and ,

where and denote whichever of is placed in the key vs. ciphertext by the variant, over and randomness of and . It is -correct if for every polynomial it is -correct at for a negligible . When at every , is perfectly correct.

KP-ABE: IND-CPA Security

In KP-ABE, the adversary queries keys for policies of its choice. The challenge is an attribute set and two messages. Admissibility: no queried policy may satisfy .

\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{kp\text{-}cpa}}_{\ABE,\calA}(\secpar)$}
\begin{algorithmic}
\State $(\pp, \msk) \gets \Setup(1^\secpar, 1^n)$; $b \getsr \bits$
\State $\calO_{\mathrm{key}}(f) := \KeyGen(\msk, f)$
\State $(x^*, m_0, m_1, \stA) \gets \calA^{\calO_{\mathrm{key}}}(1^\secpar, \pp)$
\Comment{$\calA$ may not have queried $\calO_{\mathrm{key}}(f)$ for $f(x^*) = 1$}
\State $c^* \gets \Enc(\pp, x^*, m_b)$
\State $b' \gets \calA^{\calO_{\mathrm{key}}}(c^*, \stA)$
\Comment{$\calA$ may not query $\calO_{\mathrm{key}}(f)$ for $f(x^*) = 1$}
\Return $[b' = b]$
\end{algorithmic}
\end{algorithm}

A KP-ABE scheme is KP-IND-CPA-secure if for every polynomial and all efficient admissible ,

is negligible.

CP-ABE: IND-CPA Security

In CP-ABE, the adversary queries keys for attribute sets of its choice. The challenge is a policy and two messages. Admissibility: no queried attribute set may satisfy .

\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{cp\text{-}cpa}}_{\ABE,\calA}(\secpar)$}
\begin{algorithmic}
\State $(\pp, \msk) \gets \Setup(1^\secpar, 1^n)$; $b \getsr \bits$
\State $\calO_{\mathrm{key}}(x) := \KeyGen(\msk, x)$
\State $(f^*, m_0, m_1, \stA) \gets \calA^{\calO_{\mathrm{key}}}(1^\secpar, \pp)$
\Comment{$\calA$ may not have queried $\calO_{\mathrm{key}}(x)$ for $f^*(x) = 1$}
\State $c^* \gets \Enc(\pp, f^*, m_b)$
\State $b' \gets \calA^{\calO_{\mathrm{key}}}(c^*, \stA)$
\Comment{$\calA$ may not query $\calO_{\mathrm{key}}(x)$ for $f^*(x) = 1$}
\Return $[b' = b]$
\end{algorithmic}
\end{algorithm}

A CP-ABE scheme is CP-IND-CPA-secure if for every polynomial and all efficient admissible ,

is negligible.

Selective Security

In both KP-ABE and CP-ABE, the selective variant requires the adversary to commit to the challenge ( in KP-ABE, in CP-ABE) before runs. If selectively secure schemes for a superpolynomial-size policy family (CP-ABE) or attribute family (KP-ABE) exist, selective security does not imply adaptive security — folklore. Complexity leveraging BB04b converts one to the other at a loss factor of for KP-ABE, but the conversion for CP-ABE can incur exponential loss in the formula size.

Selective CP-ABE security

In the selective CP-IND-CPA game, outputs the challenge policy before runs and then plays the CP-IND-CPA game with that challenge policy.

\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{sel\text{-}cp\text{-}cpa}}_{\ABE,\calA}(\secpar)$}
\begin{algorithmic}
\State $(f^*, \stA) \gets \calA(1^\secpar)$
\State $(\pp, \msk) \gets \Setup(1^\secpar, 1^n)$; $b \getsr \bits$
\State $\calO_{\mathrm{key}}(x) := \KeyGen(\msk, x)$
\State $(m_0, m_1, \stA) \gets \calA^{\calO_{\mathrm{key}}}(\pp, \stA)$
\Comment{$\calA$ may not have queried $\calO_{\mathrm{key}}(x)$ for $f^*(x) = 1$}
\State $c^* \gets \Enc(\pp, f^*, m_b)$
\State $b' \gets \calA^{\calO_{\mathrm{key}}}(c^*, \stA)$
\Comment{$\calA$ may not query $\calO_{\mathrm{key}}(x)$ for $f^*(x) = 1$}
\Return $[b' = b]$
\end{algorithmic}
\end{algorithm}

A CP-ABE scheme is selectively CP-IND-CPA-secure if for every polynomial and all efficient admissible ,

is negligible. As an object, selectively secure CP-ABE denotes a -correct CP-ABE scheme in the syntax above with this property.

Very selective security

In very selective CP-ABE security, fixes the challenge policy and all its key queries , with for every , before runs, and makes no further key queries — Wee22. In the game below chooses the challenge messages after receiving and its keys. For the message space , fixing them before gives the same notion: an adversary that chooses after seeing its keys is run against the fixed pair , with its guess flipped when it chooses , at the same advantage — standard. When the message space depends on , fixing them before can make the notion vacuous: with for a uniform in , the scheme that sends in the clear meets it — standard.

\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{vsel\text{-}cp\text{-}cpa}}_{\ABE,\calA}(\secpar)$}
\begin{algorithmic}
\State $(f^*, x_1, \ldots, x_q, \stA) \gets \calA(1^\secpar)$
\Comment{$f^*(x_j) = 0$ for every $j \in [q]$}
\State $(\pp, \msk) \gets \Setup(1^\secpar, 1^n)$; $b \getsr \bits$
\State $\sk_j \gets \KeyGen(\msk, x_j)$ for every $j \in [q]$
\State $(m_0, m_1, \stA) \gets \calA(\pp, \sk_1, \ldots, \sk_q, \stA)$
\Comment{$m_0, m_1 \in \calM$ and $|m_0| = |m_1|$}
\State $c^* \gets \Enc(\pp, f^*, m_b)$
\State $b' \gets \calA(c^*, \stA)$
\Return $[b' = b]$
\end{algorithmic}
\end{algorithm}

A CP-ABE scheme is very selectively CP-IND-CPA-secure if for every polynomial and all efficient admissible ,

is negligible. As an object, very selectively secure CP-ABE denotes a -correct CP-ABE scheme in the syntax above with this property.

Variations

Syntactic Duality of KP-ABE and CP-ABE

KP-ABE and CP-ABE are syntactically dual: swapping the roles of and converts one definition into the other. The correspondence is between definitions, not a transformation of schemes. If selectively secure schemes for a superpolynomial-size policy or attribute family exist, selective security does not imply adaptive security in either flavor — folklore; see no-selective-security-to-cp-abe-ind-cpa-security for CP-ABE.

Large-Universe ABE

In small-universe ABE, all supported attributes are registered at time and embedded into the public parameters; the universe size is bounded a priori. In large-universe constructions, attributes can be arbitrary strings not known at ; keys and ciphertexts for new attributes can be created at any time without re-running . Large-universe constructions are necessary for real-world deployments where the set of possible attributes cannot be fixed in advance — RW13.

Policy Hiding

Standard KP-ABE and CP-ABE leak the access policy: in KP-ABE the policy is visible in the key, and in CP-ABE the policy is visible in the ciphertext. Hiding the policy from unauthorized parties requires additional techniques. IPPE is a key stepping stone toward full policy hiding, since inner-product predicates are both expressive and attribute-hiding.

Other results

Participates in

Builds on Attribute-based encryption

Produces Attribute-based encryption

Barriers