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 optional CTR_SEEK mode functions #218

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mbenniston
Copy link

I've been using AES_CTR_xcrypt_buffer to encrypt a stream and needed to decrypt blocks out of order so I added a AES_CTR_xcrypt_block_at_position function so a block offset into the stream can be provided. I understand that this might be out of the scope of the library but I thought I'd request to merge it because I found the function helpful.

Changes made:

  • Extends upon the CTR mode by allowing for the user to provide an index of a block they want to encrypt/decrypt.
  • Add function AES_CTR_xcrypt_block_at_position().
  • Add function AES_CTR_xcrypt_block_at_position_extended().
  • Should produce exactly the same output as CTR mode when used with sequential block indices.

- Extends upon the CTR mode by allowing for the user to provide
  an index of a block they want to encrypt/decrypt.
- Add function AES_CTR_xcrypt_block_at_position().
- Add function AES_CTR_xcrypt_block_at_position_extended().
- Should produce exactly the same output as CTR mode
  when used sequentially.
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

1 participant