projects
/
u
/
mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ae747c9
)
Fix compiler warning.
author
mdw
<mdw>
Sun, 8 Oct 2000 16:00:32 +0000
(16:00 +0000)
committer
mdw
<mdw>
Sun, 8 Oct 2000 16:00:32 +0000
(16:00 +0000)
rsa-pub.c
patch
|
blob
|
blame
|
history
diff --git
a/rsa-pub.c
b/rsa-pub.c
index
f4b1125
..
e5ec16c
100644
(file)
--- a/
rsa-pub.c
+++ b/
rsa-pub.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: rsa-pub.c,v 1.
1 2000/07/01 11:23:5
2 mdw Exp $
+ * $Id: rsa-pub.c,v 1.
2 2000/10/08 16:00:3
2 mdw Exp $
*
* [RSA encryption with padding *
* (c) 2000 Straylight/Edgeware
*
* [RSA encryption with padding *
* (c) 2000 Straylight/Edgeware
@@
-29,6
+29,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: rsa-pub.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: rsa-pub.c,v $
+ * Revision 1.2 2000/10/08 16:00:32 mdw
+ * Fix compiler warning.
+ *
* Revision 1.1 2000/07/01 11:23:52 mdw
* Public-key operations, for symmetry with `rsa-priv.c'. Functions for
* doing padded RSA encryption and signature verification.
* Revision 1.1 2000/07/01 11:23:52 mdw
* Public-key operations, for symmetry with `rsa-priv.c'. Functions for
* doing padded RSA encryption and signature verification.
@@
-141,7
+144,7
@@
int rsa_encrypt(rsa_pubctx *rp, const void *m, size_t sz,
/* --- Sort out some space --- */
dstr_ensure(d, n);
/* --- Sort out some space --- */
dstr_ensure(d, n);
- p = d->buf + d->len;
+ p =
(octet *)
d->buf + d->len;
p[0] = 0;
/* --- Do the packing --- */
p[0] = 0;
/* --- Do the packing --- */