File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
tss-esapi/src/structures/tagged/public Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -155,12 +155,12 @@ impl PublicEccParametersBuilder {
155
155
return Err ( Error :: local_error ( WrapperErrorKind :: InconsistentParams ) ) ;
156
156
}
157
157
} else {
158
- error ! ( "Found symmetric parameter, expected it to be Null nor not set at all because 'restricted' and 'is_decrypt_key' are set to false " ) ;
158
+ error ! ( "Symmetric parameter was not set but 'restricted' and 'is_decrypt_key' are set to true " ) ;
159
159
return Err ( Error :: local_error ( WrapperErrorKind :: ParamsMissing ) ) ;
160
160
}
161
161
} else if let Some ( symmetric) = self . symmetric {
162
162
if !symmetric. is_null ( ) {
163
- error ! ( "Found symmetric parameter, expected it to be Null nor not set at all because 'restricted' and 'is_decrypt_key' are set to false" ) ;
163
+ error ! ( "Found symmetric parameter, expected it to be Null or not set at all because 'restricted' or 'is_decrypt_key' are set to false" ) ;
164
164
return Err ( Error :: local_error ( WrapperErrorKind :: InconsistentParams ) ) ;
165
165
}
166
166
}
Original file line number Diff line number Diff line change @@ -155,12 +155,12 @@ impl PublicRsaParametersBuilder {
155
155
return Err ( Error :: local_error ( WrapperErrorKind :: InconsistentParams ) ) ;
156
156
}
157
157
} else {
158
- error ! ( "Found symmetric parameter, expected it to be Null nor not set at all because 'restricted' and 'is_decrypt_key' are set to false " ) ;
158
+ error ! ( "Symmetric parameter was not set but 'restricted' and 'is_decrypt_key' are set to true " ) ;
159
159
return Err ( Error :: local_error ( WrapperErrorKind :: ParamsMissing ) ) ;
160
160
}
161
161
} else if let Some ( symmetric) = self . symmetric {
162
162
if !symmetric. is_null ( ) {
163
- error ! ( "Found symmetric parameter, expected it to be Null nor not set at all because 'restricted' and 'is_decrypt_key' are set to false" ) ;
163
+ error ! ( "Found symmetric parameter, expected it to be Null or not set at all because 'restricted' or 'is_decrypt_key' are set to false" ) ;
164
164
return Err ( Error :: local_error ( WrapperErrorKind :: InconsistentParams ) ) ;
165
165
}
166
166
}
You can’t perform that action at this time.
0 commit comments