Fix a off by one.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17500 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-05-07 11:57:05 +00:00
parent a20fd6a283
commit 7214c1cc3b

View File

@@ -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);