X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;ds=sidebyside;f=test_src%2Fmain-rsa-test.c;h=3e0bba267dee34495cfb57b508943b964a417aa5;hb=844f84ce4ba776bf5320b2e92db8b3a9e4d0d6d9;hp=fa71fe78275e34a0022df25daa3a1cde57fea264;hpb=fb4cf7b5c6e5f28d886bd4216f09b8052c7bd013;p=avr-crypto-lib.git diff --git a/test_src/main-rsa-test.c b/test_src/main-rsa-test.c index fa71fe7..3e0bba2 100644 --- a/test_src/main-rsa-test.c +++ b/test_src/main-rsa-test.c @@ -26,10 +26,10 @@ #include "uart_i.h" #include "debug.h" -#include "noekeon/noekeon.h" -#include "noekeon/noekeon_prng.h" -#include "bigint/bigint.h" -#include "bigint/bigint_io.h" +#include "noekeon.h" +#include "noekeon_prng.h" +#include "bigint.h" +#include "bigint_io.h" #include "rsa.h" #include "rsa_key_blob.h" @@ -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 },