Pseudonym and Key Allocation for Privacy-Aware Communications of Smart IoT Applications