-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: use fips-compatible padding for provider passwords (#677)
* core: use fips-compatible padding for provider passwords Use OAEP with SHA256 and MGF1 padding in password encryption and decryption during authenticating with ovirt-ovn-provider on el9 deployments where FIPS is enabled. New provide passwords are only encrypted using the new padding, with "$" added in front of he encrypted string. Keep backward compatibility by checking the first character of the provider password field. "$" means the new padding is used and the rest of the string should be decoded using OAEP, otherwise it's the old padding and the whole string is decoded as is. Signed-off-by: Eitan Raviv <eraviv@redhat.com> Signed-off-by: Marcin Sobczyk <msobczyk@redhat.com> Signed-off-by: Milan Zamazal <mzamazal@redhat.com>
- Loading branch information
Showing
3 changed files
with
31 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters