[micro-ecc] Fix test and build errors

The merge to the upstream code introduced some new changes to the test
that throw compilation warnings. Fixed them and additionally added
elftest runner as a dependency for the v2 unittest.

Bug: 86669
Test: fx test micro-ecc-tests
Change-Id: Ibac9e5e0b7bdf63b1042277f70006dd2ae1e6cfd
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/github.com/kmackay/micro-ecc/+/595455
Reviewed-by: Sundarajan Srinivasan <sundarsrini@google.com>
Reviewed-by: Marco Vanotti <mvanotti@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index 91aee7f..2c9fea3 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -61,7 +61,10 @@
     visibility = [ ":*" ]
     sources = invoker.sources
     configs += [ ":micro-ecc-test_config" ]
-    deps = [ ":micro-ecc" ]
+    deps = [
+      ":micro-ecc",
+      "//src/sys/testing/elftest",
+    ]
   }
   fuchsia_unittest_component(target_name) {
     deps = [ ":${target_name}_bin" ]
diff --git a/test/test_compress.c b/test/test_compress.c
index aef374c..542d349 100644
--- a/test/test_compress.c
+++ b/test/test_compress.c
@@ -9,7 +9,7 @@
 #define uECC_TEST_NUMBER_OF_ITERATIONS   256
 #endif
 
-void vli_print(char *str, uint8_t *vli, unsigned int size) {
+void vli_print(const char *str, uint8_t *vli, unsigned int size) {
     printf("%s ", str);
     for(unsigned i=0; i<size; ++i) {
         printf("%02X ", (unsigned)vli[i]);
diff --git a/test/test_compute.c b/test/test_compute.c
index 7b936d8..cf559d5 100644
--- a/test/test_compute.c
+++ b/test/test_compute.c
@@ -5,7 +5,7 @@
 #include <stdio.h>
 #include <string.h>
 
-void vli_print(char *str, uint8_t *vli, unsigned int size) {
+void vli_print(const char *str, uint8_t *vli, unsigned int size) {
     printf("%s ", str);
     for(unsigned i=0; i<size; ++i) {
         printf("%02X ", (unsigned)vli[i]);