diff options
Diffstat (limited to 'envelope.h')
-rw-r--r-- | envelope.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/envelope.h b/envelope.h new file mode 100644 index 0000000..a72a7ad --- /dev/null +++ b/envelope.h @@ -0,0 +1,13 @@ +#pragma once + +#include <string> +#include "rsa.h" + +namespace Envelope{ + + std::string encrypt(const std::string &data,const RSA::PublicKey &pubkey); + + //throws invalid_argument for an invalid ciphertext (length invalid) + std::string decrypt(const std::string &data,const RSA::PrivateKey &privkey); + +} |