随笔分类 -  openssl

摘要:#include <openssl/sha.h>#include <string.h>#include <stdio.h> void drump_hex(char * data, unsigned int len_data); int main(){ SHA_CTX stx; unsigned ch 阅读全文
posted @ 2020-04-22 10:39 Ruigel1 阅读(1216) 评论(0) 推荐(0)
摘要:#include <stdio.h>#include <stdlib.h>#include <string.h>#include <openssl/rsa.h>#include <openssl/pem.h>#include <openssl/err.h>#define OPENSSLKEY ".. 阅读全文
posted @ 2020-04-22 10:38 Ruigel1 阅读(893) 评论(0) 推荐(0)
摘要:示例代码: #include <stdio.h>#include <openssl/rsa.h>#include <openssl/pem.h>#include <openssl/sha.h>#include <stddef.h>#include <string.h> #define OPENSSL 阅读全文
posted @ 2020-04-22 10:29 Ruigel1 阅读(1144) 评论(0) 推荐(0)
摘要:1.PEM私钥格式文件 pkcs1的格式于此相同 //PEM_read_RSAPrivateKey BEGIN RSA PRIVATE KEY END RSA PRIVATE KEY 2. PKCS8私钥格式 //pkcs8 长度为861(包含回车),主要应用于java BEGIN PRIVATE 阅读全文
posted @ 2020-04-13 19:13 Ruigel1 阅读(2866) 评论(0) 推荐(0)