File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ internal static byte[] EncryptAES(ByteEncryptionParameters param)
5252 }
5353 }
5454 }
55- catch ( Exception ex )
55+ catch ( Exception )
5656 {
5757 throw ;
5858 }
@@ -102,9 +102,8 @@ internal static byte[] DecryptAES(ByteDecryptionParameters param)
102102 }
103103 }
104104 }
105- catch ( Exception ex )
105+ catch ( Exception )
106106 {
107-
108107 throw ;
109108 }
110109 }
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ public class EncryptionData
2323 public string SecretKey { get ; set ; }
2424
2525 public bool HasError { get ; set ; }
26+
2627 public List < string > Errors { get ; set ; } = new List < string > ( ) ;
2728 }
2829}
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ public static byte[] HexadecimalStringToByteArray(this string input)
3737 }
3838 return output ;
3939 }
40+
4041 /// <summary>
4142 /// Converts a string to its hexadecimal representation.
4243 /// </summary>
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ public static void ValidateNotNull(EncryptionParameters parameters)
3535 throw new ArgumentNullException ( nameof ( parameters . IV ) , "IV property cannot be null." ) ;
3636 }
3737 }
38+
3839 public static void ValidateNotNull ( DecryptionParameters parameters )
3940 {
4041 if ( parameters == null )
You can’t perform that action at this time.
0 commit comments