The unified diff between revisions [869f0c37..] and [e24ccc23..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'keys.hh'

#
#
# patch "keys.hh"
#  from [f10aaea8dbaf4005a55ec388f278d1bb81d664af]
#    to [ec2da9cbde80341456204b6e0e0b4f727388ed8b]
#
============================================================
--- keys.hh	f10aaea8dbaf4005a55ec388f278d1bb81d664af
+++ keys.hh	ec2da9cbde80341456204b6e0e0b4f727388ed8b
@@ -42,6 +42,18 @@ void require_password(rsa_keypair_id con
 void require_password(rsa_keypair_id const & id,
                       app_state & app);

+void encrypt_rsa(lua_hooks & lua,
+                 rsa_keypair_id const & id,
+                 base64<rsa_pub_key> & pub,
+                 std::string const & plaintext,
+                 rsa_oaep_sha_data & ciphertext);
+
+void decrypt_rsa(lua_hooks & lua,
+                 rsa_keypair_id const & id,
+                 base64< arc4<rsa_priv_key> > const & priv,
+                 rsa_oaep_sha_data const & ciphertext,
+                 std::string & plaintext);
+
 // netsync stuff

 void read_pubkey(std::string const & in,