Research Article
[Retracted] Blockchain-Based Information Supervision Model for Rice Supply Chains
Algorithm 3
Process of SM3 encryption.
| Input: plaintext | | Output: ciphertext | | plaintext = m | | /∗ Fill the message m with M1, which is an integer multiple of 512 | | Group the filled messages, where B (0) B (1)... B (n − 1) where n = (L + K + 65)/512, and l is the plaintext length ∗/ | | for (i = 0; i < n; i++) { | | The packet message Bi is extended to generate 132 words | | Carry in the generated word for iterative compression | | } | | The final hash value is obtained by iterative compression, IV (n) = CF (IV (n − 1), B (n − 1)) | | ciphertext = V (n) |
|