#pragma once #include #include "rsa.h" namespace Envelope{ std::string encrypt(const std::string &data,const RSA::Key &pubkey); //throws invalid_argument for an invalid ciphertext (length invalid) std::string decrypt(const std::string &data,const RSA::Key &privkey); }