We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c702ac6 commit 7f302daCopy full SHA for 7f302da
1 file changed
src/pk/rsa/rsa_make_key.c
@@ -31,6 +31,7 @@ int rsa_make_key(prng_state *prng, int wprng, int size, long e, rsa_key *key)
31
32
LTC_ARGCHK(ltc_mp.name != NULL);
33
LTC_ARGCHK(key != NULL);
34
+ LTC_ARGCHK(size > 0);
35
36
if ((e < 3) || ((e & 1) == 0)) {
37
return CRYPT_INVALID_ARG;
0 commit comments