Skip to content

Fix Encryption Algorithm field. #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 25, 2023
Merged

Conversation

MDarmawan
Copy link
Collaborator

#117 was a partial fix that didn't fix all cases. This will fix it all.

Signed-off-by: Michael Darmawan <[email protected]>
Signed-off-by: Michael Darmawan <[email protected]>
Copy link
Contributor

@Giakhanh-Hoang Giakhanh-Hoang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

// Encryption algo field is only for secure import.
// Only included it if either nonce or IV are specified.
// API will error if only one of IV or nonce are specified but the other is empty.
if hasNonce || hasIV {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a note and as discussed, this remains a behavioral difference from v0.10.0 but it is a technically a bug fix that would let users know that they did not supply all the required inputs for a secure import operation. (Previous behavior would result in users unknowingly performing regular import key rather than secure import)

@BrunoHenriques BrunoHenriques merged commit ffa8c25 into IBM:master Aug 25, 2023
@MDarmawan MDarmawan deleted the encalg branch February 1, 2024 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants