Sending PublicKey within packet payload
问题 For an academic network application, I'd like to set up an RSA key exchange between 2 virtual machines. I am using Crypto++ to generate the RSA::PublicKey , and I must now send it within a custom layer-2 frame (the packet will be crafted with libcrafter). The thing is, I have no idea of how write the key in the network , such as the receiver, sniffing the packet, is able to re-build, somehow, the RSA::PublicKey . I tried to save it raw in a string, but as they say here, the PublicKey class