Charm: A Rapid Framework for Prototyping Cryptosystems