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

Make InputStreamDecrypter.read() InputStream compliant #11

Closed

Conversation

spheroid
Copy link
Contributor

@spheroid spheroid commented Sep 5, 2023

Convert the read signed integer to unsigned before returning it, because it is the behavior defined in the InputStream interface. It also makes it possible to distinguish between errors and successful read operations.

Fixes #10.

Convert the read signed integer to unsigned before returning it, because it is the behavior defined in the InputStream interface. It also makes it possible to distinguish between errors and successful read operations.

Fixes tink-crypto#10.
@morambro morambro requested a review from juergw September 18, 2023 08:38
@morambro morambro added the bug Something isn't working label Sep 18, 2023
@morambro
Copy link
Contributor

We've imported this patch and pushed it in 4412da1. Thanks a lot for the fix!

Unfortunately, due to some internal tooling issues this PR won't show as merged, so I'll have to simply close this PR. I apologise for the issue.

@morambro morambro closed this Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InputStreamDecrypter read() is not InputStream compliant
2 participants