Skip to content

Adding a keyword to represent padding modes not yet implemented #208

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

Closed
wants to merge 1 commit into from

Conversation

ttjsu-aws
Copy link
Contributor

Issue #, if available:

Description of changes:

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

@@ -35,6 +35,7 @@ enum aws_cryptosdk_rsa_padding_mode {
AWS_CRYPTOSDK_RSA_PKCS1,
AWS_CRYPTOSDK_RSA_OAEP_SHA1_MGF1,
AWS_CRYPTOSDK_RSA_OAEP_SHA256_MGF1,
AWS_CRYPTOSDK_RSA_NOT_YET_IMPLEMENTED,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this useful? We can't meaningfully pass it to any method, and we don't know the padding mode to be able to return a "not yet implemented" value from any funciton either.

Copy link
Contributor Author

@ttjsu-aws ttjsu-aws Dec 10, 2018

Choose a reason for hiding this comment

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

I require this to skip few test cases that are not yet implemented here, I can get rid of this once we close Issue#187

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok. Please don't add this to the public API just to support your test case. Instead, refactor your test case to have an explicit, separate 'skip test' flag that it can use when it is unable to deserialize the padding mode.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alright, closing this PR.

@ttjsu-aws ttjsu-aws closed this Dec 10, 2018
@ttjsu-aws ttjsu-aws deleted the not_yet_implemented branch December 10, 2018 20:46
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.

2 participants