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 PlaintextSize method to Enclaves #120

Merged
merged 5 commits into from Oct 2, 2019
Merged

Conversation

capnspacehook
Copy link
Contributor

The size of the ciphertext of Enclaves is not a secret, and given that we know the size overhead of storing plaintext in an Enclave, it would be useful and more efficient to have a function that returns the size of the plaintext, without needing to create a LockedBuffer and get the size of it's protected bytes.

@capnspacehook
Copy link
Contributor Author

Not sure why it fails on Windows...

@awnumar
Copy link
Owner

awnumar commented Sep 29, 2019

Good idea, thanks for the pull request. I don't know why the test is failing on Windows either, there is no modules.txt file because dependencies aren't being vendored...

@capnspacehook
Copy link
Contributor Author

I wasn't sure what to name the new method, I like Size though. I was initially worried it would be confusing, as it isn't the true size of the Enclave, but thinking about it some more it makes sense to me. Thanks for adding the test, was going to add that but you beat me to it 👍

@awnumar awnumar merged commit 6430d8d into awnumar:master Oct 2, 2019
awnumar added a commit that referenced this pull request Oct 22, 2019
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.

None yet

2 participants