=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/Attic/auth-rsa.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- src/usr.bin/ssh/Attic/auth-rsa.c 1999/10/11 20:00:35 1.4 +++ src/usr.bin/ssh/Attic/auth-rsa.c 1999/10/18 01:54:18 1.5 @@ -16,7 +16,7 @@ */ #include "includes.h" -RCSID("$Id: auth-rsa.c,v 1.4 1999/10/11 20:00:35 markus Exp $"); +RCSID("$Id: auth-rsa.c,v 1.5 1999/10/18 01:54:18 provos Exp $"); #include "rsa.h" #include "packet.h" @@ -90,7 +90,7 @@ packet_write_wait(); /* The response is MD5 of decrypted challenge plus session id. */ - len = (BN_num_bits(challenge) + 7) / 8; + len = BN_num_bytes(challenge); assert(len <= 32 && len); memset(buf, 0, 32); BN_bn2bin(challenge, buf + 32 - len);