Skip to main content
. 2022 Jun 18;22(12):4607. doi: 10.3390/s22124607
Algorithm 1: Smart sensor data integrity and confidentiality algorithms
Input: SensorData, Key
Output: CipherData
Begin
1. Retrieves the current timestamp timestamp and SN_ID
2. ProData=SN_ID||SensorData||timestamp;
3. DataHash=SM3(ProData);
4. CipherData =SM4(Key,ProData||DataHash);
5. return CipherData;
End