Remove the function getEncryptedSegments() from the StreamSegmentEncrypter,...
Remove the function getEncryptedSegments() from the StreamSegmentEncrypter, and add overflow protection in AesGcmHkdfStreaming. Also, use a new specialized function putAsUnsignedInt to make sure that negative numbers are treated correctly -- the implementation is trivial, but the fact that it works requires some deep knowledge, so I'd rather just add a test. PiperOrigin-RevId: 263127232
Showing
- java/src/main/java/com/google/crypto/tink/subtle/AesCtrHmacStreaming.java 4 additions, 9 deletions...va/com/google/crypto/tink/subtle/AesCtrHmacStreaming.java
- java/src/main/java/com/google/crypto/tink/subtle/AesGcmHkdfStreaming.java 0 additions, 5 deletions...va/com/google/crypto/tink/subtle/AesGcmHkdfStreaming.java
- java/src/main/java/com/google/crypto/tink/subtle/StreamSegmentEncrypter.java 0 additions, 2 deletions...com/google/crypto/tink/subtle/StreamSegmentEncrypter.java
- java/src/main/java/com/google/crypto/tink/subtle/SubtleUtil.java 14 additions, 0 deletions...c/main/java/com/google/crypto/tink/subtle/SubtleUtil.java
- java/src/test/java/com/google/crypto/tink/subtle/SubtleUtilTest.java 47 additions, 0 deletions...st/java/com/google/crypto/tink/subtle/SubtleUtilTest.java
Loading
Please register or sign in to comment