[lib] Delete CHECK_BUFFER macros
Signed-off-by: Miguel Young de la Sota <mcyoung@google.com>
diff --git a/sw/device/lib/crypto/drivers/aes_test.c b/sw/device/lib/crypto/drivers/aes_test.c
index c446eb0..1a55ac1 100644
--- a/sw/device/lib/crypto/drivers/aes_test.c
+++ b/sw/device/lib/crypto/drivers/aes_test.c
@@ -88,7 +88,7 @@
memcpy(cipherptr + i - sizeof(out), &out, len_prev);
}
}
- CHECK_BUFFER_EQ(ciphertext, kCiphertext, ARRAYSIZE(kCiphertext));
+ CHECK_ARRAYS_EQ(ciphertext, kCiphertext, ARRAYSIZE(kCiphertext));
LOG_INFO("Cleaning up.");
CHECK(aes_end() == kAesOk);
diff --git a/sw/device/lib/testing/test_framework/check.h b/sw/device/lib/testing/test_framework/check.h
index 0094b5a..8e7daab 100644
--- a/sw/device/lib/testing/test_framework/check.h
+++ b/sw/device/lib/testing/test_framework/check.h
@@ -157,10 +157,6 @@
} \
} while (false)
-// Temporary shims to prevent merge-skew-breakage during renaming.
-#define CHECK_BUFFER_EQ CHECK_ARRAYS_EQ
-#define CHECK_BUFFER_NEQ CHECK_ARRAYS_NE
-
/**
* Checks that the given DIF call returns kDifOk. If the DIF call returns a
* different dif_result_t value (defined in sw/device/lib/dif/dif_base.h), this
diff --git a/sw/device/tests/aes_entropy_test.c b/sw/device/tests/aes_entropy_test.c
index b8e71db..f34a2ee 100644
--- a/sw/device/tests/aes_entropy_test.c
+++ b/sw/device/tests/aes_entropy_test.c
@@ -124,7 +124,7 @@
// Assertion check verifies that the internal states (data_in, key share and
// IV are also garbage, i.e. different from the originally written values.
CHECK_DIF_OK(dif_aes_read_iv(&aes, &iv));
- CHECK_BUFFER_NEQ(iv.iv, kIv, ARRAYSIZE(kIv));
+ CHECK_ARRAYS_NE(iv.iv, kIv, ARRAYSIZE(kIv));
CHECK_DIF_OK(dif_aes_end(&aes));
return true;