diff options
author | tholenst <tholenst@google.com> | 2023-03-08 06:57:11 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-03-08 06:57:57 -0800 |
commit | 8fc28ff50feb203008ba02b33506dffc729e5202 (patch) | |
tree | f207ea8b7f53b588bc284436900100e2ca4f92e9 /tools | |
parent | a1b31d0a4aad80263ea1fcea13a296893986be72 (diff) | |
download | tink-8fc28ff50feb203008ba02b33506dffc729e5202.tar.gz |
Migrate usages of TestUtil.hex{En,De}code to "Hex.{en,de}code".
This was created automatically using "InlineMe".
PiperOrigin-RevId: 515025616
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/javatests/com/google/crypto/tink/testing/CompareKeysetsTest.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tools/testing/javatests/com/google/crypto/tink/testing/CompareKeysetsTest.java b/tools/testing/javatests/com/google/crypto/tink/testing/CompareKeysetsTest.java index 895a5bbde..28f025918 100644 --- a/tools/testing/javatests/com/google/crypto/tink/testing/CompareKeysetsTest.java +++ b/tools/testing/javatests/com/google/crypto/tink/testing/CompareKeysetsTest.java @@ -24,6 +24,7 @@ import com.google.crypto.tink.proto.KeyData.KeyMaterialType; import com.google.crypto.tink.proto.KeyStatusType; import com.google.crypto.tink.proto.Keyset; import com.google.crypto.tink.proto.OutputPrefixType; +import com.google.crypto.tink.subtle.Hex; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; @@ -36,13 +37,13 @@ public final class CompareKeysetsTest { AesGcmKeyManager.register(true); } - private static final byte[] KEY_0 = TestUtil.hexDecode("000102030405060708090a0b0c0d0e0f"); - private static final byte[] KEY_1 = TestUtil.hexDecode("100102030405060708090a0b0c0d0e0f"); - private static final byte[] KEY_2 = TestUtil.hexDecode("200102030405060708090a0b0c0d0e0f"); - private static final byte[] KEY_3 = TestUtil.hexDecode("300102030405060708090a0b0c0d0e0f"); - private static final byte[] KEY_4 = TestUtil.hexDecode("400102030405060708090a0b0c0d0e0f"); - private static final byte[] KEY_5 = TestUtil.hexDecode("500102030405060708090a0b0c0d0e0f"); - private static final byte[] KEY_6 = TestUtil.hexDecode("600102030405060708090a0b0c0d0e0f"); + private static final byte[] KEY_0 = Hex.decode("000102030405060708090a0b0c0d0e0f"); + private static final byte[] KEY_1 = Hex.decode("100102030405060708090a0b0c0d0e0f"); + private static final byte[] KEY_2 = Hex.decode("200102030405060708090a0b0c0d0e0f"); + private static final byte[] KEY_3 = Hex.decode("300102030405060708090a0b0c0d0e0f"); + private static final byte[] KEY_4 = Hex.decode("400102030405060708090a0b0c0d0e0f"); + private static final byte[] KEY_5 = Hex.decode("500102030405060708090a0b0c0d0e0f"); + private static final byte[] KEY_6 = Hex.decode("600102030405060708090a0b0c0d0e0f"); private static Keyset.Key aesGcmKey( byte[] keyValue, int keyId, KeyStatusType status, OutputPrefixType prefixType) |