An individual company may have a policy that you should not share your salary. It should be clearly stated in your company's policy manual.