@@ -16,6 +16,27 @@ public class RsaEncryptionResult
1616 /// </summary>
1717 public List < string > Errors { get ; set ; }
1818
19+ /// <summary>
20+ /// Initializes a new instance of the <see cref="RsaEncryptionResult"/> class.
21+ /// </summary>
22+ public RsaEncryptionResult ( )
23+ {
24+ Errors = new List < string > ( ) ;
25+ }
26+ }
27+
28+ public class RsaDecryptionResult
29+ {
30+ /// <summary>
31+ /// Gets or sets the encrypted data.
32+ /// </summary>
33+ public byte [ ] DecryptedData { get ; set ; }
34+
35+ /// <summary>
36+ /// Gets or sets the list of errors encountered during encryption.
37+ /// </summary>
38+ public List < string > Errors { get ; set ; }
39+
1940 ///// <summary>
2041 ///// Gets or sets the public key used for encryption.
2142 ///// </summary>
@@ -29,7 +50,43 @@ public class RsaEncryptionResult
2950 /// <summary>
3051 /// Initializes a new instance of the <see cref="RsaEncryptionResult"/> class.
3152 /// </summary>
32- public RsaEncryptionResult ( )
53+ public RsaDecryptionResult ( )
54+ {
55+ Errors = new List < string > ( ) ;
56+ }
57+ }
58+
59+ public class EncryptionResult
60+ {
61+ /// <summary>
62+ /// Gets or sets the list of errors encountered during encryption.
63+ /// </summary>
64+ public List < string > Errors { get ; set ; }
65+
66+ /// <summary>
67+ /// Gets or sets the encrypted data.
68+ /// </summary>
69+ public byte [ ] EncryptedData { get ; set ; }
70+
71+ public EncryptionResult ( )
72+ {
73+ Errors = new List < string > ( ) ;
74+ }
75+ }
76+
77+ public class DecryptionResult
78+ {
79+ /// <summary>
80+ /// Gets or sets the list of errors encountered during encryption.
81+ /// </summary>
82+ public List < string > Errors { get ; set ; }
83+
84+ /// <summary>
85+ /// Gets or sets the encrypted data.
86+ /// </summary>
87+ public string DecryptedData { get ; set ; }
88+
89+ public DecryptionResult ( )
3390 {
3491 Errors = new List < string > ( ) ;
3592 }
0 commit comments