Package list libcryptx-perl / 2538c6b
improved ecc_set_key fix Karel Miko 3 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2828 if ((err = mp_read_unsigned_bin(key->k, (unsigned char *)in, inlen)) != CRYPT_OK) {
2929 goto error;
3030 }
31 if (mp_iszero(key->k)) {
31 if (mp_iszero(key->k) || (mp_cmp(key->k, key->dp.order) != LTC_MP_LT)) {
3232 err = CRYPT_INVALID_PACKET;
3333 goto error;
3434 }