Skip to content

Commit

Permalink
Internal Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 581463324
Change-Id: I826a1ea5fd67a8ef9989534b5a757aa2e071ec77
  • Loading branch information
ise-crypto authored and copybara-github committed Nov 11, 2023
1 parent 6042a12 commit 41a6044
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tink/mac/internal/chunked_mac_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ TEST_P(ChunkedMacCompatibilityTest, ComputeAndVerify) {
ASSERT_THAT(MacConfig::Register(), IsOk());

util::StatusOr<std::unique_ptr<KeysetHandle>> key =
KeysetHandle::GenerateNew(key_template);
KeysetHandle::GenerateNew(key_template, KeyGenConfigGlobalRegistry());
ASSERT_THAT(key, IsOk());

util::StatusOr<std::unique_ptr<Mac>> mac =
Expand Down Expand Up @@ -104,8 +104,8 @@ TEST_P(ChunkedMacCompatibilityTest, ComputeAndVerify) {
TEST(ChunkedMacSlicingTest, DifferentChunkSizes) {
ASSERT_THAT(MacConfig::Register(), IsOk());

util::StatusOr<std::unique_ptr<KeysetHandle>> key =
KeysetHandle::GenerateNew(MacKeyTemplates::HmacSha256());
util::StatusOr<std::unique_ptr<KeysetHandle>> key = KeysetHandle::GenerateNew(
MacKeyTemplates::HmacSha256(), KeyGenConfigGlobalRegistry());
ASSERT_THAT(key, IsOk());

util::StatusOr<std::unique_ptr<ChunkedMac>> chunked_mac =
Expand Down Expand Up @@ -134,8 +134,8 @@ TEST(ChunkedMacSlicingTest, DifferentChunkSizes) {
TEST(ChunkedMacTest, VerifyPrefixFails) {
ASSERT_THAT(MacConfig::Register(), IsOk());

util::StatusOr<std::unique_ptr<KeysetHandle>> key =
KeysetHandle::GenerateNew(MacKeyTemplates::HmacSha256());
util::StatusOr<std::unique_ptr<KeysetHandle>> key = KeysetHandle::GenerateNew(
MacKeyTemplates::HmacSha256(), KeyGenConfigGlobalRegistry());
ASSERT_THAT(key, IsOk());

util::StatusOr<std::unique_ptr<ChunkedMac>> chunked_mac =
Expand All @@ -160,8 +160,8 @@ TEST(ChunkedMacTest, VerifyPrefixFails) {
TEST(ChunkedMacTest, UpdateWrongOrderFails) {
ASSERT_THAT(MacConfig::Register(), IsOk());

util::StatusOr<std::unique_ptr<KeysetHandle>> key =
KeysetHandle::GenerateNew(MacKeyTemplates::HmacSha256());
util::StatusOr<std::unique_ptr<KeysetHandle>> key = KeysetHandle::GenerateNew(
MacKeyTemplates::HmacSha256(), KeyGenConfigGlobalRegistry());
ASSERT_THAT(key, IsOk());

util::StatusOr<std::unique_ptr<ChunkedMac>> chunked_mac =
Expand All @@ -188,8 +188,8 @@ TEST(ChunkedMacTest, UpdateWrongOrderFails) {
TEST(ChunkedMacTest, OperationsFailAfterComputeVerifyMac) {
ASSERT_THAT(MacConfig::Register(), IsOk());

util::StatusOr<std::unique_ptr<KeysetHandle>> key =
KeysetHandle::GenerateNew(MacKeyTemplates::HmacSha256());
util::StatusOr<std::unique_ptr<KeysetHandle>> key = KeysetHandle::GenerateNew(
MacKeyTemplates::HmacSha256(), KeyGenConfigGlobalRegistry());
ASSERT_THAT(key, IsOk());

util::StatusOr<std::unique_ptr<ChunkedMac>> chunked_mac =
Expand Down

0 comments on commit 41a6044

Please sign in to comment.