摘要:
sm3 sm4 加密 解密 sm2 验证
阅读全文
posted @ 2022-06-16 16:20
20191208孙汇阳
阅读(26)
推荐(0)
摘要:
#include<stdio.h>union n{int x;unsigned char c[4];} num;main(){int x =20191208;unsigned char s[4];unsigned char a[]= {0xe8,0x17,0x34,0x01};int i;num.x
阅读全文
posted @ 2022-06-02 15:21
20191208孙汇阳
阅读(44)
推荐(0)
摘要:
十六进制转二进制 #include<stdio.h>#include<string.h>#include<ctype.h>#include<math.h>#define M 400void fun10_2(long Sum)//十进制转二进制 { int i=0,arr[M]; while(Sum)
阅读全文
posted @ 2022-06-02 15:00
20191208孙汇阳
阅读(78)
推荐(0)
摘要:
一)在utils.h和utils.c中完成16进制字符'0'-'9','A'-'F','a'-'f'与十六进制数据0-15的转换功能 utils.h #ifndef _UTIL_H_ #define _UTIL_H_ //char Hex2Char(int i); //int Char2Hex(ch
阅读全文
posted @ 2022-05-12 15:21
20191208孙汇阳
阅读(60)
推荐(0)
摘要:
1代码 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <openssl/bn.h> int main() { BN_CTX *r[3]; BIGNUM *a; BIGNUM *b; BIGNUM *c; cha
阅读全文
posted @ 2022-05-12 14:27
20191208孙汇阳
阅读(48)
推荐(0)
摘要:
实验一-密码引擎-加密API实现与测试 1 下载并查找GMT 0018-2012密码设备应用接口规范原始文档进行学习 (5分) 2 实现GMT 0018-2012密码设备应用接口规范的接口函数,至少实现: 1)设备管理中的打开设备,关闭设备,获取设备信息,产生随机数(4分) 2)密钥管理导出 ECC
阅读全文
posted @ 2022-04-21 16:36
20191208孙汇阳
阅读(195)
推荐(0)
摘要:
实验一-密码引擎-商用密码算法实现1 实验代码链接 SM2 SM3 SM4
阅读全文
posted @ 2022-04-21 13:52
20191208孙汇阳
阅读(45)
推荐(0)
摘要:
  
推荐(0)
摘要:
1. 2. #include <stdio.h> #include <string.h> #include <openssl/evp.h> void tDigest() { unsigned char sm3_value[EVP_MAX_MD_SIZE]; //保存输出的摘要值的数组 int sm3
阅读全文
posted @ 2022-04-14 15:15
20191208孙汇阳
阅读(27)
推荐(0)
摘要:
MD5 参考链接 0e30 6561 559a a787 d00b c6f7 0bbd fe34 04cf 0365 9e70 4f85 34c0 0ffb 659c 4c87 40cc 942f eb2d a115 a3f4 155c bb86 0749 7386 656d 7d1f 34a4 2
阅读全文
posted @ 2022-04-09 21:23
20191208孙汇阳
阅读(429)
推荐(0)