commit | 904f850ac06dde53d82cc0c79436b9fae3ed6f64 | [log] [tgz] |
---|---|---|
author | Thomas Holenstein <tholenst@google.com> | Mon Jun 10 01:12:25 2024 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Jun 10 01:15:02 2024 -0700 |
tree | 9b364e79cbc9e4fb4deafbce67b367ba9ea2288b | |
parent | 89cd2be657ef80ffa399887682b25fb2fa6d3beb [diff] |
Check that plaintextPosition == plaintextSize in reachedEnd. The method "SeekableByteChannel position(long newPosition)" only sets "plaintextPosition", and ignores the other internal values. It's not really clear if we should update those: in particular, one stores the ciphertextSegment, the plaintextSegment (which contain the bytes for segment number currentSegmentNr). We could also invalidate the currentSegmentNr and set it to -1 when we set the position -- I don't see which solution is better. PiperOrigin-RevId: 641816911 Change-Id: Ife0fc4033ee7b4698253cf04d5224cd01407290f
Test | GCP Ubuntu | MacOS |
---|---|---|
Bazel | ||
Maven | N/A |
Using crypto in your application shouldn't have to feel like juggling chainsaws in the dark. Tink is a crypto library written by a group of cryptographers and security engineers at Google. It was born out of our extensive experience working with Google's product teams, fixing weaknesses in implementations, and providing simple APIs that can be used safely without needing a crypto background.
Tink provides secure APIs that are easy to use correctly and hard(er) to misuse. It reduces common crypto pitfalls with user-centered design, careful implementation and code reviews, and extensive testing. At Google, Tink is one of the standard crypto libraries, and has been deployed in hundreds of products and systems.
To get a quick overview of Tink's design please take a look at Tink's goals.
The official documentation is available at https://developers.google.com/tink.
If you want to contribute, please read CONTRIBUTING and send us pull requests. You can also report bugs or file feature requests.
If you'd like to talk to the developers or get notified about major product updates, you may want to subscribe to our mailing list.
Tink is maintained by (A-Z):
Alumni: