From 41a6044f2388f76ded078182460ada296cd7f025 Mon Sep 17 00:00:00 2001 From: Tink Team Date: Fri, 10 Nov 2023 23:16:08 -0800 Subject: [PATCH] Internal Code Change PiperOrigin-RevId: 581463324 Change-Id: I826a1ea5fd67a8ef9989534b5a757aa2e071ec77 --- tink/mac/internal/chunked_mac_test.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tink/mac/internal/chunked_mac_test.cc b/tink/mac/internal/chunked_mac_test.cc index 464912e6..32e56391 100644 --- a/tink/mac/internal/chunked_mac_test.cc +++ b/tink/mac/internal/chunked_mac_test.cc @@ -64,7 +64,7 @@ TEST_P(ChunkedMacCompatibilityTest, ComputeAndVerify) { ASSERT_THAT(MacConfig::Register(), IsOk()); util::StatusOr> key = - KeysetHandle::GenerateNew(key_template); + KeysetHandle::GenerateNew(key_template, KeyGenConfigGlobalRegistry()); ASSERT_THAT(key, IsOk()); util::StatusOr> mac = @@ -104,8 +104,8 @@ TEST_P(ChunkedMacCompatibilityTest, ComputeAndVerify) { TEST(ChunkedMacSlicingTest, DifferentChunkSizes) { ASSERT_THAT(MacConfig::Register(), IsOk()); - util::StatusOr> key = - KeysetHandle::GenerateNew(MacKeyTemplates::HmacSha256()); + util::StatusOr> key = KeysetHandle::GenerateNew( + MacKeyTemplates::HmacSha256(), KeyGenConfigGlobalRegistry()); ASSERT_THAT(key, IsOk()); util::StatusOr> chunked_mac = @@ -134,8 +134,8 @@ TEST(ChunkedMacSlicingTest, DifferentChunkSizes) { TEST(ChunkedMacTest, VerifyPrefixFails) { ASSERT_THAT(MacConfig::Register(), IsOk()); - util::StatusOr> key = - KeysetHandle::GenerateNew(MacKeyTemplates::HmacSha256()); + util::StatusOr> key = KeysetHandle::GenerateNew( + MacKeyTemplates::HmacSha256(), KeyGenConfigGlobalRegistry()); ASSERT_THAT(key, IsOk()); util::StatusOr> chunked_mac = @@ -160,8 +160,8 @@ TEST(ChunkedMacTest, VerifyPrefixFails) { TEST(ChunkedMacTest, UpdateWrongOrderFails) { ASSERT_THAT(MacConfig::Register(), IsOk()); - util::StatusOr> key = - KeysetHandle::GenerateNew(MacKeyTemplates::HmacSha256()); + util::StatusOr> key = KeysetHandle::GenerateNew( + MacKeyTemplates::HmacSha256(), KeyGenConfigGlobalRegistry()); ASSERT_THAT(key, IsOk()); util::StatusOr> chunked_mac = @@ -188,8 +188,8 @@ TEST(ChunkedMacTest, UpdateWrongOrderFails) { TEST(ChunkedMacTest, OperationsFailAfterComputeVerifyMac) { ASSERT_THAT(MacConfig::Register(), IsOk()); - util::StatusOr> key = - KeysetHandle::GenerateNew(MacKeyTemplates::HmacSha256()); + util::StatusOr> key = KeysetHandle::GenerateNew( + MacKeyTemplates::HmacSha256(), KeyGenConfigGlobalRegistry()); ASSERT_THAT(key, IsOk()); util::StatusOr> chunked_mac =