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

大名网站建设公司如何在百度上发布自己的广告

大名网站建设公司,如何在百度上发布自己的广告,wordpress插件路径,河北建设网文章目录 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/380025/

相关文章:

  • 为什么上不了建设银行个人网站漳州网络推广
  • 天津手机网站建站培训代运营公司可靠吗
  • 网站制作的一般步骤长春网站优化平台
  • Python做网站 性能上海seo培训中心
  • 网上投诉平台公众号排名优化
  • 网页模板网站推荐媒体公关是做什么的
  • 泰安的网站建设公司爱站网域名查询
  • 台州椒江网站制作公司广告推销
  • 南康做网站合肥seo招聘
  • 成都网站建设定长沙专业网站制作
  • 有什么网站是python做的如何自己开发一个平台
  • 网站建设标志设计北京网站优化公司
  • 图标使用wordpress杭州seo博客
  • 企业网站如何做推广竞价推广托管公司介绍
  • 网站如何做微信登录seo公司 杭州
  • 中山里水网站建设软文广告案例分析
  • 做外贸是用什么网站做新型网络营销方式
  • 心理咨询网站开发百度手机seo软件
  • 17网站一起做网批seo营销优化
  • 做赚钱网站程序员培训班要多少钱
  • 已经收录大规模修改收录页面对网站有影响吗什么软件可以推广自己的产品
  • 丁香园做科室网站厦门网络推广
  • 免费的企业网站制作提高网站权重的方法
  • 兰州网站制作怎么样网页在线生成
  • 自建网站网址雅虎搜索引擎首页
  • 注册科技有限公司可以做网站吗百度搜索排名机制
  • 武汉做网站好网站制作多少钱一个
  • 安阳网站建设怎么从网上找客户
  • 文章博客媒体网站模板怎样在百度上打广告
  • 做网站是不是要模板直接打开百度