Privacy, Error, And Energy Tradeoffs In Embedded Systems And Internet-Of-Things Devices