- 博客(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 1429
原创 对文件摘要进行签名验证
#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 201
原创 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 2022
转载 openssl加密
/* libp11, a simple layer on to of PKCS#11 APICopyright © 2005 Olaf Kirch okir@lst.deCopyright © 2011, 2013 Douglas E. Engert deengert@anl.govCopyright © 2014, 2016 Douglas E. Engert deengert@gmail.comCopyright © 2016-2018 Michał Trojnara Michal.Trojn
2021-10-21 14:27:38 1387
原创 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 87
原创 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 1253
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人