X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fmain-rsa-test.c;h=3e0bba267dee34495cfb57b508943b964a417aa5;hb=cf610f6848d1a6aef4de849f9ec7895e20605583;hp=3de5bac0039c7d9913a2f67324e0546e3b9cb470;hpb=b8d6b2bd3ddea45506f584c7d44fe5fff0557ed1;p=avr-crypto-lib.git diff --git a/test_src/main-rsa-test.c b/test_src/main-rsa-test.c index 3de5bac..3e0bba2 100644 --- a/test_src/main-rsa-test.c +++ b/test_src/main-rsa-test.c @@ -79,7 +79,7 @@ void print_rsa_ctx(rsa_ctx_t* ctx){ rsa_print_item(&(ctx->privexp), PSTR("private exponent")); } -uint8_t testmsg[128] PROGMEM = { +const uint8_t testmsg[128] PROGMEM = { 0x25, 0x11, 0x1e, 0x08, 0x1c, 0x72, 0x57, 0xbf, 0x46, 0xbb, 0x56, 0xe8, 0x0b, 0x24, 0x0d, 0x72, 0x77, 0x11, 0x12, 0x10, 0xec, 0xb9, 0xe4, 0x6f, @@ -103,7 +103,6 @@ void quick_test(void){ bigint_t m,c,m_; uint8_t mw[rsa_ctx.modulus.length_B], cw[rsa_ctx.modulus.length_B], m_w[rsa_ctx.modulus.length_B]; - uint8_t i; print_rsa_ctx(&rsa_ctx); m.wordv = mw; @@ -160,7 +159,7 @@ const char quick_test_str[] PROGMEM = "quick-test"; const char performance_str[] PROGMEM = "performance"; const char echo_str[] PROGMEM = "echo"; -cmdlist_entry_t cmdlist[] PROGMEM = { +const cmdlist_entry_t cmdlist[] PROGMEM = { { reset_prng_str, NULL, reset_prng }, { quick_test_str, NULL, quick_test }, { performance_str, NULL, testrun_performance_bigint },