comparison libtomcrypt/demos/tv_gen.c @ 1711:e9dba7abd939

Merge libtomcrypt v1.18.2
author Matt Johnston <matt@ucc.asn.au>
date Wed, 10 Jun 2020 23:16:13 +0800
parents 6dba84798cd5
children
comparison
equal deleted inserted replaced
1710:1ff2a1034c52 1711:e9dba7abd939
76 } 76 }
77 if ((err = cipher_descriptor[x].keysize(&kl)) != CRYPT_OK) { 77 if ((err = cipher_descriptor[x].keysize(&kl)) != CRYPT_OK) {
78 printf("keysize error: %s\n", error_to_string(err)); 78 printf("keysize error: %s\n", error_to_string(err));
79 exit(EXIT_FAILURE); 79 exit(EXIT_FAILURE);
80 } 80 }
81 if (kl == lastkl) break; 81 if (kl == lastkl) continue;
82 lastkl = kl; 82 lastkl = kl;
83 fprintf(out, "Key Size: %d bytes\n", kl); 83 fprintf(out, "Key Size: %d bytes\n", kl);
84 84
85 key = XMALLOC(kl); 85 key = XMALLOC(kl);
86 if (key == NULL) { 86 if (key == NULL) {