diff options
author | 2000-02-21 21:47:31 +0000 | |
---|---|---|
committer | 2000-02-21 21:47:31 +0000 | |
commit | 7d1a790343efee251f5780b88ba73125b2927c11 (patch) | |
tree | c1920bdf58d482bc07cd55f4a94a18437961708e | |
parent | TCP SACK fixes via Tom Henderson (tomh@cs.berkeley.edu): (diff) | |
download | wireguard-openbsd-7d1a790343efee251f5780b88ba73125b2927c11.tar.xz wireguard-openbsd-7d1a790343efee251f5780b88ba73125b2927c11.zip |
PKCS#1 padding
-rw-r--r-- | usr.bin/ssh/rsa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/rsa.c b/usr.bin/ssh/rsa.c index 2e27e7fad82..5cab8048912 100644 --- a/usr.bin/ssh/rsa.c +++ b/usr.bin/ssh/rsa.c @@ -35,7 +35,7 @@ */ #include "includes.h" -RCSID("$Id: rsa.c,v 1.11 1999/11/24 19:53:50 markus Exp $"); +RCSID("$Id: rsa.c,v 1.12 2000/02/21 21:47:31 markus Exp $"); #include "rsa.h" #include "ssh.h" @@ -124,7 +124,7 @@ rsa_public_encrypt(BIGNUM *out, BIGNUM *in, RSA *key) BN_bn2bin(in, inbuf); if ((len = RSA_public_encrypt(ilen, inbuf, outbuf, key, - RSA_PKCS1_PADDING)) <= 0) + RSA_PKCS1_PADDING)) <= 0) fatal("rsa_public_encrypt() failed"); BN_bin2bn(outbuf, len, out); @@ -149,7 +149,7 @@ rsa_private_decrypt(BIGNUM *out, BIGNUM *in, RSA *key) BN_bn2bin(in, inbuf); if ((len = RSA_private_decrypt(ilen, inbuf, outbuf, key, - RSA_SSLV23_PADDING)) <= 0) + RSA_PKCS1_PADDING)) <= 0) fatal("rsa_private_decrypt() failed"); BN_bin2bn(outbuf, len, out); |