自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 Linux获取WAN所属网卡及其IP地址

#include <stdio.h>#include <string.h>#include <unistd.h>#include <errno.h>#include <fcntl.h>#include <ctype.h>#include <netinet/in.h>#include <arpa/inet.h>#include <string.h>#include <net/if

2021-10-27 14:05:29 1361

原创 对文件摘要进行签名验证

#include <stdio.h>#include <stdlib.h>#include <openssl/pem.h>#include <openssl/rsa.h>#include <openssl/sha.h>// Buffer for file read operations. The buffer must be able to accomodate// the RSA signature in whole (e.g. 40

2021-10-23 08:56:35 158

原创 获取文件HASH值

https://blog.csdn.net/yongshengfree/article/details/4490863

2021-10-22 16:38:41 805

原创 openssl读取秘钥文件,提取EC私钥

/*engineTester.cCreated on: Sep 29, 2015 Author: oezgan*//openssl/#include <openssl/engine.h>#include <openssl/crypto.h>#include <openssl/evp.h>#include <openssl/pem.h>#include <stdio.h>#include <string.h&g

2021-10-22 11:36:37 1771

转载 openssl加密

/* libp11, a simple layer on to of PKCS#11 APICopyright © 2005 Olaf Kirch [email protected] © 2011, 2013 Douglas E. Engert [email protected] © 2014, 2016 Douglas E. Engert [email protected] © 2016-2018 Michał Trojnara Michal.Trojn

2021-10-21 14:27:38 1291

原创 2021-10-20

#include <stdio.h>#include <openssl/sha.h>#include <string.h>#include <stdlib.h>#define BUFFER 256int main(void){const unsigned char* data_to_hash = NULL;char* hash = NULL;data_to_hash = calloc(SHA256_DIGEST_LENGTH, sizeof(c

2021-10-20 14:45:04 61

原创 openwrt移植 中国移动物联网开放平台OneNET MQTT SDK套件

准备工作:1,注册中国移动OneNET 物联网平台账号,创建设备用于平台调试2,准备支持openwrt的开发版,这里我使用的是NXP ls1021openwrt编译环境:1,这里我使用Ubuntu-64 构建openwrt编译环境2,我们使用MQTTS功能,所以需要openwrt先定制openssl相关库移植paho-MQTT-client:OneNET的MQTT Client SD...

2020-02-24 11:27:22 1164

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除