Trustworthy machine learning through the lens of privacy and security