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

Use readFully() to read bytes from CipherInputStream (#28515) #30640

Merged
merged 2 commits into from
May 16, 2018

Commits on May 16, 2018

  1. Use readFully() to read bytes from CipherInputStream (elastic#28515)

    Changes how data is read from CipherInputStream
    
     Instead of using `read()` and checking that the bytes read are what we
    expect, use `readFully()` which will read exactly the number of bytes
    while keep reading until the end of the stream or throw an
    `EOFException` if not all bytes can be read.
    
    This approach keeps the simplicity of using CipherInputStream while
    working as expected with both JCE and BCFIPS Security Providers
    jkakavas committed May 16, 2018
    Configuration menu
    Copy the full SHA
    6f68eb2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8d45e82 View commit details
    Browse the repository at this point in the history