@@ -23,7 +23,7 @@ public static async Task<DecryptionData> DecryptFromHexStringAsync(DecryptionPar
2323 {
2424 var responseData = new DecryptionData ( ) ;
2525
26- Validators . ValidateNotNull ( param ) ;
26+ Validator < DecryptionParameters > . ValidateNotNull ( param ) ;
2727
2828 // validate is base64
2929 if ( ! Validators . IsBase64String ( param . SecretKey ) )
@@ -52,7 +52,7 @@ public static async Task<DecryptionData> DecryptFromHexStringAsync(DecryptionPar
5252 {
5353 SecretKey = Convert . FromBase64String ( param . SecretKey ) ,
5454 IV = dataBytes ,
55- Data = param . DataToDecrypt . HexadecimalStringToByteArray ( )
55+ Data = param . Data . HexadecimalStringToByteArray ( )
5656 } ;
5757
5858 var response = await BaseAesEncryption . DecryptAsync ( byteEncryptionParameters , mode ) ;
@@ -79,7 +79,7 @@ public static async Task<DecryptionData> DecryptFromBase64StringAsync(Decryption
7979 {
8080 var responseData = new DecryptionData ( ) ;
8181
82- Validators . ValidateNotNull ( param ) ;
82+ Validator < DecryptionParameters > . ValidateNotNull ( param ) ;
8383
8484
8585 if ( ! Validators . IsBase64String ( param . SecretKey ) )
@@ -100,7 +100,7 @@ public static async Task<DecryptionData> DecryptFromBase64StringAsync(Decryption
100100 {
101101 SecretKey = Convert . FromBase64String ( param . SecretKey ) ,
102102 IV = Convert . FromBase64String ( param . IV ) ,
103- Data = Convert . FromBase64String ( param . DataToDecrypt )
103+ Data = Convert . FromBase64String ( param . Data )
104104 } ;
105105
106106 var response = await BaseAesEncryption . DecryptAsync ( byteDecryptionParameters , mode ) ;
0 commit comments