acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
rsa.h
1#pragma once
2
3
4
5
6
7namespace crypto
8{
9
10
11 class CLASS_DECL_ACME rsa :
12 virtual public particle
13 {
14 public:
15
16
17 string n;
18 string e;
19 string d;
20 string p;
21 string q;
22 string dmp1;
23 string dmq1;
24 string iqmp;
25
26 rsa();
27 rsa(const string& n);
28 rsa(
29 const string& n,
30 const string& e,
31 const string& d,
32 const string& point,
33 const string& q,
34 const string& dmp1,
35 const string& dmq1,
36 const string& iqmp);
37 ~rsa() override;
38
39
40 virtual ::i32 public_encrypt(memory& out, const memory& in, string& strError);
41 virtual ::i32 private_decrypt(memory& out, const memory& in, string& strError);
42 virtual ::i32 public_decrypt(memory& out, const memory& in, string& strError);
43 virtual ::i32 private_encrypt(memory& out, const memory& in, string& strError);
44
45 };
46
47
48 typedef pointer_array < rsa > rsa_pointer_array;
49
50
51} // namespace crypto
52
53
54
55//::pointer<::crypto::rsa>__create_rsa(const ::scoped_string & scopedstr);
56
57
Definition memory.h:33