feat: add inital identity hiding code to proverif

This commit is contained in:
James Brownlee
2023-11-22 20:11:04 -05:00
committed by wucke13
parent 7c83e244f9
commit 4a170b1983
4 changed files with 122 additions and 7 deletions

View File

@@ -9,10 +9,13 @@ 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.
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.
fun kem_pk2b(kem_pk) : bits [typeConverter].