in dsa_length() or dsa_prefix() when the selected encoding is invalid.
ok markus@
-/* $OpenBSD: crypto.c,v 1.34 2021/02/25 20:13:24 tobhe Exp $ */
+/* $OpenBSD: crypto.c,v 1.35 2021/11/18 22:42:02 tobhe Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
EVP_PKEY_CTX_set_rsa_pss_saltlen(pctx, -1) <= 0)
return (-1);
}
+ if (_dsa_sign_encode(dsa, NULL, 0, NULL) < 0)
+ return (-1);
return (ret == 1 ? 0 : -1);
}