From 7214c1cc3bc0967a45c77eb7a3d9413426ba9464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 7 May 2006 11:57:05 +0000 Subject: [PATCH] Fix a off by one. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17500 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/des/rsa-imath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/des/rsa-imath.c b/lib/des/rsa-imath.c index e5fb702d5..e03fa1531 100644 --- a/lib/des/rsa-imath.c +++ b/lib/des/rsa-imath.c @@ -114,7 +114,7 @@ imath_rsa_public_encrypt(int flen, const unsigned char* from, mp_int_init(&enc); mp_int_init(&dec); - mp_int_read_unsigned(&dec, p0, size); + mp_int_read_unsigned(&dec, p0, size - 1); free(p0); res = rsa_rsaep(&dec, &e, &n, &enc);