Skip to content

Commit 5d6a6fe

Browse files
committed
Update proof_enc
Signed-off-by: Denis Varlakov <denis@dfns.co>
1 parent 3cba8fb commit 5d6a6fe

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

spec/main.tex

+9-7
Original file line numberDiff line numberDiff line change
@@ -465,10 +465,11 @@ \subsubsection{Interactive Version of the Proof}
465465

466466
\item
467467
\begin{inlineAlgorithm}
468-
\algoName{$\prove{enc}((N_i, K), e; (\alpha, \mu, r, \gamma)) \to (z_1, z_2, z_3)$}
468+
\algoName{$\prove{enc}((N_i, K), e; \rho, (\alpha, \mu, r, \gamma)) \to (z_1, z_2, z_3)$}
469469
\algoInputsList{
470470
\item public data $(N_i, K) \in (\Z, \Z)$
471471
\item challenge $e \in \Z$
472+
\item secret nonce $\rho \in \Z$
472473
\item local secret commitment none $(\alpha, \mu, r, \gamma) \in (\Z, \Z, \Z, \Z)$
473474
}
474475
\algoOutputs{$(z_1, z_2, z_3) \in (\Z, \Z, \Z)$}
@@ -493,6 +494,7 @@ \subsubsection{Interactive Version of the Proof}
493494
}
494495
\algoOutputs{aborts if proof is invalid}
495496
\begin{algorithmic}[1]
497+
\State $K \? \in \Z^*_{N_i}$
496498
\State $A \oplus (e \odot K) \? = \enc_{N_i}(z_1; z_2) \bmod N_i^2$
497499
\State $s_j^{z_1} t_j^{z_3} \? = C \cdot S^e \bmod N_j$ \Comment{use precomputed multiexp table to compute left part of equation}
498500
\State $z_1 \? \in \pm 2^{\ell + \varepsilon}$.
@@ -507,14 +509,14 @@ \subsubsection{Non-Interactive Version of the Proof}
507509

508510
\item
509511
\begin{inlineAlgorithm}
510-
\algoName{$\proveni{enc}^L(\state, R_j, (N_i, K); k[, \sk_i]) \to ((S, A, C); (z_1, z_2, z_3))$}
512+
\algoName{$\proveni{enc}^L(\state, R_j, (N_i, K); k, \rho[, \sk_i]) \to ((S, A, C); (z_1, z_2, z_3))$}
511513
\algoInputsList{
512514
\item security level $L = (Q, \dots)$,
513515
\item shared state $\state \in \Bit^*$,
514516
\item auxilary data $R_j$,
515517
\item public encryption key $N_i \in \Z$ and, if known, corresponding secret key $\sk_i$,
516-
\item plaintext $K \in \Z$,
517-
\item secret plaintext $k \in \Z$
518+
\item public ciphertext $K \in \Z$,
519+
\item secret plaintext $k \in \Z$ and secret nonce $\rho \in \Z$
518520
}
519521
\algoOutputsList{
520522
\item public commitment $(S, A, C) \in (\Z, \Z, \Z)$,
@@ -525,7 +527,7 @@ \subsubsection{Non-Interactive Version of the Proof}
525527
\Comment{generate commitment}
526528
\State $e \in \pm Q = \challengeni{enc}^L(\state, R_j, (N_i, K), (S, A, C))$
527529
\Comment{deterministically derive challenge}
528-
\State $(z_1, z_2, z_3) = \prove{enc}((N_i, K), e; (\alpha, \mu, r, \gamma))$
530+
\State $(z_1, z_2, z_3) = \prove{enc}((N_i, K), e; \rho, (\alpha, \mu, r, \gamma))$
529531
\State \Return $((S, A, C), (z_1, z_2, z_3))$
530532
\end{algorithmic}
531533
\end{inlineAlgorithm}
@@ -539,8 +541,8 @@ \subsubsection{Non-Interactive Version of the Proof}
539541
\item auxilary data $R_j$,
540542
\item public data:
541543
\begin{itemize}
542-
\item public encryption key $N_i \in \Z$,
543-
\item plaintext $K \in \Z$,
544+
\item encryption key $N_i \in \Z$,
545+
\item ciphertext $K \in \Z$,
544546
\end{itemize}
545547
\item non-interactive proof $((S, A, C), (z_1, z_2, z_2)) \in ((\Z, \Z, \Z), (\Z, \Z, \Z))$
546548
}

0 commit comments

Comments
 (0)