Mercurial > dropbear
diff dss.c @ 1431:793c43cf523e fuzz
merge from main
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 24 Jun 2017 10:34:19 +0800 |
parents | 69862e8cc405 7aebe7da3a35 |
children | 41dca1e5ea34 |
line wrap: on
line diff
--- a/dss.c Sat Jun 24 00:47:07 2017 +0800 +++ b/dss.c Sat Jun 24 10:34:19 2017 +0800 @@ -61,16 +61,14 @@ goto out; } - if (mp_count_bits(key->p) < DSS_P_BITS) { + if (mp_count_bits(key->p) != DSS_P_BITS) { dropbear_log(LOG_WARNING, "Bad DSS p"); - TRACE(("leave buf_get_dss_pub_key: short key")) ret = DROPBEAR_FAILURE; goto out; } - if (mp_count_bits(key->q) < DSS_Q_BITS) { + if (mp_count_bits(key->q) != DSS_Q_BITS) { dropbear_log(LOG_WARNING, "Bad DSS q"); - TRACE(("leave buf_get_dss_pub_key: short key")) ret = DROPBEAR_FAILURE; goto out; }