File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,5 +37,28 @@ public static void ValidateNotNull(ByteEncryptionParameters parameters)
3737 throw new ArgumentNullException ( nameof ( parameters . IV ) , "IV property cannot be null." ) ;
3838 }
3939 }
40+
41+ public static void ValidateNotNull ( StringEncryptionParameters parameters )
42+ {
43+ if ( parameters == null )
44+ {
45+ throw new ArgumentNullException ( nameof ( parameters ) , "StringEncryptionParameters instance cannot be null." ) ;
46+ }
47+
48+ if ( parameters . Data == null )
49+ {
50+ throw new ArgumentNullException ( nameof ( parameters . Data ) , "Data property cannot be null." ) ;
51+ }
52+
53+ if ( parameters . SecretKey == null )
54+ {
55+ throw new ArgumentNullException ( nameof ( parameters . SecretKey ) , "SecretKey property cannot be null." ) ;
56+ }
57+
58+ if ( parameters . IV == null )
59+ {
60+ throw new ArgumentNullException ( nameof ( parameters . IV ) , "IV property cannot be null." ) ;
61+ }
62+ }
4063 }
4164}
You can’t perform that action at this time.
0 commit comments