(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:
@@ -321,8 +321,8 @@ rsa_create_signature(hx509_context context,
|
|||||||
"RSA private decrypt failed: %d", ret);
|
"RSA private decrypt failed: %d", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
if (ret < sig->length)
|
if (ret > sig->length)
|
||||||
_hx509_abort("RSA signature prelen shorter the output len");
|
_hx509_abort("RSA signature prelen longer the output len");
|
||||||
|
|
||||||
sig->length = ret;
|
sig->length = ret;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user