Hidden vector encryption
Hidden vector encryption (HVE) is a form of predicate encryption in which ciphertexts are labeled with an attribute vector and secret keys correspond to conjunctive pattern predicates . A key for pattern decrypts a ciphertext for attribute if and only if matches at every non-wildcard position: . The same framework supports comparison queries , subset queries , and conjunctions of them — BW07. The primary motivation is fine-grained access control over encrypted databases and conjunctive keyword search.
Syntax
An HVE scheme is a tuple of efficient algorithms with respect to alphabet , vector length , a message space , which may depend on , and a ciphertext space :
- is a randomized algorithm that outputs public parameters and master secret key ,
- is a (possibly randomized) algorithm that takes and a pattern vector , outputting a secret key ,
- is a randomized algorithm that takes , an attribute vector , and , outputting ,
- is a deterministic algorithm that takes and , outputting or .
A pattern matches if for all , either (wildcard) or . Correctness constrains only under a key for a matching pattern; it does not require under any other key.
Properties
Correctness
An HVE scheme is -correct if for all , , with matching , and , chosen as any function of when depends on ,
over and randomness of and .
Payload-Hiding Security
In the payload-hiding game (analogous to IND-CPA), the attribute vector is public and the adversary tries to distinguish the encrypted payload. The adversary may query keys for patterns, subject to the constraint that no queried pattern matches the challenge attribute vector.
\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{ph}}_{\mathsf{HVE},\calA}(\secpar)$}
\begin{algorithmic}
\State $(\pp, \msk) \gets \Setup(1^\secpar, \Sigma, n)$; $b \getsr \bits$
\State $\calO_{\mathrm{key}}(v) := \KeyGen(\msk, v)$
\State $(x^*, m_0, m_1, \stA) \gets \calA^{\calO_{\mathrm{key}}}(1^\secpar, \pp)$
\Comment{$\calA$ may not have queried $\calO_{\mathrm{key}}(v)$ for $v$ matching $x^*$}
\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}}(v)$ for $v$ matching $x^*$}
\Return $[b' = b]$
\end{algorithmic}
\end{algorithm}
An HVE scheme is payload-hiding if for all efficient admissible ,
is negligible.
Selective security
In the selective payload-hiding game the adversary commits to the challenge attribute vector before runs; the game otherwise runs as , with the same constraint that no queried pattern matches , since such a key decrypts .
\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{sel\text{-}ph}}_{\mathsf{HVE},\calA}(\secpar)$}
\begin{algorithmic}
\State $(x^*, \stA) \gets \calA(1^\secpar)$
\State $(\pp, \msk) \gets \Setup(1^\secpar, \Sigma, n)$; $b \getsr \bits$
\State $\calO_{\mathrm{key}}(v) := \KeyGen(\msk, v)$
\State $(m_0, m_1, \stA) \gets \calA^{\calO_{\mathrm{key}}}(\pp, \stA)$
\Comment{$\calA$ may not have queried $\calO_{\mathrm{key}}(v)$ for $v$ matching $x^*$}
\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}}(v)$ for $v$ matching $x^*$}
\Return $[b' = b]$
\end{algorithmic}
\end{algorithm}
An HVE scheme is selectively payload-hiding if for all efficient admissible ,
is negligible. Payload-hiding implies selective payload-hiding, a selective adversary being an adaptive one (Payload-hiding HVE ⇒ HVE) — folklore.
As an object, HVE denotes a -correct, selectively payload-hiding scheme whose message space contains, for every in the support of , two distinct messages that an efficient algorithm outputs on input , for every alphabet with and every given to . Payload-hiding, attribute-hiding and selectively attribute-hiding HVE each denote a scheme with the same correctness, message pair and quantifiers that meets its own game. A scheme for gives one for every , with vectors of length : encode each symbol as its indicator vector in , a pattern symbol as the pattern with at position and wildcards elsewhere, and as wildcards, which preserves every match — folklore.
Attribute-Hiding Security
The stronger attribute-hiding notion requires that a ciphertext hide not only the payload but also the attribute vector itself. The adversary submits two ciphertext candidates and and receives an encryption of one. Admissibility requires that for every key queried, the predicate outcome is the same on both: the pattern matches if and only if it matches ; and if some queried matches (hence ), then , since that key decrypts .
\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{ah}}_{\mathsf{HVE},\calA}(\secpar)$}
\begin{algorithmic}
\State $(\pp, \msk) \gets \Setup(1^\secpar, \Sigma, n)$; $b \getsr \bits$
\State $\calO_{\mathrm{key}}(v) := \KeyGen(\msk, v)$
\State $((x_0, m_0), (x_1, m_1), \stA) \gets \calA^{\calO_{\mathrm{key}}}(1^\secpar, \pp)$
\Comment{For all queried $v$: $v$ matches $x_0$ iff $v$ matches $x_1$; if some queried $v$ matches $x_0$, then $m_0 = m_1$}
\State $c^* \gets \Enc(\pp, x_b, m_b)$
\State $b' \gets \calA^{\calO_{\mathrm{key}}}(c^*, \stA)$
\Comment{Same admissibility constraint holds throughout}
\Return $[b' = b]$
\end{algorithmic}
\end{algorithm}
An HVE scheme is attribute-hiding if for all efficient admissible ,
is negligible. Attribute-hiding implies payload-hiding (take and ; Attribute-Hiding Security ⇒ Payload-Hiding Security). If a payload-hiding HVE scheme exists, the converse fails: appending to every ciphertext keeps payload-hiding, since is the adversary’s own choice, and breaks attribute-hiding for any with no key queries — folklore.
Selective attribute-hiding security
In the selective attribute-hiding game the adversary commits to the two attribute vectors before runs and chooses after its first key queries; admissibility is that of — BW07.
\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{sel\text{-}ah}}_{\mathsf{HVE},\calA}(\secpar)$}
\begin{algorithmic}
\State $(x_0, x_1, \stA) \gets \calA(1^\secpar)$
\State $(\pp, \msk) \gets \Setup(1^\secpar, \Sigma, n)$; $b \getsr \bits$
\State $\calO_{\mathrm{key}}(v) := \KeyGen(\msk, v)$
\State $(m_0, m_1, \stA) \gets \calA^{\calO_{\mathrm{key}}}(\pp, \stA)$
\Comment{For all queried $v$: $v$ matches $x_0$ iff $v$ matches $x_1$; if some queried $v$ matches $x_0$, then $m_0 = m_1$}
\State $c^* \gets \Enc(\pp, x_b, m_b)$
\State $b' \gets \calA^{\calO_{\mathrm{key}}}(c^*, \stA)$
\Comment{Same admissibility constraint holds throughout}
\Return $[b' = b]$
\end{algorithmic}
\end{algorithm}
An HVE scheme is selectively attribute-hiding if for all efficient admissible ,
is negligible. Attribute-hiding implies it, a selective adversary being an adaptive one (Attribute-hiding HVE ⇒ selectively attribute-hiding HVE), and it implies selective payload-hiding, by , with the clause vacuous since no admissible payload-hiding query matches (Selectively attribute-hiding HVE ⇒ HVE) — folklore.
Variations
Subset and range queries
Range-query encryption is predicate encryption for conjunctions of subset and range predicates over attributes . A scheme is a tuple of efficient algorithms with a message space , which may depend on :
- ;
- for a predicate , where each is a subset predicate for a set , a range predicate for in , or the predicate that is always true;
- for and ;
- or , deterministic.
The scheme is -correct if for all , every such , every with and every , chosen as any function of when depends on , over and the coins of and . In the selective payload-hiding game the adversary commits to before runs and may not query a key for any with , since such a key decrypts .
\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{sel\text{-}ph}}_{\Pi,\calA}(\secpar)$}
\begin{algorithmic}
\State $(x^*, \stA) \gets \calA(1^\secpar)$
\State $(\pp, \msk) \gets \Setup(1^\secpar, T, \ell)$; $b \getsr \bits$
\State $\calO_{\mathrm{key}}(P) := \KeyGen(\msk, P)$
\State $(m_0, m_1, \stA) \gets \calA^{\calO_{\mathrm{key}}}(\pp, \stA)$
\Comment{$\calA$ may not have queried $\calO_{\mathrm{key}}(P)$ for $P$ with $P(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}}(P)$ for $P$ with $P(x^*) = 1$}
\Return $[b' = b]$
\end{algorithmic}
\end{algorithm}
A range-query encryption scheme is selectively payload-hiding if for all efficient admissible ,
is negligible. As an object, range-query encryption denotes a -correct, selectively payload-hiding scheme whose message space contains, for every in the support of , two distinct messages that an efficient algorithm outputs on input , for every and with .
Subset and range predicates reduce to HVE over by fixed encodings: by the indicator vector of against the pattern with wildcards exactly on and elsewhere, by in unary against the pattern with at position and wildcards elsewhere, and a range as the conjunction of two comparisons, with ciphertexts linear in the domain size (HVE ⇒ Subset and range queries) — BW07.
Other results
Participates in
Builds on Hidden vector encryption
- Attribute-Hiding Security ⇒ Payload-Hiding Security (via Attribute-Hiding Security)
- Attribute-hiding HVE ⇒ selectively attribute-hiding HVE (via Attribute-Hiding Security)
- Payload-hiding HVE ⇒ HVE (via Payload-Hiding Security)
- Selectively attribute-hiding HVE ⇒ HVE (via Selective attribute-hiding security)
- HVE ⇒ Subset and range queries
Produces Hidden vector encryption
- Attribute-Hiding Security ⇒ Payload-Hiding Security (via Payload-Hiding Security)
- BDH ⇒ HVE (via Selective attribute-hiding security)
- Attribute-hiding HVE ⇒ selectively attribute-hiding HVE (via Selective attribute-hiding security)
- Payload-hiding HVE ⇒ HVE
- Selectively attribute-hiding HVE ⇒ HVE
- HVE ⇒ Subset and range queries (via Subset and range queries)
- IPPE ⇒ Selectively attribute-hiding HVE (via Selective attribute-hiding security)