Skip to content
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

test: add support for legacy test vectors #695

Merged
merged 7 commits into from
Nov 15, 2024
Merged

Conversation

josecorella
Copy link
Contributor

Issue #, if available:

Description of changes:

Squash/merge commit message, if applicable:

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

@josecorella josecorella marked this pull request as ready for review November 15, 2024 18:57
@josecorella josecorella requested a review from a team as a code owner November 15, 2024 18:57
@@ -151,6 +151,21 @@ module {:options "-functionSyntax:4"} EsdkTestVectors {
description: string,
decryptionMethod: DecryptionMethod
)
| PositiveV1DecryptTestVector(
Copy link
Contributor

Choose a reason for hiding this comment

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

Where does "V1" come from? What is "V1" referring to?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

V1 is the manifest version

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 helpful to call it PositiveV1ManifestDecryptTestVector but I won't block on that since you can find it from other context

Copy link
Contributor

Choose a reason for hiding this comment

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

PositiveV1OrV2ManifestDecryptTestVector

var keyDescriptions :- GetKeyDescriptions(masterKeys, keys);
var keyDescription :- ToMultiKeyDescription(keyDescriptions);

Success(PositiveV1DecryptTestVector(
Copy link
Contributor

Choose a reason for hiding this comment

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

This test is V2 but it uses V1 vectors? It's probably reasonable but an explanation would be very helpful

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was planning on having a PositiveV2DecryptTestVector but figured it was not needed since the positive case is the same for both versions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could name it PositiveLegacyDecryptTestVector?
thoughts?

@josecorella josecorella merged commit 0a53669 into mainline Nov 15, 2024
43 checks passed
@josecorella josecorella deleted the t-v/v1-v2-support branch November 15, 2024 19:53
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