summaryrefslogtreecommitdiff
path: root/rsa.c
diff options
context:
space:
mode:
authordamien <damien>2000-03-17 12:40:15 +0000
committerdamien <damien>2000-03-17 12:40:15 +0000
commit9a767dc9060e072eb3bfdae909132a175730c798 (patch)
tree5aafa4d59f9a8813c9da6c3b5b725904432d3862 /rsa.c
parent48c375cba59e12b8225dd9bf254ff365f38dfd07 (diff)
downloadopenssh-9a767dc9060e072eb3bfdae909132a175730c798.tar.gz
- OpenBSD CVS updates:
- [atomicio.c auth-krb4.c bufaux.c channels.c compress.c fingerprint.c] [packet.h radix.c rsa.c scp.c ssh-agent.c ssh-keygen.c sshconnect.c] [sshd.c] pedantic: signed vs. unsigned, void*-arithm, etc - [ssh.1 sshd.8] Various cleanups and standardizations.
Diffstat (limited to 'rsa.c')
-rw-r--r--rsa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rsa.c b/rsa.c
index 02392529..babbf2b7 100644
--- a/rsa.c
+++ b/rsa.c
@@ -35,7 +35,7 @@
*/
#include "includes.h"
-RCSID("$Id: rsa.c,v 1.10 2000/03/09 10:27:51 damien Exp $");
+RCSID("$Id: rsa.c,v 1.11 2000/03/17 12:40:16 damien Exp $");
#include "rsa.h"
#include "ssh.h"
@@ -145,7 +145,7 @@ rsa_generate_key(RSA *prv, RSA *pub, unsigned int bits)
void
rsa_public_encrypt(BIGNUM *out, BIGNUM *in, RSA *key)
{
- char *inbuf, *outbuf;
+ unsigned char *inbuf, *outbuf;
int len, ilen, olen;
if (BN_num_bits(key->e) < 2 || !BN_is_odd(key->e))
@@ -173,7 +173,7 @@ rsa_public_encrypt(BIGNUM *out, BIGNUM *in, RSA *key)
void
rsa_private_decrypt(BIGNUM *out, BIGNUM *in, RSA *key)
{
- char *inbuf, *outbuf;
+ unsigned char *inbuf, *outbuf;
int len, ilen, olen;
olen = BN_num_bytes(key->n);