summaryrefslogtreecommitdiff
path: root/beecrypt/rsakp.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2003-04-29 08:15:16 +0000
committerjbj <devnull@localhost>2003-04-29 08:15:16 +0000
commita94207342d80a5ca6fc19e05de95ec346c937ccb (patch)
tree92edb18630a83bb403cd27c8dba2d580e218ccf1 /beecrypt/rsakp.c
parentd4538f2d0da92317bbfeb37b1c7513350763b0f4 (diff)
downloadlibrpm-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.c4
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;