diff options
author | watcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-04-21 14:14:52 +0000 |
---|---|---|
committer | watcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-04-21 14:14:52 +0000 |
commit | cb4a46e7fbe62d788e66ed6121c717a2d22a4d7c (patch) | |
tree | 30df260fdc5a1b5a7049c2f8cac8b7ef17513d6d /cryptopp/cpp_rsam.h | |
parent | 19b6f534d2e784a1e120bf52c4aa07004798f473 (diff) |
svn.miranda.im is moving to a new home!
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@7 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'cryptopp/cpp_rsam.h')
-rw-r--r-- | cryptopp/cpp_rsam.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/cryptopp/cpp_rsam.h b/cryptopp/cpp_rsam.h new file mode 100644 index 0000000..92c1143 --- /dev/null +++ b/cryptopp/cpp_rsam.h @@ -0,0 +1,45 @@ +#ifndef __CPP_RSAM_H__
+#define __CPP_RSAM_H__
+
+int __cdecl rsa_gen_keypair(short);
+int __cdecl rsa_get_keypair(short,PBYTE,int*,PBYTE,int*);
+int __cdecl rsa_get_keyhash(short,PBYTE,int*,PBYTE,int*);
+int __cdecl rsa_set_keypair(short,PBYTE,int);
+int __cdecl rsa_get_pubkey(HANDLE,PBYTE,int*);
+int __cdecl rsa_set_pubkey(HANDLE,PBYTE,int);
+void __cdecl rsa_set_timeout(int);
+int __cdecl rsa_get_state(HANDLE);
+int __cdecl rsa_get_hash(PBYTE,int,PBYTE,int*);
+int __cdecl rsa_connect(HANDLE);
+int __cdecl rsa_disconnect(HANDLE);
+int __cdecl rsa_disabled(HANDLE);
+LPSTR __cdecl rsa_recv(HANDLE,LPCSTR);
+int __cdecl rsa_send(HANDLE,LPCSTR);
+int __cdecl rsa_encrypt_file(HANDLE,LPCSTR,LPCSTR);
+int __cdecl rsa_decrypt_file(HANDLE,LPCSTR,LPCSTR);
+int __cdecl rsa_export_keypair(short,LPSTR,LPSTR,LPSTR);
+int __cdecl rsa_import_keypair(short,LPSTR,LPSTR);
+int __cdecl rsa_export_pubkey(HANDLE,LPSTR);
+int __cdecl rsa_import_pubkey(HANDLE,LPSTR);
+
+
+void inject_msg(HANDLE,int,const string&);
+string encode_msg(short,pRSADATA,string&);
+string decode_msg(pRSADATA,string&);
+string encode_rsa(short,pRSADATA,pRSAPRIV,string&);
+string decode_rsa(pRSADATA,pRSAPRIV,string&);
+string gen_aes_key_iv(short,pRSADATA,pRSAPRIV);
+void init_priv(pRSAPRIV,string&);
+void init_pub(pRSADATA,string&);
+void null_msg(HANDLE,int,int);
+
+void rsa_timeout(HANDLE,pRSADATA);
+void rsa_alloc(pCNTX);
+void rsa_free(pCNTX);
+void rsa_free_thread(pRSADATA);
+void clear_queue(pRSADATA);
+
+
+unsigned __stdcall sttConnectThread(LPVOID);
+
+#endif
|