摘要:
3.1 非对称算法使用流程 步骤1 密钥生成(见3.3 密钥生成) 步骤2 加密解密(见3.5 加密解密)或 签名验签(见3.4 签名验签)或 密钥协商(见3.6 密钥协商)步骤3 清除数据 阅读全文
posted @ 2023-04-05 09:45
艾米的爸爸
阅读(1)
评论(0)
推荐(0)
摘要:
2.8 MAC示例代码 #include "openssl/hmac.h" int test_evp_hmac_sm3() { const EVP_MD *md = NULL; int flag, dlen1, dlen2; unsigned char key[16]={0x66,0xc7,0xf0 阅读全文
posted @ 2023-04-05 09:30
艾米的爸爸
阅读(1)
评论(0)
推荐(0)
摘要:
2.7 杂凑示例代码 #include <string.h> #include "openssl/evp.h" typedef struct sm3_test_vector_st { int msg_len; unsigned char msg[64]; unsigned char right_ha 阅读全文
posted @ 2023-04-05 09:15
艾米的爸爸
阅读(1)
评论(0)
推荐(0)
摘要:
2.6 MAC操作 HMAC_Init 函 数 名: int HMAC_Init(HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md); 功能描述: 初始化HMAC_CTX,设置密钥和使用的算法 说 明: 清除数据并置零。 参数说明: 阅读全文
posted @ 2023-04-05 09:00
艾米的爸爸
阅读(2)
评论(0)
推荐(0)

浙公网安备 33010602011771号