summaryrefslogtreecommitdiff
path: root/rpmio/rpmpgp.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-02-28 15:48:39 +0000
committerjbj <devnull@localhost>2002-02-28 15:48:39 +0000
commit9aa5bedac729594138d9320ee291f3dce5f5b6b1 (patch)
tree0784f539b813a0fa12ad732516a195df7f50d7af /rpmio/rpmpgp.c
parent87a411ddf244ef13225ccb42c0bbc4fe191ab146 (diff)
downloadrpm-9aa5bedac729594138d9320ee291f3dce5f5b6b1.tar.gz
rpm-9aa5bedac729594138d9320ee291f3dce5f5b6b1.tar.bz2
rpm-9aa5bedac729594138d9320ee291f3dce5f5b6b1.zip
Use Knuth algorithm Y for computing DSA "w = inv(s) mod q".
CVS patchset: 5339 CVS date: 2002/02/28 15:48:39
Diffstat (limited to 'rpmio/rpmpgp.c')
-rw-r--r--rpmio/rpmpgp.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/rpmio/rpmpgp.c b/rpmio/rpmpgp.c
index cf109e028..634e5432f 100644
--- a/rpmio/rpmpgp.c
+++ b/rpmio/rpmpgp.c
@@ -335,7 +335,7 @@ fprintf(stderr, "*** %s %s\n", pre, t);
mp32nsethex(mpn, t);
t = _free(t);
if (_debug && _print)
-printf("\t %s ", pre), mp32println(mpn->size, mpn->data);
+fprintf(stderr, "\t %s ", pre), mp32println(stderr, mpn->size, mpn->data);
}
int pgpPrtSubType(const byte *h, unsigned int hlen)
@@ -459,7 +459,7 @@ static int pgpPrtSigParams(/*@unused@*/ pgpTag tag, byte pubkey_algo, byte sigty
case 0: /* m**d */
mp32nsethex(&_dig->c, pgpMpiHex(p));
if (_debug && _print)
-printf("\t m**d = "), mp32println(_dig->c.size, _dig->c.data);
+fprintf(stderr, "\t m**d = "), mp32println(stderr, _dig->c.size, _dig->c.data);
/*@switchbreak@*/ break;
default:
/*@switchbreak@*/ break;
@@ -679,12 +679,12 @@ static const byte * pgpPrtPubkeyParams(byte pubkey_algo,
memcpy(_digp->signid, keyid, sizeof(_digp->signid));
}
if (_debug && _print)
-printf("\t n = "), mp32println(_dig->rsa_pk.n.size, _dig->rsa_pk.n.modl);
+fprintf(stderr, "\t n = "), mp32println(stderr, _dig->rsa_pk.n.size, _dig->rsa_pk.n.modl);
/*@switchbreak@*/ break;
case 1: /* e */
mp32nsethex(&_dig->rsa_pk.e, pgpMpiHex(p));
if (_debug && _print)
-printf("\t e = "), mp32println(_dig->rsa_pk.e.size, _dig->rsa_pk.e.data);
+fprintf(stderr, "\t e = "), mp32println(stderr, _dig->rsa_pk.e.size, _dig->rsa_pk.e.data);
/*@switchbreak@*/ break;
default:
/*@switchbreak@*/ break;
@@ -700,22 +700,22 @@ printf("\t e = "), mp32println(_dig->rsa_pk.e.size, _dig->rsa_pk.e.data);
case 0: /* p */
mp32bsethex(&_dig->p, pgpMpiHex(p));
if (_debug && _print)
-printf("\t p = "), mp32println(_dig->p.size, _dig->p.modl);
+fprintf(stderr, "\t p = "), mp32println(stderr, _dig->p.size, _dig->p.modl);
/*@switchbreak@*/ break;
case 1: /* q */
mp32bsethex(&_dig->q, pgpMpiHex(p));
if (_debug && _print)
-printf("\t q = "), mp32println(_dig->q.size, _dig->q.modl);
+fprintf(stderr, "\t q = "), mp32println(stderr, _dig->q.size, _dig->q.modl);
/*@switchbreak@*/ break;
case 2: /* g */
mp32nsethex(&_dig->g, pgpMpiHex(p));
if (_debug && _print)
-printf("\t g = "), mp32println(_dig->g.size, _dig->g.data);
+fprintf(stderr, "\t g = "), mp32println(stderr, _dig->g.size, _dig->g.data);
/*@switchbreak@*/ break;
case 3: /* y */
mp32nsethex(&_dig->y, pgpMpiHex(p));
if (_debug && _print)
-printf("\t y = "), mp32println(_dig->y.size, _dig->y.data);
+fprintf(stderr, "\t y = "), mp32println(stderr, _dig->y.size, _dig->y.data);
/*@switchbreak@*/ break;
default:
/*@switchbreak@*/ break;