参考https://weread.qq.com/web/reader/2fb3259071ef04932fbfd2ekc81322c012c81e728d9d180和网上资料,用C语言实现商用密码算法SM3,SM4,SM2
1 提交代码的链接(码云或者github)
2 提交代码运行结果截图
3 记录实现过程中的问题
编译运行
gcc *.c -o 20191220sm2 -lcrypto
编译运行
gcc -o 20191220sm2 *.c -I /root/rocopenssl/include -L /root/rocopenssl/lib -lcrypto -lpthread
编译运行
gcc mysm3.c -lcrypto
gcc mysm3.c -I /root/rocopenssl/include -L /root/rocopenssl/lib -lcrypto -lpthread
gcc mysm4.c -lcrypto
gcc mysm4.c -I /root/rocopenssl/include -L /root/rocopenssl/lib -lcrypto -lpthread
https://gitee.com/ruiruiruiruirui/xx/tree/master/%E5%AE%9E%E9%AA%8C%E4%B8%80-%E5%AF%86%E7%A0%81%E5%BC%95%E6%93%8E-%E5%95%86%E7%94%A8%E5%AF%86%E7%A0%81%E7%AE%97%E6%B3%95%E5%AE%9E%E7%8E%B01
yum安装gcc g++
sudo yum install gcc-c++
参考https://www.cnblogs.com/rocedu/p/14617763.html安装最新的
编译运行
g++ -o to base64.cpp -I /root/rocopenssl/include -L /root/rocopenssl/lib -lcrypto -lpthread