Lower the key bit_len in sign/verify example 85/69985/2
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>
Tue, 17 May 2016 12:19:11 +0000 (14:19 +0200)
committerDariusz Michaluk <d.michaluk@samsung.com>
Wed, 18 May 2016 07:16:51 +0000 (00:16 -0700)
It takes too long to run the example with 4k key for our purposes.

Change-Id: I331782d9cf90f621cf2b009ad4751a952157341f

examples/sign.c

index dab16bd..4874131 100644 (file)
@@ -46,7 +46,7 @@ void sign_verify_asym(yaca_key_type_e type, const char *algo)
 #endif
 
        // GENERATE
-       if (yaca_key_gen(&prv, type, YACA_KEY_4096BIT) != 0)
+       if (yaca_key_gen(&prv, type, YACA_KEY_1024BIT) != 0)
                return;
 
        if (yaca_key_extract_public(prv, &pub) != 0)