feat: identity hiding in two stage process

Changed identity hiding test to work as a two stage process where
participants with fresh secure secret keys communicate with each other
and other compromised participants. Then the attacker is asked to
identify the difference between two of the secure participants as on of
them acts as a responder.
This commit is contained in:
James Brownlee
2023-11-25 20:49:32 -05:00
committed by wucke13
parent 4a170b1983
commit 91da0dfd2d
4 changed files with 142 additions and 107 deletions

View File

@@ -9,13 +9,10 @@ type kem_sk.
type kem_pk.
fun kem_pub(kem_sk) : kem_pk.
fun kem_private(kem_pk) : kem_sk[private].
fun kem_enc(kem_pk, key) : bits.
fun kem_dec(kem_sk, bits) : key
reduc forall sk:kem_sk, shk:key;
kem_dec(sk, kem_enc(kem_pub(sk), shk)) = shk
otherwise forall pk:kem_pk, shk:key;
kem_dec(kem_private(pk), kem_enc(pk, shk)) = shk.
kem_dec(sk, kem_enc(kem_pub(sk), shk)) = shk.
fun kem_pk2b(kem_pk) : bits [typeConverter].