This repository has been archived by the owner on Apr 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce a helper function
readNBytes()
to KeyFactory
class and …
…use it instead of `InputStream.read()` for key derivation. This is to help avoid situations where the necessary random bytes were provided by the InputStream but could not be fully read by the `read()` method. We cannot use `InputStream.readNBytes()` since it's only available since JDK 9, and we must be JDK 8-compatible for our Android targets. PiperOrigin-RevId: 501799128
- Loading branch information
1 parent
72208aa
commit b3d5b0c
Showing
2 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters