diff options
author | jbj <devnull@localhost> | 2003-04-29 08:15:16 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2003-04-29 08:15:16 +0000 |
commit | a94207342d80a5ca6fc19e05de95ec346c937ccb (patch) | |
tree | 92edb18630a83bb403cd27c8dba2d580e218ccf1 /beecrypt/rsakp.c | |
parent | d4538f2d0da92317bbfeb37b1c7513350763b0f4 (diff) | |
download | librpm-tizen-a94207342d80a5ca6fc19e05de95ec346c937ccb.tar.gz librpm-tizen-a94207342d80a5ca6fc19e05de95ec346c937ccb.tar.bz2 librpm-tizen-a94207342d80a5ca6fc19e05de95ec346c937ccb.zip |
beecrypt-3.0.0 merge: splint checks.
CVS patchset: 6787
CVS date: 2003/04/29 08:15:16
Diffstat (limited to 'beecrypt/rsakp.c')
-rw-r--r-- | beecrypt/rsakp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/beecrypt/rsakp.c b/beecrypt/rsakp.c index 6f27df426..db82fc767 100644 --- a/beecrypt/rsakp.c +++ b/beecrypt/rsakp.c @@ -33,13 +33,13 @@ * \{ */ -int rsakpMake(rsakp* kp, randomGeneratorContext* rgc, int nsize) +int rsakpMake(rsakp* kp, randomGeneratorContext* rgc, size_t nsize) { /* * Generates an RSA Keypair for use with the Chinese Remainder Theorem */ - register size_t pqsize = ((uint32_t)(nsize+1)) >> 1; + register size_t pqsize = (nsize+1) >> 1; register mpw* temp = (mpw*) malloc((16*pqsize+6) * sizeof(*temp)); register int newn = 1; |