DSA: Check for sanity of input parameters
authorVitezslav Cizek <vcizek@suse.com>
Thu, 25 Oct 2018 11:53:26 +0000 (13:53 +0200)
committerPauli <paul.dale@oracle.com>
Mon, 29 Oct 2018 21:53:25 +0000 (07:53 +1000)
commit3afd38b277a806b901e039c6ad281c5e5c97ef67
treeee174cf1541a939fa88fc66d9f245a0a11de53c9
parent88e3cf0a1024f4afaf8e44553526eb326db102bc
DSA: Check for sanity of input parameters

dsa_builtin_paramgen2 expects the L parameter to be greater than N,
otherwise the generation will get stuck in an infinite loop.

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/7493)
crypto/dsa/dsa_gen.c