Algorithm Fundamentals of Security and Privacy for Next-Generation Wireless Networks --