Let's say there's Alice and Bob.
- Let Alice and Bob agree on a message $M_1$, a tag $T_1$, and a function $HMAC$.
- Alice proves to Bob that she knows a key $K$ such that $T_1 = HMAC(M_1, K)$ without revealing what $K$ is, using a zero knowledge proof.
- Alice sends Bob some cryptographic object $MysteryBox$.
- Alice dies.
- When Bob puts $M_2$ and $T_2$, which Alice doesn't know, into $MysteryBox$ she left, he can decide if $T_2 \stackrel{?}{=} HMAC(M_2, K)$, without knowing what $K$ is.
Can we design such $MysteryBox$, without using truly homomorphic encryption?