]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/main-rsaes_pkcs1v15-test.c
bug fixing and support for malloc instead of stack memory (some functions)
[avr-crypto-lib.git] / test_src / main-rsaes_pkcs1v15-test.c
index 8933b0227867e53d9a7788dfa7eb11f2be3a231e..1411b936ec045e65053bebdcde36be6ba467d8ed 100644 (file)
@@ -588,11 +588,13 @@ void quick_test(void){
 
        cli_putstr_P(PSTR("\r\n\r\nciphertext:"));
        cli_hexdump_block(ciphertext, clen, 4, 16);
-       if(clen!=sizeof(ENCRYPTED)){
+       if(clen != sizeof(ENCRYPTED)){
                        cli_putstr_P(PSTR("\r\n>>FAIL (no size match)<<"));
+                       return;
        }else{
                if(memcmp_P(ciphertext, ENCRYPTED, clen)){
                        cli_putstr_P(PSTR("\r\n>>FAIL (no content match)<<"));
+                       return;
                }else{
                        cli_putstr_P(PSTR("\r\n>>OK<<"));
                }