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

DOCS: Please provide example for encrypting in more than one call to encrypt() #646

Open
matthewmucker-vizio opened this issue Jul 18, 2022 · 1 comment

Comments

@matthewmucker-vizio
Copy link

I'm facing, I think, the same issue reported in issue 342. I would like to encrypt a 100GB file by sending multiple 'chunks' of data to encrypt(). I'm finding that this only works if I pad every input chunk (even when a multiple of AES block size), and only when I decrypt using the input chunk size plus 16 bytes.

This means that the decrypt operation has to know the chunk size used by then encrypt operation, which seems likely to be wrong to me.

An example of encrypting a large file in the docs would be much appreciated.

@matthewmucker-vizio
Copy link
Author

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

No branches or pull requests

1 participant