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

单位网站建设要多少钱wordpress 婚恋

单位网站建设要多少钱,wordpress 婚恋,搜索最全的搜索引擎,建设实验室网站的意义文章目录 openssl3.2 - 官方demo学习 - kdf - hkdf.c概述笔记END openssl3.2 - 官方demo学习 - kdf - hkdf.c 概述 设置摘要算法HKDF的参数, 然后取key 笔记 /*! \file hkdf.c \note openssl3.2 - 官方demo学习 - kdf - hkdf.c 设置摘要算法HKDF的参数, 然后取key *//** C… 文章目录 openssl3.2 - 官方demo学习 - kdf - hkdf.c概述笔记END openssl3.2 - 官方demo学习 - kdf - hkdf.c 概述 设置摘要算法HKDF的参数, 然后取key 笔记 /*! \file hkdf.c \note openssl3.2 - 官方demo学习 - kdf - hkdf.c 设置摘要算法HKDF的参数, 然后取key *//** Copyright 2021-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*/#include stdio.h #include stdbool.h#include openssl/core_names.h #include openssl/crypto.h #include openssl/kdf.h #include openssl/obj_mac.h #include openssl/params.h #include openssl/evp.h#include my_openSSL_lib.h/** test vector from* https://datatracker.ietf.org/doc/html/rfc5869*/static unsigned char hkdf_salt[] {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b,0x0c };static unsigned char hkdf_ikm[] {0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b,0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b };static unsigned char hkdf_info[] {0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9 };/* Expected output keying material */ static unsigned char hkdf_okm[] {0x3c, 0xb2, 0x5f, 0x25, 0xfa, 0xac, 0xd5, 0x7a, 0x90, 0x43, 0x4f, 0x64,0xd0, 0x36, 0x2f, 0x2a, 0x2d, 0x2d, 0x0a, 0x90, 0xcf, 0x1a, 0x5a, 0x4c,0x5d, 0xb0, 0x2d, 0x56, 0xec, 0xc4, 0xc5, 0xbf, 0x34, 0x00, 0x72, 0x08,0xd5, 0xb8, 0x87, 0x18, 0x58, 0x65 };int test_EVP_MD_name(void); int main(int argc, char** argv) {int ret EXIT_FAILURE;EVP_KDF* _evp_kdf NULL;EVP_KDF_CTX* _evp_kdf_ctx NULL;unsigned char out[42];OSSL_PARAM _ossl_param_ary[5], * p_ossl_param _ossl_param_ary;OSSL_LIB_CTX* _ossl_lib_ctx NULL;// test_EVP_MD_name(); // 想看看摘要算法名称的有效列表_ossl_lib_ctx OSSL_LIB_CTX_new();if (_ossl_lib_ctx NULL) {fprintf(stderr, OSSL_LIB_CTX_new() returned NULL\n);goto end;}/* Fetch the key derivation function implementation */_evp_kdf EVP_KDF_fetch(_ossl_lib_ctx, HKDF, NULL);if (_evp_kdf NULL) {fprintf(stderr, EVP_KDF_fetch() returned NULL\n);goto end;}/* Create a context for the key derivation operation */_evp_kdf_ctx EVP_KDF_CTX_new(_evp_kdf);if (_evp_kdf_ctx NULL) {fprintf(stderr, EVP_KDF_CTX_new() returned NULL\n);goto end;}/* Set the underlying hash function used to derive the key */*p_ossl_param OSSL_PARAM_construct_utf8_string(OSSL_KDF_PARAM_DIGEST,SHA256, 0);/* Set input keying material */*p_ossl_param OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_KEY, hkdf_ikm,sizeof(hkdf_ikm));/* Set application specific information */*p_ossl_param OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_INFO, hkdf_info,sizeof(hkdf_info));/* Set salt */*p_ossl_param OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_SALT, hkdf_salt,sizeof(hkdf_salt));*p_ossl_param OSSL_PARAM_construct_end();/* Derive the key */if (EVP_KDF_derive(_evp_kdf_ctx, out, sizeof(out), _ossl_param_ary) ! 1) {fprintf(stderr, EVP_KDF_derive() failed\n);goto end;}if (CRYPTO_memcmp(hkdf_okm, out, sizeof(hkdf_okm)) ! 0) {fprintf(stderr, Generated key does not match expected value\n);goto end;}ret EXIT_SUCCESS; end:EVP_KDF_CTX_free(_evp_kdf_ctx);EVP_KDF_free(_evp_kdf);OSSL_LIB_CTX_free(_ossl_lib_ctx);return ret; }int test_EVP_MD_name(void) {OSSL_LIB_CTX* ctx;EVP_MD* md NULL;int res 0;do {ctx OSSL_LIB_CTX_new();if (NULL ctx) {break;}md EVP_MD_fetch(ctx, whirlpool, NULL);res 1;} while (false);if (NULL ! md){EVP_MD_free(md);}if (NULL ! ctx){OSSL_LIB_CTX_free(ctx);}return res; } END
http://www.pierceye.com/news/970666/

相关文章:

  • 北京建设网站有哪些公司网络营销方法有哪几种
  • 在中国备案的网站服务器利用小说网站做本站优化
  • 网站风格的表现形式重庆观音桥房价
  • 哪些公司的网站做的很好手机网页素材
  • 天津地铁建设网站百度广告太多
  • 保定php网站制作wordpress的seo收件箱
  • 网站建设公司-跨界鱼科技优外国网站设计风格
  • 网站营销平台注册微信公众号流程
  • 西安专业网站建设服务公司商标查询网入口
  • 营销型网站设计房地产wordpress多媒体路径
  • 门户网站建设解决方案wordpress图片广告
  • 哈尔滨h5模板建站设计一个软件需要多少钱
  • 青岛网站建设方案服务惠民卡看电影怎么用
  • 兰州新站点seo加盟网站建设工作有底薪吗
  • 哈尔滨建设网站官网清远头条新闻
  • 泉州网站设计平台wordpress cenos
  • 网站内容批量替换站长之家网站素材
  • asp.net 获取网站域名展览馆展示设计
  • 网站网页设计公司家庭做网站
  • php网站开发实战的书网站开发排行榜
  • 摄影师都在哪些网站发布作品云虚拟主机搭建网站
  • 中小企业电子商务网站建设传奇手游代理平台
  • 网站建设需要每年交钱吗如何选择宣传片制作
  • 建设网站为网站网站做广告芜湖市网站建设
  • 网站建设和维护怎么学android开发编辑wordpress
  • 有哪些学做衣服的网站生产管理软件app
  • 网站换域名 蜘蛛不来广告宣传片制作公司
  • 百度做个网站要多少钱如何在淘宝网做自己的网站
  • 网站建设属于营业范围里的哪一项深圳外贸建站网络推广联客易
  • 网站开发公司 郑州wordpress 服务器环境