-
Notifications
You must be signed in to change notification settings - Fork 3
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
refactor: Modernize usage of Tink #266
Conversation
KeysetReader/Writer objects will go away. We use TinkProtoKeysetFormat instead. This is a pure refactoring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
KeysetReader/Writer objects will go away.
Can you link to any public documentation on this? I don't see any deprecation warnings on the interfaces.
Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @tholenst)
a discussion (no related file):
Approved pending lint fixes.
Note that my approval is not sufficient to merge this PR. This is because we have a two-organization change policy, where every code change must involve at least two member organizations. Since we're both Googlers, there's no other organization yet involved. I can add an external reviewer for you and shepherd this through to the downstream repos once the linter errors are fixed.
src/main/kotlin/org/wfanet/measurement/common/crypto/tink/KeyHandle.kt
line 36 at r1 (raw file):
fun toByteString(): ByteString { return ByteString.copyFrom(TinkProtoKeysetFormat.serializeKeysetWithoutSecret(keysetHandle));
It's unfortunate that the new interface doesn't offer a way to avoid the extra copies :(
The Tink team currently has the policy that all Google internal usages need to be removed before we add deprecation warnings. This is to avoid spamming deprecation warnings on things which we never remove anyhow. This is the last instance of this API within Google.
In a sense yes. The problem is that we don't want to require a Protobuf dependency on the main part of Tink, so we opted for |
@SanjayVas: would you mind adopting this PR instead? I think if one has everything set up (with the linting) and if one is familiar with git things become much more efficient. Since I don't have the linting set up locally and it seems I cannot run the check myself and since I'm not too familiar with git things become a bit more difficult. WDYT? |
@tholenst I was going to suggest that as it seemed like you were having some difficulty. |
Created #269 to replace this. |
KeysetReader/Writer objects will go away. We use TinkProtoKeysetFormat instead.
This is a pure refactoring.