Sakai–Kasahara scheme
# Sakai–Kasahara scheme

The Sakai–Kasahara scheme, also known as the Sakai–Kasahara key encryption algorithm (SAKKE), is an identity-based encryption (IBE) system proposed by Ryuichi Sakai and Masao Kasahara in 2003. Alongside the Boneh–Franklin scheme, this is one of a small number of commercially implemented identity-based encryption schemes. It is an application of pairings over elliptic curves and finite fields. A security proof for the algorithm was produced in 2005 by Chen and Cheng. SAKKE is described in Internet Engineering Task Force (IETF) RFC 6508.

As a specific method for identity-based encryption, the primary use case is to allow anyone to encrypt a message to a user when the sender only knows the public identity (e.g. email address) of the user. In this way, this scheme removes the requirement for users to share public certificates for the purpose of encryption.

## Description of scheme

The Sakai–Kasahara scheme allows the encryption of a message $\mathbb {M}$ to an receiver with a specific identity, $\textstyle I_{U}$. Only the entity with the private key, $\textstyle K_{U}$, associated to the identity, $\textstyle I_{U}$, will be capable of decrypting the message.

As part of the scheme, both the sender and receiver must trust a Private Key Generator (PKG), also known as a Key Management Server (KMS). The purpose of the PKG is to create the receiver's private key, $\textstyle K_{U}$, associated to the receiver's identity, $\textstyle I_{U}$. The PKG must securely deliver the identity-specific private key to the receiver, and PKG-specific public parameter, $\textstyle Z$, to all parties. These distribution processes are not considered as part of the definition of this cryptographic scheme.

### Preliminaries

The scheme uses two multiplicative groups $\textstyle E$ and $\textstyle G$. It is assumed:

* The Diffie-Hellman problem is hard in $\textstyle E$. Meaning that given two members of the group $\textstyle P$ and $\textstyle Q$, it is hard to find $\textstyle x$ such that $\textstyle [x].P=Q$.
* The Diffie-Hellman problem is hard in $\textstyle G$. Meaning that given two members of the group $g$ and $t$, it is hard to find $\textstyle x$ such that $\textstyle g^{x}=t$.
* There is a bilinear map, a Tate-Lichtenbaum pairing, $\textstyle e(,)$ from E to G. This means that for $\textstyle P$ a member of $\textstyle E$:

             $\textstyle e(P,[x].P)=e([x].P,P)=e(P,P)^{x}$

Frequently, $\textstyle E$ is a supersingular elliptic curve, such as $\textstyle E:y^{2}=x^{3}-3x$ (over a finite field of prime order $\textstyle p$). A generator $\textstyle P$ of prime order $\textstyle q$ is chosen in $\textstyle E$. The group $\textstyle G$ is the image due to the pairing of the group generated by $\textstyle P$ (in the extension field of degree 2 of the finite field of order p).

Two hash functions are also required, $\textstyle H_{1}$ and $\textstyle H_{2}$. $\textstyle H_{1}$ outputs a positive integer, $\textstyle x$, such that $\textstyle 1<x<q$. $\textstyle H_{2}$ outputs $\textstyle n$ bits, where $\textstyle n$ is the length of the message $\mathbb {M}$.

### Key generation

The PKG has a master secret $\textstyle z$ where $1<z<q$, and a public key $\textstyle Z=[z].P$ which is a point on $\textstyle E$. The PKG generates the private key, $\textstyle K_{U}$, for the user with identity $\textstyle ID_{U}$ as follows:

             $\textstyle K_{U}=[{\frac {1}{z+H_{1}(ID_{U})}}].P$

### Encryption

To encrypt a non-repeating message $\mathbb {M}$, the sender requires receiver's identity, $\textstyle ID_{U}$ and the public PGK value $\textstyle Z$. The sender performs the following operation.

* Create: $\textstyle id=H_{1}(ID_{U})$
* The sender generates $\textstyle r$ using $\textstyle r=H_{1}(\mathbb {M} ||id)$
* Generate the point $\textstyle R$ in $\textstyle E$:

             $\textstyle R=[r].([id].P+Z)$
* Create the masked message:

             $\textstyle S=\mathbb {M} \oplus H_{2}(g^{r})$
* The encrypted output is: $\textstyle (R,S)$

Note that messages may not repeat, as a repeated message to the same identity results in a repeated ciphertext. There is an extension to the protocol should messages potentially repeat.

### Decryption

To decrypt a message encrypted to $\textstyle ID_{U}$, the receiver requires the private key, $\textstyle K_{U}$ from the PKG and the public value $\textstyle Z$. The decryption procedure is as follows:

* Compute $\textstyle id=H_{1}(ID_{U})$
* Receive the encrypted message: $\textstyle (R,S)$.
* Compute:

             $\textstyle w=e(R,K_{U})$
* Extract the message:

             $\textstyle \mathbb {M} =S\oplus H_{2}(w)$
* To verify the message, compute $\textstyle r=H_{1}(\mathbb {M} ||id)$, and only accept the message if:

             $\textstyle [r].([id].P+Z)\equiv R$

### Demonstration of algorithmic correctness

The following equations demonstrate the correctness of the algorithm:

    $\textstyle w=e(R,K_{U})=e([r].([id].P+Z),K_{U})=e([r].([id].P+[z].P),K_{U})=e([r(id+z)].P,K_{U})$

By the bilinear property of the map:

    $\textstyle w=e([r(id+z)].P,K_{U})=e([r(id+z)].P,[{\frac {1}{(id+z)}}].P)=e(P,P)^{\frac {r(id+z)}{(id+z)}}=g^{r}$

As a result:

    $\textstyle S\oplus H_{2}(w)=(\mathbb {M} \oplus H_{2}(g^{r}))\oplus H_{2}(w)=\mathbb {M}$

## Standardisation

There are four standards relating to this protocol:

* Initial standardisation of scheme was begun by IEEE in 2006.
* The scheme was standardised by the IETF in 2012 within RFC 6508.
* A key-exchange algorithm based on the scheme is the MIKEY-SAKKE protocol developed by the UK's national intelligence and security agency, GCHQ, and defined in RFC 6509.
* Sakai-Kasahara, as specified in MIKEY-SAKKE, is the core key-exchange algorithm of the Secure Chorus encrypted Voice over IP standard.

## Security

In common with other identity-based encryption schemes, Sakai-Kasahara requires that the Key Management Server (KMS) stores a master secret from which all users' private keys can be generated. Steven Murdoch has criticised MIKEY-SAKKE for creating a security vulnerability through allowing the KMS to decrypt every users' communication. Murdoch also noted that the lack of forward secrecy in MIKEY-SAKKE increases the harm that could result from the master secret being compromised. GCHQ, the creator of MIKEY-SAKKE, disputed this analysis, pointing out that the some organisations may consider such monitoring capabilities to be desirable for investigative or regulatory reasons, and that the KMS should be protected by an air-gap.

## Cryptographic libraries and implementations

The scheme is part of the MIRACL cryptographic library.

