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

AES-256-GCM decrypt partial buffer at random access location in cypher text (HTTP byte range requests, video/audio) #22

Open
danielweck opened this issue Jan 4, 2017 · 3 comments

Comments

@danielweck
Copy link
Member

Original Pull Request: #21 (comment)

@danielweck
Copy link
Member Author

See Decrypt() where bool full is false (partial byte range request):
https://github.com/readium/readium-lcp-client/blob/feature/lsd/src/lcp-client-lib/AesGcmSymmetricAlgorithm.cpp#L125

@danielweck
Copy link
Member Author

danielweck commented Jan 4, 2017

More specifically, see CryptoPP IsRandomAccess.
https://github.com/weidai11/cryptopp/issues

Pipelining: https://www.cryptopp.com/wiki/Pipelining

@danielweck
Copy link
Member Author

GCM is similar to CTR mode, which means that the IV can be computed at any random offset by incrementing the counter.
https://www.cryptopp.com/wiki/CTR_Mode#Seeking

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