dh: abort when other public key is too large/small