Skip to content

Commit

Permalink
Use Tink 1.14.0 in Tinkey and use LegacyKeysetSerialization.getKeyset…
Browse files Browse the repository at this point in the history
…Info instead of KeysetHandle.getKeysetInfo.

PiperOrigin-RevId: 649341841
Change-Id: Ie7a41ac39e4dca2b56895729b0a2208ef443aca7
  • Loading branch information
tholenst authored and copybara-github committed Jul 4, 2024
1 parent 42195bc commit ab7a84d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ maven.install(
"com.google.auto:auto-common:1.2.2",
"com.google.crypto.tink:tink-awskms:1.9.1",
"com.google.crypto.tink:tink-gcpkms:1.10.0",
"com.google.crypto.tink:tink:1.13.0",
"com.google.crypto.tink:tink:1.14.0",
"com.google.truth:truth:1.1.5",
"junit:junit:4.13.2",
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.google.crypto.tink.tinkey;

import com.google.crypto.tink.KeysetHandle;
import com.google.crypto.tink.LegacyKeysetSerialization;
import com.google.crypto.tink.proto.KeysetInfo;
import java.io.InputStream;

Expand All @@ -38,7 +39,7 @@ public static void list(InputStream inputStream,
String inFormat, String masterKeyUri, String credentialPath) throws Exception {
KeysetHandle handle = TinkeyUtil.getKeysetHandle(inputStream, inFormat, masterKeyUri,
credentialPath);
KeysetInfo keysetInfo = handle.getKeysetInfo();
KeysetInfo keysetInfo = LegacyKeysetSerialization.getKeysetInfo(handle);
System.out.println(keysetInfo);
}
}

0 comments on commit ab7a84d

Please sign in to comment.