Russian Internet giant Yandex said on Tuesday it wanted to abide by the law but not to violate its users' privacy in the process, Interfax news agency reported, after a media report said security services had demanded its encryption keys.