aboutsummaryrefslogtreecommitdiff
path: root/envelope.h
blob: f7bfad3912570a82b62fd3a2959f1082722531e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

#include <string>
#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);

}