diff options
author | jbj <devnull@localhost> | 2003-04-28 19:34:20 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2003-04-28 19:34:20 +0000 |
commit | e4474b56d620eda7c1f55b385aebac1731569a60 (patch) | |
tree | af8f4bc3f9a882bc60cb1173a918e19e146d8f70 /beecrypt/rsakp.c | |
parent | a08149369a67ef068bd205164c941768a8e97937 (diff) | |
download | librpm-tizen-e4474b56d620eda7c1f55b385aebac1731569a60.tar.gz librpm-tizen-e4474b56d620eda7c1f55b385aebac1731569a60.tar.bz2 librpm-tizen-e4474b56d620eda7c1f55b385aebac1731569a60.zip |
beecrypt-3.0.0 merge: uint32 excision.
CVS patchset: 6784
CVS date: 2003/04/28 19:34:20
Diffstat (limited to 'beecrypt/rsakp.c')
-rw-r--r-- | beecrypt/rsakp.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/beecrypt/rsakp.c b/beecrypt/rsakp.c index f76b09faa..6f27df426 100644 --- a/beecrypt/rsakp.c +++ b/beecrypt/rsakp.c @@ -29,14 +29,17 @@ #include "mp.h" #include "debug.h" -/*@-boundswrite@*/ +/*!\addtogroup IF_rsa_m + * \{ + */ + int rsakpMake(rsakp* kp, randomGeneratorContext* rgc, int nsize) { /* * Generates an RSA Keypair for use with the Chinese Remainder Theorem */ - register size_t pqsize = ((uint32)(nsize+1)) >> 1; + register size_t pqsize = ((uint32_t)(nsize+1)) >> 1; register mpw* temp = (mpw*) malloc((16*pqsize+6) * sizeof(*temp)); register int newn = 1; @@ -149,9 +152,7 @@ int rsakpMake(rsakp* kp, randomGeneratorContext* rgc, int nsize) } return -1; } -/*@=boundswrite@*/ -/*@-boundswrite@*/ int rsakpInit(rsakp* kp) { memset(kp, 0, sizeof(*kp)); @@ -168,7 +169,6 @@ int rsakpInit(rsakp* kp) return 0; } -/*@=boundswrite@*/ int rsakpFree(rsakp* kp) { @@ -199,3 +199,6 @@ int rsakpCopy(rsakp* dst, const rsakp* src) return 0; } + +/*!\} + */ |