- 博客(4)
- 收藏
- 关注
原创 阿钱¥¥¥openssl sm3 hmac api使用和命令行验证
1. 命令行格式验证sm3 hmac echo -n "abc" | openssl dgst -sm3 -hmac "01234567890123456789012345678901" 说明: 1. 01234567890123456789012345678901 为字符串key,共32位 2. echo -n "abc",共abc3个字符长度,不...
2020-02-24 23:37:00 833
原创 openssl基于ede3的加密和解密
基于ede3的加密和解密当前提供模式有cfb和cbc数据长度非向量整数倍特别注意当数据长度是非向量证书倍的时候该如何处理数据openssl 版本OpenSSL 1.1.1 11 Sep 2018验证结果:明文 100:00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a ...
2020-02-24 00:09:41 761
原创 基于openssl的sm4加密,加密数据,验证OK
代码// 编译: gcc -g sm4_en_de.c -o sm4_en_de -L/usr/lib -lssl -lcrypto/** 文件名: main.c */#include <stddef.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include “...
2020-02-21 15:09:53 3420
原创 国密SM2的证书制作及验证
公钥秘钥使用sm2算法根证书制作步骤:生成根证书秘钥openssl ecparam -out ca.key -name SM2 -genkey生成根证书请求文件openssl req -key ca.key -new -out ca.req生成根证书openssl x509 -req -in ca.req -signkey ca.key -out ca.pemsm...
2020-02-20 20:05:56 5001 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人