Skip to content

Commit

Permalink
Compare strings rather than Bytes.
Browse files Browse the repository at this point in the history
  • Loading branch information
nebeid committed Jul 29, 2024
1 parent 55c0ac8 commit 55ad421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crypto/fipsmodule/aes/aes_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,9 @@ TEST(AESTest, ABI) {
for (size_t i = 0; i < 64; i++) {
buf[i] = i;
}
Bytes buf_before = Bytes(buf,64);
std::string buf_before = testing::PrintToString(Bytes(buf,64));
CHECK_ABI(aes_hw_ctr32_encrypt_blocks, buf, buf, blocks, &key, block);
EXPECT_EQ(buf_before, Bytes(buf,64));
EXPECT_EQ(buf_before, testing::PrintToString(Bytes(buf,64)));
}

CHECK_ABI(aes_hw_ctr32_encrypt_blocks, buf, buf, blocks, &key, block);
Expand Down

0 comments on commit 55ad421

Please sign in to comment.