(rsa_create_signature): Abort when signature is longer, not shorter.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19235 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-12-06 10:23:14 +00:00
parent 2243d26b39
commit e99ef09706

View File

@@ -321,8 +321,8 @@ rsa_create_signature(hx509_context context,
"RSA private decrypt failed: %d", ret);
return ret;
}
if (ret < sig->length)
_hx509_abort("RSA signature prelen shorter the output len");
if (ret > sig->length)
_hx509_abort("RSA signature prelen longer the output len");
sig->length = ret;