Skip to content

Log a warning when an unsupported asym algorithm is used with JceMasterKey #59

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 1 commit into from
Jul 23, 2018
Merged

Log a warning when an unsupported asym algorithm is used with JceMasterKey #59

merged 1 commit into from
Jul 23, 2018

Conversation

SalusaSecondus
Copy link
Contributor

This is to fix #56

I have manually verified that all existing tests pass as well as manual verification that a logged warning appears if and only if an unsupported algorithm is used with JceMasterKey.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@@ -234,12 +237,17 @@ public WrappingData(final Cipher cipher, final byte[] extraInfo) {
}

private static class Rsa extends JceMasterKey {
private static final Pattern SUPPORTED_TRANSFORMATIONS =
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be nice to have some kind of test coverage for this in general in the future to make sure we warn / don't warn as intended

@SalusaSecondus SalusaSecondus merged commit 90ba324 into aws:master Jul 23, 2018
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.

Define constraints on JceMasterKey RSA wrapping algorithms
3 participants