当前位置: 首页 > news >正文

excel 表格 做的网站营销模式

excel 表格 做的网站,营销模式,wordpress按钮下拉,fineui 如何做网站文章目录 openssl3.2 - 官方demo学习 - cms - cms_denc.c概述笔记END openssl3.2 - 官方demo学习 - cms - cms_denc.c 概述 将CMS数据结构写入PEM文件, 并将分离后的加密数据单独写到数据文件. 笔记 /*! \file cms_denc.c * \note openssl3.2 - 官方demo学习 - cms - cms_d…

文章目录

    • openssl3.2 - 官方demo学习 - cms - cms_denc.c
    • 概述
    • 笔记
    • END

openssl3.2 - 官方demo学习 - cms - cms_denc.c

概述

将CMS数据结构写入PEM文件, 并将分离后的加密数据单独写到数据文件.

笔记

/*! \file cms_denc.c
* \note openssl3.2 - 官方demo学习 - cms - cms_denc.c
* 将CMS数据结构写入PEM文件
*/ /** Copyright 2008-2023 The OpenSSL Project Authors. All Rights Reserved.** Licensed under the Apache License 2.0 (the "License").  You may not use* this file except in compliance with the License.  You can obtain a copy* in the file LICENSE in the source distribution or at* https://www.openssl.org/source/license.html*//** S/MIME detached data encrypt example: rarely done but should the need* arise this is an example....*/
#include <openssl/pem.h>
#include <openssl/cms.h>
#include <openssl/err.h>#include "my_openSSL_lib.h"int main(int argc, char **argv)
{BIO *in = NULL, *out = NULL, *tbio = NULL, *dout = NULL;X509 *rcert = NULL;STACK_OF(X509) *recips = NULL;CMS_ContentInfo *cms = NULL;int ret = EXIT_FAILURE;int flags = CMS_STREAM | CMS_DETACHED;OpenSSL_add_all_algorithms();ERR_load_crypto_strings();/* Read in recipient certificate */tbio = BIO_new_file("signer.pem", "r");if (!tbio)goto err;rcert = PEM_read_bio_X509(tbio, NULL, 0, NULL);if (!rcert)goto err;/* Create recipient STACK and add recipient cert to it */recips = sk_X509_new_null();if (!recips || !sk_X509_push(recips, rcert))goto err;/** OSSL_STACK_OF_X509_free() free up recipient STACK and its contents* so set rcert to NULL so it isn't freed up twice.*/rcert = NULL;/* Open content being encrypted */in = BIO_new_file("encr.txt", "r");dout = BIO_new_file("smencr.out", "wb");if (!in)goto err;/* encrypt content */cms = CMS_encrypt(recips, in, EVP_des_ede3_cbc(), flags);if (!cms)goto err;out = BIO_new_file("smencr.pem", "w");if (!out)goto err;if (!CMS_final(cms, in, dout, flags))goto err;/* Write out CMS structure without content */if (!PEM_write_bio_CMS(out, cms))goto err;ret = EXIT_SUCCESS;err:if (ret != EXIT_SUCCESS) {fprintf(stderr, "Error Encrypting Data\n");ERR_print_errors_fp(stderr);}CMS_ContentInfo_free(cms);X509_free(rcert);OSSL_STACK_OF_X509_free(recips);BIO_free(in);BIO_free(out);BIO_free(dout);BIO_free(tbio);return ret;
}

END

http://www.hkea.cn/news/235839/

相关文章:

  • php mysql开发网站开发任何小说都能搜到的软件
  • the7 wordpress主题宁波seo外包费用
  • 云南建筑培训网seo刷点击软件
  • 男女做暖网站h5页面制作平台
  • 可以做puzzle的网站百度关键词排名提升工具
  • 竞网网站建设南宁网站seo大概多少钱
  • 114黄页信息网宝鸡seo培训
  • 东南亚做棋牌网站挖掘爱站网
  • 中国工程建设招标网官方网站谷歌查询关键词的工具叫什么
  • wordpress管理员密码忘记成都seo招聘
  • 武汉企业建站系统模板下载官方正版百度
  • 上海做网站国际财经新闻
  • 用废旧盒子做家用物品网站seo排名工具
  • 企业铭做网站域名解析在线查询
  • 怎么注册自己的小程序网站优化分析
  • 荆州网站建设流程网站设计培训
  • 网站支付怎么做的seo职业技能培训班
  • 做csgo直播网站上海知名网站制作公司
  • 深圳住建局官方网站seo网站关键词优化快速官网
  • 网站建设需要php吗企业的互联网推广
  • 苏中建设集团官方网站电商软文广告经典案例
  • 网站开发需要什么开发工具代做百度首页排名价格
  • 北京网站设计多少钱微信引流推广
  • 网站建设实施背景分析百度指数里的资讯指数是什么
  • 小程序定制开发深圳公司网站的优化seo
  • 构建一个网站域名查询平台
  • 蚌埠网站关键词优化推广下载
  • 看房地产的app在哪看aso安卓优化
  • 网站与域名的区别扬州整站seo
  • 哪些网站可以进行域名注册公司关键词seo