vikaskr22 opened a new pull request, #860: URL: https://github.com/apache/ranger/pull/860
## What changes were proposed in this pull request? RangerMasterKey has generateSalt(int saltSize) method. In case of FIPS, if user provided saltSize is small, then code calculates the compliant salt size and then generates the salt. The parameter of the method contains the new calculated size and this method is expected to use this size only. While copying the generated salt to target byte[], it was using the static member instance with the same variable name. Right now it is working because both has same value but it may create problem if static member and new calculated value starts containing different value. So to avoid such issues and as a good coding practice, code is updated to use the provided parameter only. ## How was this patch tested? - mvn build is successful - All KMS UTs passed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
