Your current/former employer may not be allowed to disclose your salary (or anyone else’s) to your new employer, but I doubt there are any restrictions in any jurisdiction against you disclosing your salary to the new employer and that’s what they’re trying to get you to do.