Adversary-resilient Inference and Machine Learning: From Distributed to Decentralized