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

prevents creating overlapping encryption streams #5400

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

Conversation

keith-turner
Copy link
Contributor

Modified AESCryptoService to detect creation of multiple encryptions streams at the same time. The implementation in AESCryptoService does not support this because it uses shared Cipher object and shrared intialization vectors. The code that uses CryptoService does not seem to have a need for creating more that one encryption stream at a time. If the usage pattern of the code change, then the detection added in this commit should catch that.

fixes #5386

Modified AESCryptoService to detect creation of multiple encryptions
streams at the same time. The implementation in AESCryptoService does
not support this because it uses shared Cipher object and shrared
intialization vectors.  The code that uses CryptoService does not seem
to have a need for creating more that one encryption stream at a time.
If the usage pattern of the code change, then the detection added in
this commit should catch that.

fixes apache#5386
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.

1 participant