[test] fix test_ecdsa to use array of char as message string (#7446)

This commit updates `kMessage` in `test_ecdsa.cpp` function which
verifies the signature generation to be an array of char instead of a
`char *`. This ensures that the use of `sizeof(kMessage)` correctly
gives the length of the message string (which is used during hash
calculation).
This commit is contained in:
Abtin Keshavarzian
2022-02-28 15:50:53 -08:00
committed by GitHub
parent 4275b26935
commit 56873fe492
+1 -1
View File
@@ -129,7 +129,7 @@ void TestEdsaKeyGenerationSignAndVerify(void)
{
Instance *instance = testInitInstance();
const char *kMessage = "You are not a drop in the ocean. You are the entire ocean in a drop.";
const char kMessage[] = "You are not a drop in the ocean. You are the entire ocean in a drop.";
Ecdsa::P256::KeyPair keyPair;
Ecdsa::P256::PublicKey publicKey;