实验二 OpenSSL API使用

实验二 OpenSSL API使用

一、码云链接

https://gitee.com/liangchenyu777/code/blob/master/testsm3.c
https://gitee.com/liangchenyu777/code/blob/master/testsm4.c

二、实践编译截图

1.配置LD_LIBRARY_PATH并检查openssl可执行程序版本号

2.检查 SM3 哈希校验和

3.检查椭圆曲线是否包含SM2

4.检查对称算法

5.测试SM4-ECB电子密码本模式, 选取AES-128-ECB作为参考

https://github.com/liuqun/openssl-sm4-demo/

6.测试sm3

posted @ 2022-10-26 14:10  20201307梁辰鱼  阅读(31)  评论(0编辑  收藏  举报