aboutsummaryrefslogtreecommitdiff
path: root/envelope.h
blob: a72a7adebb8c3b37e0645e714bcc50c183a34fb4 (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::PublicKey &pubkey);

	//throws invalid_argument for an invalid ciphertext (length invalid)
	std::string decrypt(const std::string &data,const RSA::PrivateKey &privkey);

}