Efficient Data Encryption and Signature Generation Scheme for Resource-Constrained IoT Environments