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

Add test that ensures that keys wrapped with a leased key can be decr… #17

Merged
merged 1 commit into from
Jul 13, 2020

Conversation

ernieturner
Copy link
Contributor

…ypted after turning off leasing

@ernieturner ernieturner requested a review from skeet70 July 9, 2020 18:13
return bytes.length > DOCUMENT_HEADER_META_LENGTH
&& bytes[0] == CURRENT_DOCUMENT_HEADER_VERSION && containsIroncoreMagic(bytes)
&& getHeaderSize(bytes) == 0;
&& getHeaderSize(bytes) >= 0;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@skeet70 Just so you're aware, I had to change this because we haven't prioritized/worked on #15. With this change we can at least prevent errors if someone tried to decrypt a document that was encrypted with the Node SDK. We can discuss in grooming/planning how far we want to take that other ticket and if/when to release this change.

@ernieturner ernieturner merged commit 532d8f1 into master Jul 13, 2020
@ernieturner ernieturner deleted the leasedDataTest branch July 13, 2020 15:37
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