Charm: A Framework for Rapidly Prototyping Cryptosystems