X-Git-Url: https://git.cryptolib.org/?p=arm-crypto-lib.git;a=blobdiff_plain;f=test_src%2Fshavs.c;fp=test_src%2Fshavs.c;h=41a15514d0920c43c18023982c80cdf1b7916612;hp=8ef96191def19a2151f0d02468de5b29e943a85f;hb=92e0ee3f719d375d69300c7c1c48138d52330fcf;hpb=217498c12e1e5031de91f76b45d58ce2971a5111 diff --git a/test_src/shavs.c b/test_src/shavs.c index 8ef9619..41a1551 100644 --- a/test_src/shavs.c +++ b/test_src/shavs.c @@ -110,6 +110,7 @@ typedef struct { static shavs_ctx_t shavs_ctx; +static uint8_t buffer_add(char c){ uint8_t v,t; if(shavs_ctx.buffer_idx==shavs_ctx.buffersize_B){ @@ -368,11 +369,11 @@ void shavs_test2(void){ /* Monte Carlo tests for SHA-1 & SHA-2 */ return; } } - if((c=cli_getc_cecho())!='e' && c!='e'){ + if((c=cli_getc_cecho())!='e' && c!='E'){ cli_putstr("\r\nERROR: wrong input (2)!\r\n"); return; } - if((c=cli_getc_cecho())!='e' && c!='e'){ + if((c=cli_getc_cecho())!='e' && c!='E'){ cli_putstr("\r\nERROR: wrong input (3)!\r\n"); return; } @@ -453,11 +454,11 @@ void shavs_test3(void){ /* Monte Carlo tests for SHA-3 */ return; } } - if((c=cli_getc_cecho())!='e' && c!='e'){ + if((c=cli_getc_cecho())!='e' && c!='E'){ cli_putstr("\r\nERROR: wrong input (2)!\r\n"); return; } - if((c=cli_getc_cecho())!='e' && c!='e'){ + if((c=cli_getc_cecho())!='e' && c!='E'){ cli_putstr("\r\nERROR: wrong input (3)!\r\n"); return; }