-
Notifications
You must be signed in to change notification settings - Fork 0
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
Enabling the CBCS encryption of multiple block concurrently #1
Comments
Hi Romain, Some questions about your post above:
Command used for testing purposes: Proposed changes could be something like:
Let me know if you see anything issues with this approach. Thanks! |
Use gf_filter_pck_new_alloc() to allocate a new packet.
cloned -> allocated Yes. You need to keep the reference to the input until you don't need the input anymore. Not before.
Yes. In this case you won't be threaded. To run the encryption in a loop alone in its thread use
Yes as long as the input data needs to be accessed (e.g. you haven't copied it, etc.).
Yes. I assume the calling order is kept ; other we need to reorder the packets.
Seems like a good approach. Let me know if you need anything from us. |
Thanks for the clarifications, I'll let you know if I run into any issues. -Marcel |
gf_crypt_encrypt(cstr->keys[0].crypt, output, pck_size - clear_trailing);
can be replaced byqueue_job();
. We don't seem to use the data afterward (tests will tell ;) ).The text was updated successfully, but these errors were encountered: