# SM4 **Repository Path**: yangxijing/SM4 ## Basic Information - **Project Name**: SM4 - **Description**: SM4加密算法 - **Primary Language**: C - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 2 - **Created**: 2021-02-26 - **Last Updated**: 2025-05-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SM4加密算法 从openssl源码提取 ## example ``` gcc ./main.c ./sm4.c && ./a.out ``` ``` cleartext: 11 22 44 44 55 66 77 88 00 00 00 00 00 00 00 00 key: 11 22 44 44 55 66 77 88 11 22 44 44 55 66 77 88 encrypt: 8D 88 71 E5 83 B4 D6 E9 CE C7 C8 64 CC F3 FE 36 decrypt: 11 22 44 44 55 66 77 88 00 00 00 00 00 00 00 00 ```