Physical-layer secrecy and privacy of wireless communication