# HG changeset patch # User Matt Johnston # Date 1498271553 -28800 # Node ID 7aebe7da3a35b17ec0b3020b3d41336a0834de78 # Parent a097c9c9608a828e79cb46fcaece552e7425d8bb test dss key parameter lengths exactly diff -r a097c9c9608a -r 7aebe7da3a35 dss.c --- a/dss.c Sat Jun 24 01:01:11 2017 +0800 +++ b/dss.c Sat Jun 24 10:32:33 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; }