Public Key Authentication and Key Agreement in IoT Devices with Minimal Airtime Consumption